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.00121/0.00121, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001123/0.002333, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007109/0.0007109, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009983/0.001709, allocations: 479.5 kB / 11.83 MB, free: 2.344 MB / 13.93 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.9801/0.9801, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08975/1.07, allocations: 53.66 MB / 243.4 MB, free: 15.52 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.1.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.1.0-master/package.mo): time 0.1321/0.1321, allocations: 29.44 MB / 273.6 MB, free: 1.414 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1136/0.2457, allocations: 9.544 MB / 283.1 MB, free: 12.84 MB / 282.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.1.0-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="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="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.974e-06/1.974e-06, allocations: 1.125 kB / 284.5 MB, free: 11.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.62e-05/1.818e-05, allocations: 3.297 kB / 284.5 MB, free: 11.88 MB / 282.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Inverter): time 0.00509/0.005108, allocations: 5.581 MB / 290 MB, free: 7.523 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001747/0.006855, allocations: 1.371 MB / 291.4 MB, free: 6.434 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002244/0.007079, allocations: 36.19 kB / 291.4 MB, free: 6.414 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002173/0.007296, allocations: 124.7 kB / 291.6 MB, free: 6.305 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005601/0.007856, allocations: 429.2 kB / 292 MB, free: 5.961 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000349/0.008205, allocations: 247.6 kB / 292.2 MB, free: 5.766 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007699/0.008975, allocations: 1.119 MB / 293.3 MB, free: 5.148 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002717/0.009247, allocations: 267 kB / 293.6 MB, free: 4.988 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007058/0.009953, allocations: 0.7326 MB / 294.3 MB, free: 4.559 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004548/0.01041, allocations: 455.2 kB / 294.8 MB, free: 4.32 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.139e-05/0.01048, allocations: 61.94 kB / 294.8 MB, free: 4.309 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.528e-05/0.01057, allocations: 67.94 kB / 294.9 MB, free: 4.242 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001914/0.01077, allocations: 311.2 kB / 295.2 MB, free: 3.938 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001794/0.01095, allocations: 223.6 kB / 295.4 MB, free: 3.719 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007237/0.01167, allocations: 0.5683 MB / 296 MB, free: 3.148 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.173e-05/0.01168, allocations: 4 kB / 296 MB, free: 3.145 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.01168, allocations: 0 / 296 MB, free: 3.145 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.01169, allocations: 0 / 296 MB, free: 3.145 MB / 282.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.001072/0.01276, allocations: 1.168 MB / 297.2 MB, free: 1.934 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.803e-05/0.01279, allocations: 12.03 kB / 297.2 MB, free: 1.922 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001186/0.01291, allocations: 108.8 kB / 297.3 MB, free: 1.816 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004907/0.0134, allocations: 0.495 MB / 297.8 MB, free: 1.297 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001074/0.01351, allocations: 216.1 kB / 298 MB, free: 1.051 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.91e-05/0.01358, allocations: 64.38 kB / 298.1 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005254/0.0141, allocations: 0.5562 MB / 298.6 MB, free: 396 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.325e-05/0.01412, allocations: 0 / 298.6 MB, free: 396 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.778e-05/0.01416, allocations: 20 kB / 298.6 MB, free: 376 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-05/0.01422, allocations: 37.3 kB / 298.7 MB, free: 336 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002343/0.01446, allocations: 195.7 kB / 298.9 MB, free: 140 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001648/0.0161, allocations: 2.019 MB / 300.9 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004599/0.01656, allocations: 354.3 kB / 301.2 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001656/0.01673, allocations: 139.5 kB / 301.4 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.265e-05/0.01675, allocations: 12.31 kB / 301.4 MB, free: 13.53 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002103/0.01696, allocations: 205.6 kB / 301.6 MB, free: 13.3 MB / 298.7 MB Notification: Performance of pre-optimization done (n=41): time 1.272e-06/0.01696, allocations: 0 / 301.6 MB, free: 13.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=41): time 0.0007968/0.01776, allocations: 0.5072 MB / 302.1 MB, free: 12.78 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.872e-05/0.01781, allocations: 110.8 kB / 302.2 MB, free: 12.65 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002133/0.01802, allocations: 399 kB / 302.6 MB, free: 12.25 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.89e-05/0.01805, allocations: 41.69 kB / 302.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00038/0.01843, allocations: 313.4 kB / 302.9 MB, free: 11.89 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.143e-05/0.0185, allocations: 150.8 kB / 303.1 MB, free: 11.74 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.69e-05/0.0186, allocations: 114.2 kB / 303.2 MB, free: 11.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.443e-05/0.01868, allocations: 374.6 kB / 303.6 MB, free: 11.24 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001066/0.01879, allocations: 117.8 kB / 303.7 MB, free: 11.12 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001492/0.01894, allocations: 275.5 kB / 303.9 MB, free: 10.78 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002702/0.01921, allocations: 393.6 kB / 304.3 MB, free: 10.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.01921, allocations: 3.984 kB / 304.3 MB, free: 10.31 MB / 298.7 MB Notification: Performance of matching and sorting (n=73) (initialization): time 0.0004188/0.01963, allocations: 0.4892 MB / 304.8 MB, free: 9.797 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.087e-05/0.01967, allocations: 49.69 kB / 304.9 MB, free: 9.742 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.183e-06/0.01968, allocations: 8 kB / 304.9 MB, free: 9.734 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001595/0.01984, allocations: 52.84 kB / 304.9 MB, free: 9.676 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002163/0.02006, allocations: 123.8 kB / 305 MB, free: 9.555 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00119/0.02125, allocations: 2.687 MB / 307.7 MB, free: 6.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001633/0.02141, allocations: 51.62 kB / 307.8 MB, free: 6.629 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.811e-05/0.02146, allocations: 35.97 kB / 307.8 MB, free: 6.594 MB / 298.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.0001317/0.02159, allocations: 158 kB / 308 MB, free: 6.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.656e-05/0.02164, allocations: 47.95 kB / 308 MB, free: 6.383 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003152/0.02195, allocations: 282.5 kB / 308.3 MB, free: 6.09 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.02195, allocations: 4 kB / 308.3 MB, free: 6.086 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.02196, allocations: 4 kB / 308.3 MB, free: 6.082 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.812e-06/0.02196, allocations: 7.922 kB / 308.3 MB, free: 6.074 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006848/0.02265, allocations: 0.8001 MB / 309.1 MB, free: 5.234 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.02265, allocations: 0 / 309.1 MB, free: 5.234 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001441/0.0228, allocations: 59.91 kB / 309.2 MB, free: 5.176 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.421e-05/0.02288, allocations: 83.47 kB / 309.2 MB, free: 5.094 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001351/0.02302, allocations: 72.39 kB / 309.3 MB, free: 5.016 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.293e-05/0.02304, allocations: 11.98 kB / 309.3 MB, free: 5.004 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0013/0.02434, allocations: 2.676 MB / 312 MB, free: 2.133 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.02434, allocations: 0 / 312 MB, free: 2.133 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000424/0.02476, allocations: 0.5038 MB / 312.5 MB, free: 1.594 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.141e-05/0.02482, allocations: 23.98 kB / 312.5 MB, free: 1.57 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001237/0.02494, allocations: 19.98 kB / 312.6 MB, free: 1.551 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.713e-05/0.02499, allocations: 27.94 kB / 312.6 MB, free: 1.523 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.807e-05/0.025, allocations: 15.98 kB / 312.6 MB, free: 1.508 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001046/0.02511, allocations: 156.7 kB / 312.7 MB, free: 1.352 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02511, allocations: 4 kB / 312.8 MB, free: 1.348 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003937/0.0255, allocations: 183.6 kB / 312.9 MB, free: 1.168 MB / 298.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.0001164/0.02562, allocations: 115 kB / 313 MB, free: 1.051 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005234/0.02614, allocations: 0.6175 MB / 313.7 MB, free: 396 kB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.493e-05/0.02616, allocations: 8 kB / 313.7 MB, free: 388 kB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002995/0.02646, allocations: 379.2 kB / 314 MB, free: 15.98 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006299/0.02709, allocations: 1.033 MB / 315.1 MB, free: 14.76 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007385/0.03447, allocations: 1.223 MB / 316.3 MB, free: 13.5 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001692/0.03464, allocations: 193.7 kB / 316.5 MB, free: 13.29 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002418/0.03488, allocations: 60.66 kB / 316.5 MB, free: 13.23 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002903/0.03517, allocations: 161.3 kB / 316.7 MB, free: 13.07 MB / 314.7 MB Notification: Performance of SimCode: time 1.483e-06/0.03517, allocations: 0 / 316.7 MB, free: 13.07 MB / 314.7 MB Notification: Performance of Templates: time 0.0228/0.05797, allocations: 7.371 MB / 324.1 MB, free: 5.852 MB / 314.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0222299844026566]