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.001015/0.001015, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.001406/0.001406, allocations: 169.9 kB / 24.91 MB, free: 8.723 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 1.087/1.087, allocations: 177.1 MB / 205.3 MB, free: 5.102 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.2918/0.2918, allocations: 29.42 MB / 291.2 MB, free: 2.34 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 3.437e-06/3.437e-06, allocations: 0 / 316.9 MB, free: 15.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 5.543e-05/5.887e-05, allocations: 2.312 kB / 316.9 MB, free: 15.98 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.008775/0.008834, allocations: 5.492 MB / 322.3 MB, free: 10.47 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003712/0.01255, allocations: 1.36 MB / 323.7 MB, free: 9.105 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007953/0.01334, allocations: 35.69 kB / 323.7 MB, free: 9.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004837/0.01382, allocations: 123 kB / 323.9 MB, free: 8.949 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001472/0.0153, allocations: 437.5 kB / 324.3 MB, free: 8.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008169/0.01611, allocations: 239.5 kB / 324.5 MB, free: 8.285 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001694/0.01781, allocations: 1.133 MB / 325.7 MB, free: 7.148 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004603/0.01827, allocations: 260.1 kB / 325.9 MB, free: 6.891 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001376/0.01964, allocations: 0.717 MB / 326.6 MB, free: 6.172 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007518/0.0204, allocations: 450.8 kB / 327.1 MB, free: 5.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.274e-05/0.02049, allocations: 64 kB / 327.1 MB, free: 5.668 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001187/0.02061, allocations: 64 kB / 327.2 MB, free: 5.605 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003008/0.02091, allocations: 351.1 kB / 327.5 MB, free: 5.262 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000299/0.02121, allocations: 283.3 kB / 327.8 MB, free: 4.984 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008934/0.0221, allocations: 0.6072 MB / 328.4 MB, free: 4.375 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.011e-05/0.02211, allocations: 0 / 328.4 MB, free: 4.375 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.025e-06/0.02211, allocations: 4 kB / 328.4 MB, free: 4.371 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.184e-05/0.02213, allocations: 0 / 328.4 MB, free: 4.371 MB / 298.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.001412/0.02354, allocations: 1.004 MB / 329.4 MB, free: 3.324 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.02358, allocations: 15.97 kB / 329.4 MB, free: 3.309 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.02372, allocations: 112.9 kB / 329.6 MB, free: 3.199 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005517/0.02427, allocations: 495 kB / 330 MB, free: 2.688 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001209/0.02439, allocations: 220.1 kB / 330.2 MB, free: 2.438 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.159e-05/0.02446, allocations: 60.38 kB / 330.3 MB, free: 2.379 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005684/0.02503, allocations: 0.5562 MB / 330.9 MB, free: 1.777 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.02504, allocations: 3.938 kB / 330.9 MB, free: 1.773 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.961e-05/0.02508, allocations: 27.98 kB / 330.9 MB, free: 1.746 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.532e-05/0.02516, allocations: 29.3 kB / 330.9 MB, free: 1.715 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002539/0.02541, allocations: 191.8 kB / 331.1 MB, free: 1.527 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001843/0.02726, allocations: 2.019 MB / 333.1 MB, free: 15.43 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004686/0.02772, allocations: 361.3 kB / 333.5 MB, free: 15.06 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001809/0.02791, allocations: 132.9 kB / 333.6 MB, free: 14.93 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.605e-05/0.02793, allocations: 12.33 kB / 333.6 MB, free: 14.92 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002331/0.02817, allocations: 205.6 kB / 333.8 MB, free: 14.7 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 1.843e-06/0.02817, allocations: 4 kB / 333.8 MB, free: 14.69 MB / 314.7 MB Notification: Performance of matching and sorting (n=41): time 0.0008967/0.02906, allocations: 483.3 kB / 334.3 MB, free: 14.2 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/0.02911, allocations: 114.8 kB / 334.4 MB, free: 14.07 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002269/0.02934, allocations: 391.1 kB / 334.8 MB, free: 13.67 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.007e-05/0.02937, allocations: 37.64 kB / 334.8 MB, free: 13.62 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001446/0.02951, allocations: 333.3 kB / 335.2 MB, free: 13.3 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.171e-05/0.02959, allocations: 142.8 kB / 335.3 MB, free: 13.16 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/0.02971, allocations: 118.2 kB / 335.4 MB, free: 13.03 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.02981, allocations: 370.6 kB / 335.8 MB, free: 12.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.02993, allocations: 113.8 kB / 335.9 MB, free: 12.54 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/0.0301, allocations: 267.5 kB / 336.1 MB, free: 12.21 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002904/0.03039, allocations: 393.8 kB / 336.5 MB, free: 11.75 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.03039, allocations: 0 / 336.5 MB, free: 11.75 MB / 314.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0004521/0.03085, allocations: 484.9 kB / 337 MB, free: 11.24 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.821e-05/0.03089, allocations: 49.69 kB / 337.1 MB, free: 11.19 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/0.03091, allocations: 4 kB / 337.1 MB, free: 11.18 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002117/0.03112, allocations: 56.86 kB / 337.1 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002013/0.03132, allocations: 103.8 kB / 337.2 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001339/0.03266, allocations: 2.683 MB / 339.9 MB, free: 8.145 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001772/0.03284, allocations: 55.62 kB / 340 MB, free: 8.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.886e-05/0.03289, allocations: 39.91 kB / 340 MB, free: 8.051 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (65): * Single equations (assignments): 62 * 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.0001574/0.03305, allocations: 160.6 kB / 340.1 MB, free: 7.883 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.228e-05/0.0331, allocations: 43.91 kB / 340.2 MB, free: 7.84 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003452/0.03344, allocations: 290.3 kB / 340.5 MB, free: 7.543 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.03345, allocations: 4 kB / 340.5 MB, free: 7.539 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.03345, allocations: 4 kB / 340.5 MB, free: 7.535 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.03346, allocations: 3.938 kB / 340.5 MB, free: 7.531 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007565/0.03421, allocations: 0.7999 MB / 341.3 MB, free: 6.691 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.03421, allocations: 0 / 341.3 MB, free: 6.691 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001355/0.03435, allocations: 55.91 kB / 341.3 MB, free: 6.637 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001473/0.0345, allocations: 68.38 kB / 341.4 MB, free: 6.562 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.51e-05/0.03452, allocations: 15.98 kB / 341.4 MB, free: 6.547 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001194/0.03572, allocations: 2.672 MB / 344.1 MB, free: 3.676 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.03572, allocations: 0 / 344.1 MB, free: 3.676 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004753/0.03619, allocations: 0.4965 MB / 344.6 MB, free: 3.148 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001024/0.0363, allocations: 79.52 kB / 344.7 MB, free: 3.07 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.237e-05/0.03635, allocations: 23.98 kB / 344.7 MB, free: 3.047 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001301/0.03648, allocations: 24.02 kB / 344.7 MB, free: 3.023 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.562e-05/0.03653, allocations: 28.08 kB / 344.7 MB, free: 2.996 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.102e-05/0.03656, allocations: 15.98 kB / 344.8 MB, free: 2.98 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000119/0.03667, allocations: 156.7 kB / 344.9 MB, free: 2.828 MB / 314.7 MB Notification: Performance of sort global known variables: time 3e-08/0.03667, allocations: 0 / 344.9 MB, free: 2.828 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004854/0.03716, allocations: 183.6 kB / 345.1 MB, free: 2.648 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (41): * Single equations (assignments): 32 * 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.0001571/0.03732, allocations: 116.3 kB / 345.2 MB, free: 2.527 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006484/0.03797, allocations: 0.6052 MB / 345.8 MB, free: 1.879 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.253e-05/0.03798, allocations: 4 kB / 345.8 MB, free: 1.875 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003222/0.0383, allocations: 366 kB / 346.2 MB, free: 1.488 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004553/0.03876, allocations: 148.8 kB / 346.3 MB, free: 1.348 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001722/0.04048, allocations: 1.176 MB / 347.5 MB, free: 136 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001484/0.04063, allocations: 189.7 kB / 347.7 MB, free: 15.92 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001585/0.04078, allocations: 60.67 kB / 347.7 MB, free: 15.86 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002273/0.04101, allocations: 161.3 kB / 347.9 MB, free: 15.7 MB / 330.7 MB Notification: Performance of SimCode: time 1.363e-06/0.04101, allocations: 0 / 347.9 MB, free: 15.7 MB / 330.7 MB Notification: Performance of Templates: time 0.01016/0.05118, allocations: 7.274 MB / 355.2 MB, free: 8.578 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.50774035602808]