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.0008465/0.0008465, allocations: 90.83 kB / 16.3 MB, free: 6.133 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.0008741/0.0008742, allocations: 182.5 kB / 17.2 MB, free: 6.016 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.202/1.202, allocations: 223.2 MB / 241.1 MB, free: 304 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1576/0.1576, allocations: 38.08 MB / 330.3 MB, free: 8.98 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002739/0.000274, allocations: 8.594 kB / 400 MB, free: 34.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1024, allocations: 59.16 MB / 459.1 MB, free: 7.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.006967/0.1094, allocations: 6.758 MB / 465.9 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002993/0.1125, allocations: 1.746 MB / 467.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00052/0.113, allocations: 51.62 kB / 467.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003338/0.1134, allocations: 135.1 kB / 467.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000923/0.1143, allocations: 398.8 kB / 468.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005582/0.1149, allocations: 267.5 kB / 468.5 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006488/0.1155, allocations: 0.5769 MB / 469.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003842/0.1159, allocations: 300.5 kB / 469.3 MB, free: 13.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004693/0.1164, allocations: 358.7 kB / 469.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004579/0.1169, allocations: 350.8 kB / 470 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.559e-05/0.1169, allocations: 32 kB / 470.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.443e-05/0.117, allocations: 28 kB / 470.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002605/0.1173, allocations: 271.3 kB / 470.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000143/0.1175, allocations: 165.3 kB / 470.5 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000568/0.118, allocations: 0.6896 MB / 471.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.464e-06/0.118, allocations: 4 kB / 471.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1181, allocations: 0 / 471.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.1181, allocations: 0 / 471.2 MB, free: 11.34 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.001696/0.1198, allocations: 1.02 MB / 472.2 MB, free: 10.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.138e-05/0.1198, allocations: 8.031 kB / 472.2 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001307/0.1199, allocations: 86.97 kB / 472.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008624/0.1208, allocations: 0.5524 MB / 472.9 MB, free: 9.562 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/0.1209, allocations: 116.7 kB / 473 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.728e-05/0.121, allocations: 64 kB / 473.1 MB, free: 9.375 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001372/0.1224, allocations: 0.8614 MB / 473.9 MB, free: 8.473 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.697e-05/0.1225, allocations: 0 / 473.9 MB, free: 8.473 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.487e-05/0.1225, allocations: 31.98 kB / 474 MB, free: 8.441 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001085/0.1226, allocations: 41.28 kB / 474 MB, free: 8.398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001133/0.1238, allocations: 0.6295 MB / 474.6 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003493/0.1273, allocations: 2.774 MB / 477.4 MB, free: 4.895 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001602/0.1289, allocations: 0.9185 MB / 478.3 MB, free: 3.887 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.1289, allocations: 4.391 kB / 478.3 MB, free: 3.883 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006545/0.1296, allocations: 354.6 kB / 478.7 MB, free: 3.516 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.365e-06/0.1296, allocations: 0 / 478.7 MB, free: 3.516 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.003971/0.1336, allocations: 2.011 MB / 480.7 MB, free: 1.387 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.677e-05/0.1337, allocations: 114.8 kB / 480.8 MB, free: 1.25 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005599/0.1342, allocations: 0.5027 MB / 481.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.366e-05/0.1343, allocations: 45.69 kB / 481.3 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002589/0.1346, allocations: 351.8 kB / 481.7 MB, free: 344 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/0.1347, allocations: 146 kB / 481.8 MB, free: 196 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.662e-05/0.1348, allocations: 12 kB / 481.8 MB, free: 184 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.1349, allocations: 370.8 kB / 482.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003091/0.1352, allocations: 205.1 kB / 482.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000399/0.1357, allocations: 379.4 kB / 482.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004065/0.1361, allocations: 294.4 kB / 483.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/0.1361, allocations: 4 kB / 483.1 MB, free: 14.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001132/0.1372, allocations: 0.8432 MB / 483.9 MB, free: 13.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.598e-05/0.1373, allocations: 49.69 kB / 484 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/0.1373, allocations: 8 kB / 484 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002561/0.1376, allocations: 77.66 kB / 484 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003902/0.138, allocations: 108.2 kB / 484.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002169/0.1402, allocations: 2.915 MB / 487.1 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003811/0.1406, allocations: 40.14 kB / 487.1 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.034e-05/0.1406, allocations: 43.97 kB / 487.1 MB, free: 10.46 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,$whenCondition1,$PRE.dc_ac.modulator.gates[1],dc_ac.modulator.gates[1],$PRE.dc_ac.modulator.gates[2],dc_ac.modulator.gates[2],$PRE.dc_ac.modulator.gates[3],dc_ac.modulator.gates[3],$PRE.dc_ac.modulator.gates[4],dc_ac.modulator.gates[4],$PRE.dc_ac.modulator.sigdel_t,dc_ac.modulator.sigdel_t,$PRE.dc_ac.modulator.t0,dc_ac.modulator.t0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000403/0.141, allocations: 265.5 kB / 487.4 MB, free: 10.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.331e-05/0.1411, allocations: 59.33 kB / 487.5 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001382/0.1425, allocations: 0.7081 MB / 488.2 MB, free: 9.398 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.1425, allocations: 8 kB / 488.2 MB, free: 9.391 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1426, allocations: 0 / 488.2 MB, free: 9.391 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.1426, allocations: 3.984 kB / 488.2 MB, free: 9.387 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002242/0.1448, allocations: 1.532 MB / 489.7 MB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.1448, allocations: 7.938 kB / 489.7 MB, free: 7.758 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002781/0.1451, allocations: 67.89 kB / 489.8 MB, free: 7.691 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002295/0.1454, allocations: 77.64 kB / 489.9 MB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.259e-05/0.1454, allocations: 15.98 kB / 489.9 MB, free: 7.594 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001876/0.1473, allocations: 2.911 MB / 492.8 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.644e-06/0.1473, allocations: 0 / 492.8 MB, free: 4.414 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0019/0.1492, allocations: 1.111 MB / 493.9 MB, free: 3.234 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002372/0.1495, allocations: 176.3 kB / 494.1 MB, free: 3.043 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.115e-05/0.1496, allocations: 31.94 kB / 494.1 MB, free: 3.012 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003728/0.1499, allocations: 51.94 kB / 494.1 MB, free: 2.961 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.512e-05/0.15, allocations: 24.06 kB / 494.2 MB, free: 2.938 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.815e-05/0.1501, allocations: 19.98 kB / 494.2 MB, free: 2.918 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003607/0.1504, allocations: 354.8 kB / 494.5 MB, free: 2.574 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1504, allocations: 0 / 494.5 MB, free: 2.574 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006372/0.1511, allocations: 148 kB / 494.7 MB, free: 2.43 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 (43): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000157/0.1512, allocations: 136.1 kB / 494.8 MB, free: 2.289 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001371/0.1526, allocations: 0.8938 MB / 495.7 MB, free: 1.359 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1526, allocations: 0 / 495.7 MB, free: 1.359 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008213/0.1535, allocations: 0.506 MB / 496.2 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000598/0.1541, allocations: 132.7 kB / 496.3 MB, free: 0.7031 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002341/0.1564, allocations: 1.798 MB / 498.1 MB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005178/0.1569, allocations: 0.9916 MB / 499.1 MB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003/0.1573, allocations: 104.9 kB / 499.2 MB, free: 13.74 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.898e-05/0.1574, allocations: 39.44 kB / 499.3 MB, free: 13.7 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1574, allocations: 4 kB / 499.3 MB, free: 13.7 MB / 382.1 MB Notification: Performance of Templates: time 0.01109/0.1685, allocations: 6.785 MB / 0.4942 GB, free: 6.98 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches