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.001532/0.001532, allocations: 80.8 kB / 21.5 MB, free: 2.988 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.001713/0.001713, allocations: 174.2 kB / 24.91 MB, free: 9.195 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.018/1.018, allocations: 177.1 MB / 205.3 MB, free: 5.496 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.2679/0.2679, allocations: 29.43 MB / 291.2 MB, free: 2.477 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.643e-06/1.643e-06, allocations: 0 / 316.9 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.706e-05/2.87e-05, allocations: 11.62 kB / 316.9 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.006019/0.006048, allocations: 5.543 MB / 322.4 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002403/0.00845, allocations: 1.348 MB / 323.8 MB, free: 9.023 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000366/0.008816, allocations: 35.69 kB / 323.8 MB, free: 8.988 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002967/0.009113, allocations: 127 kB / 323.9 MB, free: 8.863 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008449/0.009958, allocations: 433.4 kB / 324.4 MB, free: 8.438 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005059/0.01046, allocations: 239.5 kB / 324.6 MB, free: 8.203 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001087/0.01155, allocations: 1.133 MB / 325.7 MB, free: 7.066 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002932/0.01184, allocations: 264.1 kB / 326 MB, free: 6.805 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009173/0.01276, allocations: 0.7092 MB / 326.7 MB, free: 6.094 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005835/0.01334, allocations: 454.8 kB / 327.2 MB, free: 5.648 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.594e-05/0.01343, allocations: 64 kB / 327.2 MB, free: 5.586 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001012/0.01353, allocations: 68 kB / 327.3 MB, free: 5.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002588/0.01379, allocations: 355.1 kB / 327.6 MB, free: 5.172 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000209/0.014, allocations: 271.3 kB / 327.9 MB, free: 4.906 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005455/0.01454, allocations: 0.6111 MB / 328.5 MB, free: 4.293 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.873e-06/0.01455, allocations: 0 / 328.5 MB, free: 4.293 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.01455, allocations: 0 / 328.5 MB, free: 4.293 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.448e-06/0.01456, allocations: 0 / 328.5 MB, free: 4.293 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.001157/0.01571, allocations: 1.016 MB / 329.5 MB, free: 3.234 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.01575, allocations: 11.98 kB / 329.5 MB, free: 3.223 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000137/0.01589, allocations: 108.9 kB / 329.6 MB, free: 3.117 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005595/0.01644, allocations: 495 kB / 330.1 MB, free: 2.605 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001192/0.01656, allocations: 220.1 kB / 330.3 MB, free: 2.355 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.643e-05/0.01664, allocations: 68.34 kB / 330.4 MB, free: 2.289 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005897/0.01723, allocations: 0.5523 MB / 331 MB, free: 1.691 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.01725, allocations: 3.938 kB / 331 MB, free: 1.688 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.171e-05/0.01729, allocations: 31.98 kB / 331 MB, free: 1.656 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.227e-05/0.01736, allocations: 25.31 kB / 331 MB, free: 1.629 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002676/0.01763, allocations: 191.8 kB / 331.2 MB, free: 1.441 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00185/0.01948, allocations: 2.015 MB / 333.2 MB, free: 15.35 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004661/0.01995, allocations: 361.6 kB / 333.6 MB, free: 14.98 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001669/0.02011, allocations: 134.3 kB / 333.7 MB, free: 14.84 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.144e-05/0.02014, allocations: 8.328 kB / 333.7 MB, free: 14.84 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002167/0.02035, allocations: 205.8 kB / 333.9 MB, free: 14.61 MB / 314.7 MB Notification: Performance of pre-optimization done (n=41): time 1.663e-06/0.02035, allocations: 0 / 333.9 MB, free: 14.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=41): time 0.0008699/0.02122, allocations: 483.4 kB / 334.4 MB, free: 14.12 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.23e-05/0.02129, allocations: 118.8 kB / 334.5 MB, free: 13.98 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003432/0.02163, allocations: 391.1 kB / 334.9 MB, free: 13.59 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.679e-05/0.02167, allocations: 37.7 kB / 334.9 MB, free: 13.54 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.02182, allocations: 317.3 kB / 335.2 MB, free: 13.23 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.776e-05/0.0219, allocations: 150.8 kB / 335.4 MB, free: 13.08 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001161/0.02202, allocations: 118.2 kB / 335.5 MB, free: 12.96 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.964e-05/0.02212, allocations: 366.6 kB / 335.8 MB, free: 12.59 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001278/0.02225, allocations: 117.7 kB / 336 MB, free: 12.47 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001725/0.02242, allocations: 274.5 kB / 336.2 MB, free: 12.13 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003031/0.02272, allocations: 385.8 kB / 336.6 MB, free: 11.68 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/0.02273, allocations: 0 / 336.6 MB, free: 11.68 MB / 314.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0004869/0.02321, allocations: 485.2 kB / 337.1 MB, free: 11.17 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.722e-05/0.02325, allocations: 49.69 kB / 337.1 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.02326, allocations: 4 kB / 337.1 MB, free: 11.11 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001837/0.02344, allocations: 60.44 kB / 337.2 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002259/0.02367, allocations: 111.8 kB / 337.3 MB, free: 10.94 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001422/0.02509, allocations: 2.691 MB / 340 MB, free: 8.055 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001832/0.02527, allocations: 55.62 kB / 340 MB, free: 8 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.82e-05/0.02532, allocations: 35.97 kB / 340.1 MB, free: 7.965 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.0001509/0.02547, allocations: 160.4 kB / 340.2 MB, free: 7.797 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.317e-05/0.02553, allocations: 47.89 kB / 340.3 MB, free: 7.75 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003636/0.02589, allocations: 286.2 kB / 340.6 MB, free: 7.457 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.02589, allocations: 4 kB / 340.6 MB, free: 7.453 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.0259, allocations: 0 / 340.6 MB, free: 7.453 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.0259, allocations: 11.92 kB / 340.6 MB, free: 7.441 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007867/0.02669, allocations: 0.7999 MB / 341.4 MB, free: 6.602 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.02669, allocations: 0 / 341.4 MB, free: 6.602 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001536/0.02685, allocations: 63.84 kB / 341.4 MB, free: 6.539 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000153/0.027, allocations: 64.47 kB / 341.5 MB, free: 6.469 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.038e-05/0.02703, allocations: 15.97 kB / 341.5 MB, free: 6.453 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001334/0.02836, allocations: 2.672 MB / 344.2 MB, free: 3.582 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.02836, allocations: 0 / 344.2 MB, free: 3.582 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004738/0.02884, allocations: 0.5006 MB / 344.7 MB, free: 3.051 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.309e-05/0.02893, allocations: 83.48 kB / 344.8 MB, free: 2.969 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.404e-05/0.02899, allocations: 31.92 kB / 344.8 MB, free: 2.938 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.02912, allocations: 19.98 kB / 344.8 MB, free: 2.918 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.909e-05/0.02918, allocations: 27.94 kB / 344.9 MB, free: 2.891 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-05/0.0292, allocations: 15.98 kB / 344.9 MB, free: 2.875 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001205/0.02932, allocations: 156.7 kB / 345 MB, free: 2.723 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02932, allocations: 0 / 345 MB, free: 2.723 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003873/0.02971, allocations: 183.6 kB / 345.2 MB, free: 2.543 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.0001183/0.02982, allocations: 112.3 kB / 345.3 MB, free: 2.426 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005889/0.03041, allocations: 0.6088 MB / 345.9 MB, free: 1.773 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.469e-05/0.03043, allocations: 4 kB / 345.9 MB, free: 1.77 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003016/0.03073, allocations: 358.5 kB / 346.3 MB, free: 1.391 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003946/0.03112, allocations: 147.4 kB / 346.4 MB, free: 1.254 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001563/0.03269, allocations: 1.176 MB / 347.6 MB, free: 40 kB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001424/0.03283, allocations: 181.7 kB / 347.8 MB, free: 15.84 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001506/0.03298, allocations: 64.67 kB / 347.8 MB, free: 15.77 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002222/0.0332, allocations: 161.2 kB / 348 MB, free: 15.61 MB / 330.7 MB Notification: Performance of SimCode: time 7.32e-07/0.0332, allocations: 0 / 348 MB, free: 15.61 MB / 330.7 MB Notification: Performance of Templates: time 0.009748/0.04295, allocations: 7.283 MB / 355.3 MB, free: 8.477 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 -s gbode -gbm=radauIIA3 -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.1607613968662918]