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.0006889/0.0006889, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 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.004356/0.004356, allocations: 163.9 kB / 24.7 MB, free: 9.43 MB / 18.57 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 0.844/0.844, allocations: 177.1 MB / 205 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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.2282/0.2282, allocations: 29.41 MB / 290.8 MB, free: 2.441 MB / 266.7 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: Performance of FrontEnd - loaded program: time 2.244e-06/2.244e-06, allocations: 0 / 431.5 MB, free: 13.1 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.337e-05/4.562e-05, allocations: 2.281 kB / 431.5 MB, free: 13.09 MB / 410.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.005409/0.005455, allocations: 6.161 MB / 437.6 MB, free: 6.898 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001672/0.007127, allocations: 1.293 MB / 438.9 MB, free: 5.602 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002706/0.007398, allocations: 35.69 kB / 439 MB, free: 5.566 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002725/0.00767, allocations: 134.8 kB / 439.1 MB, free: 5.434 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007233/0.008393, allocations: 449.4 kB / 439.5 MB, free: 4.992 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003447/0.008738, allocations: 247.5 kB / 439.8 MB, free: 4.75 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007554/0.009494, allocations: 1.129 MB / 440.9 MB, free: 3.617 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002809/0.009775, allocations: 254.2 kB / 441.2 MB, free: 3.359 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005931/0.01037, allocations: 0.6622 MB / 441.8 MB, free: 2.695 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004786/0.01085, allocations: 0.4947 MB / 442.3 MB, free: 2.199 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 7.172e-05/0.01092, allocations: 68 kB / 442.4 MB, free: 2.133 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.974e-05/0.011, allocations: 64 kB / 442.4 MB, free: 2.07 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002178/0.01122, allocations: 351 kB / 442.8 MB, free: 1.727 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002026/0.01142, allocations: 275.4 kB / 443.1 MB, free: 1.457 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007084/0.01213, allocations: 0.9268 MB / 444 MB, free: 0.5273 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.01213, allocations: 0 / 444 MB, free: 0.5273 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.01213, allocations: 8 kB / 444 MB, free: 0.5195 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.32e-05/0.01215, allocations: 0 / 444 MB, free: 0.5195 MB / 410.7 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.1557/0.1679, allocations: 1.087 MB / 445.1 MB, free: 54.99 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.339e-05/0.1679, allocations: 12.95 kB / 445.1 MB, free: 54.99 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001046/0.168, allocations: 87.08 kB / 445.2 MB, free: 54.95 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006045/0.1686, allocations: 0.5418 MB / 445.7 MB, free: 54.76 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.62e-05/0.1687, allocations: 225.6 kB / 445.9 MB, free: 54.55 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.561e-05/0.1688, allocations: 66.06 kB / 446 MB, free: 54.54 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007909/0.1696, allocations: 0.861 MB / 446.9 MB, free: 54.16 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.555e-05/0.1696, allocations: 3.938 kB / 446.9 MB, free: 54.15 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.505e-05/0.1696, allocations: 26.28 kB / 446.9 MB, free: 54.13 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-05/0.1697, allocations: 42.69 kB / 446.9 MB, free: 54.12 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006132/0.1703, allocations: 0.6203 MB / 447.6 MB, free: 53.93 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00169/0.172, allocations: 2.428 MB / 450 MB, free: 52.38 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007373/0.1727, allocations: 0.5645 MB / 450.5 MB, free: 52.19 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003473/0.1731, allocations: 299.8 kB / 450.8 MB, free: 52.11 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.836e-05/0.1731, allocations: 3.422 kB / 450.8 MB, free: 52.11 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003472/0.1734, allocations: 358.8 kB / 451.2 MB, free: 51.95 MB / 410.7 MB Notification: Performance of pre-optimization done (n=41): time 1.463e-06/0.1734, allocations: 0 / 451.2 MB, free: 51.95 MB / 410.7 MB Notification: Performance of matching and sorting (n=42): time 0.001982/0.1754, allocations: 1.669 MB / 452.9 MB, free: 51.18 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.08e-05/0.1754, allocations: 123.5 kB / 453 MB, free: 51.05 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002322/0.1757, allocations: 463.9 kB / 453.4 MB, free: 50.84 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.171e-05/0.1757, allocations: 36.77 kB / 453.5 MB, free: 50.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.1758, allocations: 376.3 kB / 453.8 MB, free: 50.5 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.253e-05/0.1759, allocations: 157.4 kB / 454 MB, free: 50.38 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.725e-05/0.1759, allocations: 113.3 kB / 454.1 MB, free: 50.32 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 4.29e-05/0.176, allocations: 365.4 kB / 454.5 MB, free: 49.99 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001976/0.1762, allocations: 257.2 kB / 454.7 MB, free: 49.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002145/0.1764, allocations: 426 kB / 455.1 MB, free: 49.57 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003836/0.1768, allocations: 0.6143 MB / 455.7 MB, free: 49.16 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.1768, allocations: 7 kB / 455.7 MB, free: 49.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006133/0.1774, allocations: 0.8329 MB / 456.6 MB, free: 48.77 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.917e-05/0.1774, allocations: 50.45 kB / 456.6 MB, free: 48.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.1774, allocations: 6.156 kB / 456.6 MB, free: 48.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001666/0.1776, allocations: 98.91 kB / 456.7 MB, free: 48.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001869/0.1778, allocations: 104 kB / 456.8 MB, free: 48.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009963/0.1788, allocations: 2.99 MB / 459.8 MB, free: 45.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001582/0.1789, allocations: 38.5 kB / 459.9 MB, free: 45.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.896e-05/0.179, allocations: 46.2 kB / 459.9 MB, free: 45.94 MB / 410.7 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.0001657/0.1792, allocations: 266 kB / 460.2 MB, free: 45.76 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.661e-05/0.1792, allocations: 53.64 kB / 460.2 MB, free: 45.73 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006732/0.1799, allocations: 0.6239 MB / 460.8 MB, free: 45.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.317e-06/0.1799, allocations: 6.953 kB / 460.8 MB, free: 45.5 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.525e-06/0.1799, allocations: 3.516 kB / 460.9 MB, free: 45.5 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.1799, allocations: 3.156 kB / 460.9 MB, free: 45.5 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001054/0.1809, allocations: 1.291 MB / 462.1 MB, free: 44.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1809, allocations: 3.188 kB / 462.1 MB, free: 44.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001384/0.1811, allocations: 60.17 kB / 462.2 MB, free: 44.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001355/0.1812, allocations: 101.8 kB / 462.3 MB, free: 44.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.137e-05/0.1812, allocations: 13.61 kB / 462.3 MB, free: 44.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008831/0.1821, allocations: 2.994 MB / 465.3 MB, free: 42.06 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1821, allocations: 0 / 465.3 MB, free: 42.06 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000941/0.1831, allocations: 0.9982 MB / 466.3 MB, free: 41.61 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.989e-05/0.1832, allocations: 92.12 kB / 466.4 MB, free: 41.56 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.795e-05/0.1832, allocations: 28.77 kB / 466.4 MB, free: 41.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001735/0.1834, allocations: 40.19 kB / 466.5 MB, free: 41.54 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.302e-05/0.1834, allocations: 29.86 kB / 466.5 MB, free: 41.54 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.908e-05/0.1834, allocations: 17.02 kB / 466.5 MB, free: 41.53 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001686/0.1836, allocations: 303.8 kB / 466.8 MB, free: 41.39 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1836, allocations: 4 kB / 466.8 MB, free: 41.39 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000376/0.184, allocations: 154.9 kB / 467 MB, free: 41.37 MB / 410.7 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.0001225/0.1841, allocations: 124.4 kB / 467.1 MB, free: 41.27 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0008139/0.1849, allocations: 0.8769 MB / 468 MB, free: 40.79 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1849, allocations: 4.594 kB / 468 MB, free: 40.79 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000387/0.1853, allocations: 494.7 kB / 468.5 MB, free: 40.48 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003999/0.1857, allocations: 127.5 kB / 468.6 MB, free: 40.44 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001267/0.187, allocations: 1.433 MB / 470 MB, free: 39.68 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001939/0.1872, allocations: 373.3 kB / 470.4 MB, free: 39.55 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.809e-05/0.1873, allocations: 47.58 kB / 470.4 MB, free: 39.54 MB / 410.7 MB Notification: Performance of SimCode: time 3.91e-07/0.1873, allocations: 0 / 470.4 MB, free: 39.54 MB / 410.7 MB Notification: Performance of Templates: time 0.01013/0.1974, allocations: 13.41 MB / 483.8 MB, free: 38.48 MB / 410.7 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/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.829159891232848]