Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 112.2 kB / 21.19 MB, free: 0.7578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 209.8 kB / 24.49 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.358/1.358, allocations: 230.6 MB / 258.3 MB, free: 8.234 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo): time 0.1768/0.1768, allocations: 38.52 MB / 353.2 MB, free: 12.61 MB / 286.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") [Timeout 660] "Notification: PowerSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 59.91 kB / 493.8 MB, free: 4.418 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2787, allocations: 62.48 MB / 0.5432 GB, free: 0.625 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.007731/0.2864, allocations: 6.685 MB / 0.5498 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00243/0.2888, allocations: 1.357 MB / 0.5511 GB, free: 10.3 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002787/0.2891, allocations: 35.5 kB / 0.5511 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003275/0.2894, allocations: 129.3 kB / 0.5513 GB, free: 10.16 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009364/0.2904, allocations: 434.5 kB / 0.5517 GB, free: 9.816 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004837/0.2908, allocations: 233.5 kB / 0.5519 GB, free: 9.629 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001219/0.2921, allocations: 1.124 MB / 0.553 GB, free: 8.996 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003861/0.2924, allocations: 260 kB / 0.5532 GB, free: 8.84 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007826/0.2932, allocations: 0.5225 MB / 0.5537 GB, free: 8.539 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008042/0.294, allocations: 0.5611 MB / 0.5543 GB, free: 8.207 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.713e-05/0.2941, allocations: 65.47 kB / 0.5544 GB, free: 8.207 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001294/0.2943, allocations: 69.44 kB / 0.5544 GB, free: 8.203 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003339/0.2946, allocations: 347 kB / 0.5548 GB, free: 7.98 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004036/0.295, allocations: 403.7 kB / 0.5551 GB, free: 7.715 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009759/0.296, allocations: 0.9215 MB / 0.556 GB, free: 7.078 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.296, allocations: 1.188 kB / 0.556 GB, free: 7.078 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.296, allocations: 0 / 0.556 GB, free: 7.078 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.296, allocations: 0 / 0.556 GB, free: 7.078 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002025/0.298, allocations: 1.098 MB / 0.5571 GB, free: 6.203 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.298, allocations: 11.98 kB / 0.5571 GB, free: 6.191 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.2982, allocations: 88.42 kB / 0.5572 GB, free: 6.105 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001035/0.2992, allocations: 0.5401 MB / 0.5577 GB, free: 5.539 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001796/0.2994, allocations: 223.6 kB / 0.5579 GB, free: 5.281 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001151/0.2995, allocations: 63.98 kB / 0.558 GB, free: 5.219 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00149/0.301, allocations: 0.8653 MB / 0.5589 GB, free: 4.312 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.301, allocations: 7.938 kB / 0.5589 GB, free: 4.305 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.538e-05/0.3011, allocations: 28 kB / 0.5589 GB, free: 4.277 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001085/0.3012, allocations: 41.22 kB / 0.5589 GB, free: 4.238 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001166/0.3024, allocations: 0.6179 MB / 0.5595 GB, free: 3.617 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003687/0.3061, allocations: 2.688 MB / 0.5622 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001464/0.3075, allocations: 0.5757 MB / 0.5627 GB, free: 248 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006823/0.3082, allocations: 294.2 kB / 0.563 GB, free: 15.95 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.693e-05/0.3082, allocations: 8.328 kB / 0.563 GB, free: 15.94 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006869/0.3089, allocations: 342.8 kB / 0.5633 GB, free: 15.59 MB / 414.1 MB Notification: Performance of pre-optimization done (n=41): time 1.944e-06/0.3089, allocations: 0 / 0.5633 GB, free: 15.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.003905/0.3128, allocations: 1.696 MB / 0.565 GB, free: 13.85 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.125e-05/0.3129, allocations: 118.8 kB / 0.5651 GB, free: 13.71 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000593/0.3135, allocations: 0.5066 MB / 0.5656 GB, free: 13.19 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.567e-05/0.3136, allocations: 41.69 kB / 0.5656 GB, free: 13.14 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000284/0.3138, allocations: 368.5 kB / 0.566 GB, free: 12.78 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/0.314, allocations: 150.8 kB / 0.5661 GB, free: 12.63 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000166/0.3141, allocations: 118.3 kB / 0.5662 GB, free: 12.51 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.3143, allocations: 366.8 kB / 0.5666 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000349/0.3147, allocations: 225.2 kB / 0.5668 GB, free: 11.92 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004609/0.3151, allocations: 398.5 kB / 0.5672 GB, free: 11.46 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007824/0.3159, allocations: 0.6211 MB / 0.5678 GB, free: 10.76 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.3159, allocations: 0 / 0.5678 GB, free: 10.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001224/0.3171, allocations: 0.8151 MB / 0.5686 GB, free: 9.93 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.812e-05/0.3172, allocations: 53.69 kB / 0.5686 GB, free: 9.871 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.3172, allocations: 4 kB / 0.5686 GB, free: 9.867 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002946/0.3175, allocations: 93.94 kB / 0.5687 GB, free: 9.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000383/0.3179, allocations: 107.8 kB / 0.5688 GB, free: 9.664 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002608/0.3205, allocations: 3.052 MB / 0.5718 GB, free: 6.383 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003999/0.3209, allocations: 40.02 kB / 0.5719 GB, free: 6.344 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.512e-05/0.321, allocations: 47.97 kB / 0.5719 GB, free: 6.297 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,dc_ac.modulator.t0,$PRE.dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003915/0.3213, allocations: 266.2 kB / 0.5722 GB, free: 6.027 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.01e-05/0.3214, allocations: 55.62 kB / 0.5722 GB, free: 5.973 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001392/0.3228, allocations: 0.6289 MB / 0.5728 GB, free: 5.332 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.883e-06/0.3228, allocations: 8 kB / 0.5728 GB, free: 5.324 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.3228, allocations: 0 / 0.5728 GB, free: 5.324 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.3228, allocations: 3.984 kB / 0.5728 GB, free: 5.32 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002399/0.3252, allocations: 1.425 MB / 0.5742 GB, free: 3.832 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.3252, allocations: 4.062 kB / 0.5742 GB, free: 3.828 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002778/0.3255, allocations: 59.95 kB / 0.5743 GB, free: 3.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002745/0.3258, allocations: 105.5 kB / 0.5744 GB, free: 3.66 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.869e-05/0.3258, allocations: 15.98 kB / 0.5744 GB, free: 3.645 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002482/0.3283, allocations: 3.044 MB / 0.5774 GB, free: 376 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.3283, allocations: 3.938 kB / 0.5774 GB, free: 372 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001952/0.3303, allocations: 0.9972 MB / 0.5784 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002445/0.3305, allocations: 103.7 kB / 0.5785 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/0.3306, allocations: 31.98 kB / 0.5785 GB, free: 15.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003656/0.331, allocations: 39.94 kB / 0.5785 GB, free: 15.16 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.754e-05/0.3311, allocations: 31.88 kB / 0.5786 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.241e-05/0.3311, allocations: 20 kB / 0.5786 GB, free: 15.11 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0004053/0.3315, allocations: 354.8 kB / 0.5789 GB, free: 14.77 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3315, allocations: 0 / 0.5789 GB, free: 14.77 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0006787/0.3322, allocations: 152 kB / 0.5791 GB, free: 14.62 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,meterDC.pav) * Number of discrete variables: 8 ($whenCondition1,dc_ac.modulator.gates[1],dc_ac.modulator.gates[2],dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.sigdel_t,dc_ac.modulator.t0,system.initime) * Number of discrete states: 6 (dc_ac.modulator.t0,dc_ac.modulator.sigdel_t,dc_ac.modulator.gates[3],dc_ac.modulator.gates[4],dc_ac.modulator.gates[1],dc_ac.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001643/0.3323, allocations: 132.2 kB / 0.5792 GB, free: 14.49 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001449/0.3338, allocations: 0.8593 MB / 0.58 GB, free: 13.59 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3338, allocations: 4.062 kB / 0.58 GB, free: 13.59 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008493/0.3346, allocations: 485 kB / 0.5805 GB, free: 13.09 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007522/0.3354, allocations: 158.7 kB / 0.5806 GB, free: 12.94 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002575/0.338, allocations: 1.561 MB / 0.5822 GB, free: 11.33 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006094/0.3386, allocations: 0.9722 MB / 0.5831 GB, free: 10.33 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000131/0.3387, allocations: 47.44 kB / 0.5832 GB, free: 10.28 MB / 430.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3387, allocations: 0 / 0.5832 GB, free: 10.28 MB / 430.1 MB Notification: Performance of Templates: time 0.01719/0.3559, allocations: 13.56 MB / 0.5964 GB, free: 12.74 MB / 446.1 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.306758515071124]