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.001351/0.001351, allocations: 114.1 kB / 17.69 MB, free: 5.309 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.001459/0.001459, allocations: 187 kB / 18.63 MB, free: 4.379 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.45/1.45, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1771/0.1771, allocations: 38.04 MB / 330.5 MB, free: 8.793 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 71.59 kB / 400.3 MB, free: 33.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.1155, allocations: 58.06 MB / 458.3 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.007911/0.1234, allocations: 6.48 MB / 464.8 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002311/0.1258, allocations: 1.328 MB / 466.1 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000252/0.1261, allocations: 23.88 kB / 466.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003501/0.1265, allocations: 126.9 kB / 466.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009175/0.1274, allocations: 429.9 kB / 466.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004533/0.1279, allocations: 223.6 kB / 466.9 MB, free: 14.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001048/0.1289, allocations: 1.122 MB / 468.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004596/0.1294, allocations: 409.7 kB / 468.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005194/0.1299, allocations: 0.4903 MB / 468.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006371/0.1306, allocations: 0.5178 MB / 469.5 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.058e-05/0.1307, allocations: 68 kB / 469.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001103/0.1308, allocations: 64 kB / 469.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002877/0.1311, allocations: 335.1 kB / 469.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003576/0.1314, allocations: 398.1 kB / 470.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007598/0.1322, allocations: 0.911 MB / 471.2 MB, free: 10.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.89e-06/0.1322, allocations: 4 kB / 471.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1322, allocations: 0 / 471.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.169e-05/0.1323, allocations: 7.984 kB / 471.2 MB, free: 10.39 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.001854/0.1341, allocations: 1.152 MB / 472.4 MB, free: 9.176 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.1342, allocations: 12.03 kB / 472.4 MB, free: 9.164 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001436/0.1343, allocations: 83.94 kB / 472.5 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001023/0.1353, allocations: 0.6118 MB / 473.1 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/0.1355, allocations: 116.8 kB / 473.2 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.1356, allocations: 64 kB / 473.3 MB, free: 8.242 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.1369, allocations: 0.8614 MB / 474.1 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/0.137, allocations: 3.938 kB / 474.1 MB, free: 7.336 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.998e-05/0.137, allocations: 24 kB / 474.1 MB, free: 7.312 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001083/0.1371, allocations: 41.28 kB / 474.2 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001235/0.1384, allocations: 0.6218 MB / 474.8 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003404/0.1418, allocations: 2.739 MB / 477.6 MB, free: 3.809 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001527/0.1433, allocations: 0.8988 MB / 478.4 MB, free: 2.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006474/0.144, allocations: 318.2 kB / 478.8 MB, free: 2.504 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.091e-05/0.144, allocations: 12.31 kB / 478.8 MB, free: 2.492 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006397/0.1447, allocations: 350.9 kB / 479.1 MB, free: 2.129 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.334e-06/0.1447, allocations: 0 / 479.1 MB, free: 2.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.00384/0.1485, allocations: 1.967 MB / 481.1 MB, free: 44 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.73e-05/0.1486, allocations: 118.9 kB / 481.2 MB, free: 15.9 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005661/0.1492, allocations: 0.5066 MB / 481.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.087e-05/0.1493, allocations: 37.7 kB / 481.7 MB, free: 15.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002528/0.1495, allocations: 363.7 kB / 482.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001184/0.1496, allocations: 146.1 kB / 482.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001765/0.1498, allocations: 122.1 kB / 482.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.15, allocations: 366.7 kB / 482.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003357/0.1503, allocations: 225.1 kB / 482.9 MB, free: 14.12 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004247/0.1508, allocations: 398.2 kB / 483.3 MB, free: 13.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007346/0.1515, allocations: 0.621 MB / 483.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.1515, allocations: 8 kB / 484 MB, free: 12.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001189/0.1527, allocations: 0.894 MB / 484.8 MB, free: 12.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.015e-05/0.1528, allocations: 53.69 kB / 484.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.899e-06/0.1528, allocations: 4 kB / 484.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002962/0.1531, allocations: 86 kB / 485 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003736/0.1535, allocations: 107.8 kB / 485.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002463/0.156, allocations: 3.255 MB / 488.3 MB, free: 8.234 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003267/0.1563, allocations: 27.98 kB / 488.4 MB, free: 8.207 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.643e-05/0.1564, allocations: 48.06 kB / 488.4 MB, free: 8.16 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.0003376/0.1567, allocations: 277.5 kB / 488.7 MB, free: 7.879 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.975e-05/0.1568, allocations: 63.23 kB / 488.8 MB, free: 7.816 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001359/0.1582, allocations: 0.6965 MB / 489.5 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.1582, allocations: 8 kB / 489.5 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.1582, allocations: 4 kB / 489.5 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.1582, allocations: 3.984 kB / 489.5 MB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002307/0.1605, allocations: 1.532 MB / 491 MB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.1606, allocations: 0 / 491 MB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003612/0.1609, allocations: 59.89 kB / 491.1 MB, free: 5.391 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002723/0.1612, allocations: 105.6 kB / 491.2 MB, free: 5.281 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.823e-05/0.1613, allocations: 11.98 kB / 491.2 MB, free: 5.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002494/0.1638, allocations: 3.255 MB / 494.4 MB, free: 1.727 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.1638, allocations: 4.031 kB / 494.4 MB, free: 1.723 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001895/0.1657, allocations: 1.06 MB / 495.5 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002512/0.1659, allocations: 176.2 kB / 495.7 MB, free: 432 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001011/0.166, allocations: 27.98 kB / 495.7 MB, free: 404 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003684/0.1664, allocations: 39.94 kB / 495.7 MB, free: 364 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.251e-05/0.1665, allocations: 35.89 kB / 495.8 MB, free: 328 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.526e-05/0.1666, allocations: 12 kB / 495.8 MB, free: 316 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003794/0.1669, allocations: 366.8 kB / 496.1 MB, free: 15.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1669, allocations: 4 kB / 496.1 MB, free: 15.95 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006592/0.1676, allocations: 144 kB / 496.3 MB, free: 15.81 MB / 382.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.0001882/0.1678, allocations: 131.1 kB / 496.4 MB, free: 15.67 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001567/0.1694, allocations: 0.9021 MB / 497.3 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.1694, allocations: 384 / 497.3 MB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008936/0.1703, allocations: 0.5052 MB / 497.8 MB, free: 14.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007609/0.1711, allocations: 159 kB / 498 MB, free: 14.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002566/0.1737, allocations: 1.482 MB / 499.5 MB, free: 12.53 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005882/0.1743, allocations: 0.972 MB / 0.4887 GB, free: 11.53 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002809/0.1746, allocations: 112.9 kB / 0.4888 GB, free: 11.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.1747, allocations: 39.44 kB / 0.4888 GB, free: 11.38 MB / 382.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1747, allocations: 0 / 0.4888 GB, free: 11.38 MB / 382.1 MB Notification: Performance of Templates: time 0.01291/0.1876, allocations: 7.442 MB / 0.4961 GB, free: 4.02 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 -s gbode -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/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) Reference file matches