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.001399/0.001399, allocations: 117.7 kB / 17.7 MB, free: 5.293 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.001721/0.001722, allocations: 191 kB / 18.63 MB, free: 4.367 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.55/1.55, 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.1903/0.1903, allocations: 38.05 MB / 330.5 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 60.23 kB / 400.3 MB, free: 33.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1335/0.1351, allocations: 58.07 MB / 458.3 MB, free: 7.316 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.007985/0.1431, allocations: 6.484 MB / 464.8 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002499/0.1456, allocations: 1.317 MB / 466.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002943/0.1459, allocations: 31.81 kB / 466.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003399/0.1463, allocations: 126.9 kB / 466.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009819/0.1473, allocations: 417.9 kB / 466.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004721/0.1478, allocations: 235.6 kB / 466.9 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001067/0.1489, allocations: 1.122 MB / 468.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004717/0.1494, allocations: 401.8 kB / 468.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005898/0.15, allocations: 0.4942 MB / 468.9 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007091/0.1507, allocations: 0.5217 MB / 469.5 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.285e-05/0.1508, allocations: 64 kB / 469.5 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001197/0.1509, allocations: 64 kB / 469.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003003/0.1512, allocations: 331.2 kB / 469.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003721/0.1516, allocations: 398.1 kB / 470.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007915/0.1524, allocations: 0.9265 MB / 471.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1524, allocations: 0 / 471.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1524, allocations: 0 / 471.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.087e-05/0.1524, allocations: 0 / 471.2 MB, free: 10.38 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.001973/0.1544, allocations: 1.141 MB / 472.4 MB, free: 9.168 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.1545, allocations: 12.03 kB / 472.4 MB, free: 9.156 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001466/0.1546, allocations: 87.94 kB / 472.5 MB, free: 9.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/0.1557, allocations: 0.6117 MB / 473.1 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001155/0.1558, allocations: 120.8 kB / 473.2 MB, free: 8.289 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001067/0.1559, allocations: 71.92 kB / 473.3 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001403/0.1573, allocations: 0.8614 MB / 474.1 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.976e-05/0.1574, allocations: 0 / 474.1 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.008e-05/0.1574, allocations: 28 kB / 474.2 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001105/0.1575, allocations: 37.28 kB / 474.2 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001134/0.1587, allocations: 0.6256 MB / 474.8 MB, free: 6.625 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004289/0.163, allocations: 2.735 MB / 477.6 MB, free: 3.789 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001681/0.1647, allocations: 0.9025 MB / 478.5 MB, free: 2.797 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006759/0.1654, allocations: 318.2 kB / 478.8 MB, free: 2.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.533e-05/0.1654, allocations: 12.27 kB / 478.8 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006593/0.1661, allocations: 343 kB / 479.1 MB, free: 2.113 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.665e-06/0.1661, allocations: 0 / 479.1 MB, free: 2.113 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.004009/0.1701, allocations: 1.971 MB / 481.1 MB, free: 24 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.605e-05/0.1702, allocations: 122.9 kB / 481.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000569/0.1708, allocations: 0.5066 MB / 481.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.518e-05/0.1709, allocations: 41.7 kB / 481.8 MB, free: 15.31 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002961/0.1712, allocations: 363.7 kB / 482.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001179/0.1713, allocations: 138.1 kB / 482.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001802/0.1715, allocations: 122.1 kB / 482.4 MB, free: 14.69 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.1716, allocations: 370.8 kB / 482.7 MB, free: 14.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003279/0.172, allocations: 225.1 kB / 482.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004062/0.1724, allocations: 394.1 kB / 483.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/0.1734, allocations: 0.6288 MB / 484 MB, free: 12.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.1734, allocations: 0 / 484 MB, free: 12.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.001293/0.1747, allocations: 0.8863 MB / 484.8 MB, free: 12.01 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.001e-05/0.1748, allocations: 49.69 kB / 484.9 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.1748, allocations: 4 kB / 484.9 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003007/0.1751, allocations: 97.98 kB / 485 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004069/0.1755, allocations: 103.8 kB / 485.1 MB, free: 11.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002625/0.1782, allocations: 3.263 MB / 488.4 MB, free: 8.211 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004635/0.1787, allocations: 36.06 kB / 488.4 MB, free: 8.176 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.18e-05/0.1788, allocations: 35.98 kB / 488.4 MB, free: 8.141 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.0004618/0.1792, allocations: 269.5 kB / 488.7 MB, free: 7.867 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.99e-05/0.1793, allocations: 59.25 kB / 488.7 MB, free: 7.809 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001464/0.1808, allocations: 0.7004 MB / 489.4 MB, free: 7.074 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.1808, allocations: 4 kB / 489.4 MB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.1808, allocations: 4 kB / 489.5 MB, free: 7.066 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.1808, allocations: 3.984 kB / 489.5 MB, free: 7.062 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002447/0.1833, allocations: 1.54 MB / 491 MB, free: 5.434 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.1833, allocations: 0 / 491 MB, free: 5.434 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003/0.1836, allocations: 63.97 kB / 491.1 MB, free: 5.371 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003055/0.184, allocations: 97.61 kB / 491.2 MB, free: 5.27 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.215e-05/0.184, allocations: 15.98 kB / 491.2 MB, free: 5.254 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002474/0.1865, allocations: 3.251 MB / 494.4 MB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/0.1865, allocations: 3.984 kB / 494.4 MB, free: 1.711 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001943/0.1885, allocations: 1.072 MB / 495.5 MB, free: 0.5898 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002821/0.1887, allocations: 176.3 kB / 495.7 MB, free: 408 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.705e-05/0.1889, allocations: 31.98 kB / 495.7 MB, free: 376 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003779/0.1892, allocations: 35.95 kB / 495.7 MB, free: 340 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.752e-05/0.1893, allocations: 31.89 kB / 495.8 MB, free: 308 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.904e-05/0.1894, allocations: 19.98 kB / 495.8 MB, free: 288 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000443/0.1898, allocations: 358.8 kB / 496.1 MB, free: 15.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1898, allocations: 0 / 496.1 MB, free: 15.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007741/0.1906, allocations: 152 kB / 496.3 MB, free: 15.79 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.0002283/0.1909, allocations: 127.3 kB / 496.4 MB, free: 15.65 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001641/0.1925, allocations: 0.9102 MB / 497.3 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.1925, allocations: 4.062 kB / 497.3 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008912/0.1934, allocations: 0.4935 MB / 497.8 MB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008607/0.1943, allocations: 154.9 kB / 498 MB, free: 14.04 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002537/0.1968, allocations: 1.482 MB / 499.5 MB, free: 12.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005836/0.1975, allocations: 0.9721 MB / 0.4887 GB, free: 11.52 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002905/0.1978, allocations: 109 kB / 0.4888 GB, free: 11.41 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001168/0.1979, allocations: 43.42 kB / 0.4888 GB, free: 11.37 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1979, allocations: 0 / 0.4888 GB, free: 11.37 MB / 382.1 MB Notification: Performance of Templates: time 0.01348/0.2114, allocations: 7.437 MB / 0.4961 GB, free: 4.008 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 cvode -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