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.0009689/0.0009689, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.00102/0.00102, allocations: 167.6 kB / 25.61 MB, free: 8.902 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.9651/0.9651, allocations: 177.1 MB / 206.1 MB, free: 4.52 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.125/0.125, allocations: 29.43 MB / 292 MB, free: 2.652 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.1.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 1.543e-06/1.543e-06, allocations: 0 / 370.9 MB, free: 32.32 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.136e-05/2.29e-05, allocations: 3.344 kB / 370.9 MB, free: 32.32 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.00647/0.006493, allocations: 5.471 MB / 376.4 MB, free: 26.82 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002415/0.008908, allocations: 1.313 MB / 377.7 MB, free: 25.51 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004733/0.009381, allocations: 35.69 kB / 377.7 MB, free: 25.47 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004002/0.009781, allocations: 123 kB / 377.8 MB, free: 25.35 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001454/0.01123, allocations: 437.5 kB / 378.3 MB, free: 24.92 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007307/0.01197, allocations: 243.5 kB / 378.5 MB, free: 24.68 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001326/0.01329, allocations: 1.137 MB / 379.6 MB, free: 23.54 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003963/0.01369, allocations: 254.2 kB / 379.9 MB, free: 23.29 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001135/0.01482, allocations: 0.7208 MB / 380.6 MB, free: 22.57 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007025/0.01553, allocations: 478.7 kB / 381.1 MB, free: 22.1 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 9.76e-05/0.01562, allocations: 64 kB / 381.1 MB, free: 22.04 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001166/0.01574, allocations: 60 kB / 381.2 MB, free: 21.98 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002765/0.01602, allocations: 355.1 kB / 381.5 MB, free: 21.63 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003023/0.01632, allocations: 279.3 kB / 381.8 MB, free: 21.36 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007609/0.01708, allocations: 0.6073 MB / 382.4 MB, free: 20.75 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.01709, allocations: 0 / 382.4 MB, free: 20.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.01709, allocations: 4 kB / 382.4 MB, free: 20.74 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.0171, allocations: 0 / 382.4 MB, free: 20.74 MB / 314.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.001481/0.01858, allocations: 1.16 MB / 383.6 MB, free: 19.53 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.01862, allocations: 12.03 kB / 383.6 MB, free: 19.52 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002096/0.01883, allocations: 140.4 kB / 383.7 MB, free: 19.38 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001323/0.02015, allocations: 0.5135 MB / 384.2 MB, free: 18.84 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/0.02027, allocations: 216.1 kB / 384.5 MB, free: 18.59 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.786e-05/0.02035, allocations: 64.38 kB / 384.5 MB, free: 18.53 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00068/0.02103, allocations: 0.5683 MB / 385.1 MB, free: 17.91 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.02105, allocations: 7.938 kB / 385.1 MB, free: 17.9 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.895e-05/0.02109, allocations: 27.98 kB / 385.1 MB, free: 17.87 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.794e-05/0.02117, allocations: 29.31 kB / 385.2 MB, free: 17.84 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002354/0.0214, allocations: 196.8 kB / 385.3 MB, free: 17.65 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/0.02321, allocations: 2.68 MB / 388 MB, free: 14.87 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004299/0.02364, allocations: 344.3 kB / 388.4 MB, free: 14.51 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001675/0.02381, allocations: 140.5 kB / 388.5 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.972e-05/0.02383, allocations: 4.328 kB / 388.5 MB, free: 14.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001999/0.02403, allocations: 228.9 kB / 388.7 MB, free: 14.11 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 2.224e-06/0.02403, allocations: 4 kB / 388.7 MB, free: 14.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=42): time 0.00124/0.02527, allocations: 0.7869 MB / 389.5 MB, free: 13.27 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.157e-05/0.0253, allocations: 118.8 kB / 389.6 MB, free: 13.13 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002123/0.02551, allocations: 466.3 kB / 390.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.534e-05/0.02554, allocations: 41.77 kB / 390.1 MB, free: 12.61 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.02569, allocations: 427 kB / 390.5 MB, free: 12.19 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.498e-05/0.02576, allocations: 154.8 kB / 390.7 MB, free: 12.04 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.824e-05/0.02586, allocations: 123.9 kB / 390.8 MB, free: 11.91 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.083e-05/0.02593, allocations: 0.5468 MB / 391.4 MB, free: 11.35 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.416e-05/0.02602, allocations: 114.9 kB / 391.5 MB, free: 11.23 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.02616, allocations: 354.8 kB / 391.8 MB, free: 10.78 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002428/0.0264, allocations: 458 kB / 392.3 MB, free: 10.23 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.02641, allocations: 4 kB / 392.3 MB, free: 10.23 MB / 314.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0004708/0.02688, allocations: 0.5736 MB / 392.8 MB, free: 9.625 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.085e-05/0.02691, allocations: 50.28 kB / 392.9 MB, free: 9.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.02692, allocations: 4 kB / 392.9 MB, free: 9.566 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001572/0.02707, allocations: 59.34 kB / 393 MB, free: 9.5 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001898/0.02726, allocations: 103.8 kB / 393.1 MB, free: 9.398 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001122/0.02838, allocations: 3.737 MB / 396.8 MB, free: 5.438 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000157/0.02854, allocations: 20.16 kB / 396.8 MB, free: 5.418 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.138e-05/0.02859, allocations: 47.91 kB / 396.9 MB, free: 5.371 MB / 314.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.000125/0.02872, allocations: 200.4 kB / 397.1 MB, free: 5.164 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.459e-05/0.02877, allocations: 71.59 kB / 397.1 MB, free: 5.094 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003596/0.02913, allocations: 361.4 kB / 397.5 MB, free: 4.727 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.02913, allocations: 4 kB / 397.5 MB, free: 4.723 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.02914, allocations: 7.938 kB / 397.5 MB, free: 4.715 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.02914, allocations: 0 / 397.5 MB, free: 4.715 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007013/0.02984, allocations: 0.972 MB / 398.5 MB, free: 3.688 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.02985, allocations: 0 / 398.5 MB, free: 3.688 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001273/0.02997, allocations: 55.91 kB / 398.5 MB, free: 3.633 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001328/0.03011, allocations: 67.33 kB / 398.6 MB, free: 3.559 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.111e-05/0.03013, allocations: 15.98 kB / 398.6 MB, free: 3.543 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009343/0.03106, allocations: 3.725 MB / 402.3 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.03106, allocations: 0 / 402.3 MB, free: 15.59 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005624/0.03163, allocations: 0.6093 MB / 402.9 MB, free: 14.94 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.474e-05/0.03172, allocations: 79.62 kB / 403 MB, free: 14.86 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.556e-05/0.03178, allocations: 31.98 kB / 403 MB, free: 14.83 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.03191, allocations: 19.97 kB / 403.1 MB, free: 14.81 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.579e-05/0.03196, allocations: 31.89 kB / 403.1 MB, free: 14.78 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.03197, allocations: 15.98 kB / 403.1 MB, free: 14.77 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001391/0.03211, allocations: 279 kB / 403.4 MB, free: 14.5 MB / 330.7 MB Notification: Performance of sort global known variables: time 2e-08/0.03211, allocations: 3.938 kB / 403.4 MB, free: 14.49 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003777/0.03249, allocations: 144 kB / 403.5 MB, free: 14.35 MB / 330.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.0001139/0.03261, allocations: 137.4 kB / 403.7 MB, free: 14.21 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005734/0.03318, allocations: 0.7467 MB / 404.4 MB, free: 13.41 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.03318, allocations: 0 / 404.4 MB, free: 13.41 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003057/0.03349, allocations: 471.2 kB / 404.9 MB, free: 12.91 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004265/0.03391, allocations: 145.5 kB / 405 MB, free: 12.77 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001522/0.03543, allocations: 1.241 MB / 406.3 MB, free: 11.48 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001346/0.03557, allocations: 189.8 kB / 406.4 MB, free: 11.28 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001482/0.03572, allocations: 72.66 kB / 406.5 MB, free: 11.2 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002218/0.03594, allocations: 186.1 kB / 406.7 MB, free: 11.02 MB / 330.7 MB Notification: Performance of SimCode: time 8.32e-07/0.03594, allocations: 0 / 406.7 MB, free: 11.02 MB / 330.7 MB Notification: Performance of Templates: time 0.008846/0.04479, allocations: 7.403 MB / 414.1 MB, free: 3.766 MB / 330.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=240 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Inverter.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.333901910111308]