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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,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=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 105.8 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1719/0.1719, allocations: 38.05 MB / 329.7 MB, free: 8.828 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001249, allocations: 64.94 kB / 398.8 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1123, allocations: 58.06 MB / 456.9 MB, free: 8.043 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.007685/0.12, allocations: 6.488 MB / 463.4 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002028/0.122, allocations: 1.317 MB / 464.7 MB, free: 204 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002381/0.1223, allocations: 23.88 kB / 464.7 MB, free: 180 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003502/0.1226, allocations: 130.8 kB / 464.8 MB, free: 48 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008798/0.1236, allocations: 426 kB / 465.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004336/0.124, allocations: 231.6 kB / 465.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009913/0.125, allocations: 1.125 MB / 466.6 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004489/0.1255, allocations: 405.8 kB / 467 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004993/0.126, allocations: 490.1 kB / 467.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006677/0.1267, allocations: 0.5217 MB / 468 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001035/0.1268, allocations: 64 kB / 468.1 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001309/0.1269, allocations: 68 kB / 468.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003092/0.1272, allocations: 331.1 kB / 468.4 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003767/0.1276, allocations: 402.1 kB / 468.8 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007767/0.1284, allocations: 0.8994 MB / 469.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1284, allocations: 0 / 469.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1284, allocations: 4 kB / 469.7 MB, free: 11.12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.1284, allocations: 0 / 469.7 MB, free: 11.12 MB / 350.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.001872/0.1303, allocations: 1.152 MB / 470.9 MB, free: 9.902 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.1304, allocations: 8.031 kB / 470.9 MB, free: 9.895 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001416/0.1305, allocations: 87.98 kB / 471 MB, free: 9.809 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008436/0.1314, allocations: 0.5766 MB / 471.6 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001047/0.1315, allocations: 120.8 kB / 471.7 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.1316, allocations: 64 kB / 471.7 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/0.133, allocations: 0.8614 MB / 472.6 MB, free: 8.098 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/0.1331, allocations: 7.875 kB / 472.6 MB, free: 8.09 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.132e-05/0.1331, allocations: 28 kB / 472.6 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001083/0.1332, allocations: 37.28 kB / 472.7 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001163/0.1344, allocations: 0.6218 MB / 473.3 MB, free: 7.402 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003501/0.1379, allocations: 2.758 MB / 476.1 MB, free: 4.543 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001776/0.1397, allocations: 0.8983 MB / 477 MB, free: 3.555 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007222/0.1404, allocations: 322.2 kB / 477.3 MB, free: 3.234 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.783e-05/0.1405, allocations: 4.328 kB / 477.3 MB, free: 3.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000703/0.1412, allocations: 350.6 kB / 477.6 MB, free: 2.867 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.033e-06/0.1412, allocations: 0 / 477.6 MB, free: 2.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.004316/0.1455, allocations: 1.971 MB / 479.6 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.789e-05/0.1456, allocations: 114.8 kB / 479.7 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005737/0.1462, allocations: 0.5105 MB / 480.2 MB, free: 120 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.066e-05/0.1463, allocations: 37.7 kB / 480.2 MB, free: 76 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002861/0.1465, allocations: 363.7 kB / 480.6 MB, free: 15.71 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001313/0.1467, allocations: 142.1 kB / 480.7 MB, free: 15.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001717/0.1469, allocations: 118.1 kB / 480.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.147, allocations: 374.7 kB / 481.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003292/0.1474, allocations: 221.1 kB / 481.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004439/0.1478, allocations: 394.2 kB / 481.8 MB, free: 14.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00079/0.1486, allocations: 0.6249 MB / 482.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.1486, allocations: 0 / 482.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00124/0.1499, allocations: 0.89 MB / 483.3 MB, free: 12.77 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.45e-05/0.1499, allocations: 54.16 kB / 483.4 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.15, allocations: 4 kB / 483.4 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000277/0.1502, allocations: 93.64 kB / 483.5 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003737/0.1506, allocations: 107.8 kB / 483.6 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002651/0.1533, allocations: 3.259 MB / 486.9 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003753/0.1537, allocations: 27.98 kB / 486.9 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.703e-05/0.1538, allocations: 39.97 kB / 486.9 MB, free: 8.906 MB / 366.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.0003665/0.1541, allocations: 277.6 kB / 487.2 MB, free: 8.625 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.297e-05/0.1542, allocations: 63.23 kB / 487.2 MB, free: 8.562 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001495/0.1557, allocations: 0.7004 MB / 487.9 MB, free: 7.828 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.1558, allocations: 4 kB / 488 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.1558, allocations: 0 / 488 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.325e-06/0.1558, allocations: 7.922 kB / 488 MB, free: 7.816 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002433/0.1582, allocations: 1.535 MB / 489.5 MB, free: 6.191 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.28e-06/0.1582, allocations: 4 kB / 489.5 MB, free: 6.188 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000277/0.1585, allocations: 63.89 kB / 489.6 MB, free: 6.125 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003084/0.1588, allocations: 97.62 kB / 489.7 MB, free: 6.023 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.244e-05/0.1589, allocations: 23.92 kB / 489.7 MB, free: 6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002539/0.1614, allocations: 3.259 MB / 492.9 MB, free: 2.457 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.1615, allocations: 4.031 kB / 492.9 MB, free: 2.453 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002107/0.1636, allocations: 1.059 MB / 494 MB, free: 1.344 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001904/0.1638, allocations: 176.2 kB / 494.2 MB, free: 1.152 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.1639, allocations: 27.98 kB / 494.2 MB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003832/0.1643, allocations: 39.94 kB / 494.2 MB, free: 1.086 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.862e-05/0.1644, allocations: 39.89 kB / 494.3 MB, free: 1.047 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3e-05/0.1644, allocations: 12 kB / 494.3 MB, free: 1.035 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003672/0.1648, allocations: 354.8 kB / 494.6 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1648, allocations: 0 / 494.6 MB, free: 0.6914 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006637/0.1655, allocations: 152 kB / 494.8 MB, free: 0.543 MB / 366.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.0001592/0.1656, allocations: 137.7 kB / 494.9 MB, free: 412 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00163/0.1673, allocations: 0.9603 MB / 495.9 MB, free: 15.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.1673, allocations: 0 / 495.9 MB, free: 15.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000878/0.1682, allocations: 0.4982 MB / 496.4 MB, free: 14.88 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007747/0.1689, allocations: 156.3 kB / 496.5 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002462/0.1714, allocations: 1.497 MB / 498 MB, free: 13.2 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005858/0.172, allocations: 0.976 MB / 499 MB, free: 12.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000315/0.1723, allocations: 105 kB / 499.1 MB, free: 12.09 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001151/0.1725, allocations: 43.42 kB / 499.2 MB, free: 12.05 MB / 382.1 MB Notification: Performance of SimCode: time 3.065e-06/0.1725, allocations: 0 / 499.2 MB, free: 12.05 MB / 382.1 MB Notification: Performance of Templates: time 0.01512/0.1876, allocations: 7.454 MB / 0.4947 GB, free: 4.672 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile (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) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches