Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 112.9 kB / 19.04 MB, free: 3.258 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001786/0.001786, allocations: 193.9 kB / 22.22 MB, free: 80 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.467/1.467, allocations: 225.6 MB / 250.8 MB, free: 13.34 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1842/0.1842, allocations: 38.52 MB / 344.5 MB, free: 2.582 MB / 270.1 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,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.Inverters.InverterToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,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.Inverters.InverterToGrid") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002131/0.002131, allocations: 67.89 kB / 482.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3888/0.3909, allocations: 61.23 MB / 0.5306 GB, free: 5.504 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.007658/0.3985, allocations: 6.716 MB / 0.5371 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00303/0.4016, allocations: 1.677 MB / 0.5388 GB, free: 15.44 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003661/0.4019, allocations: 32.19 kB / 0.5388 GB, free: 15.43 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000511/0.4025, allocations: 164 kB / 0.5389 GB, free: 15.29 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001027/0.4035, allocations: 443.2 kB / 0.5394 GB, free: 14.93 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009091/0.4044, allocations: 347 kB / 0.5397 GB, free: 14.66 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001995/0.4064, allocations: 1.502 MB / 0.5412 GB, free: 13.79 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004287/0.4068, allocations: 250.5 kB / 0.5414 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001029/0.4078, allocations: 0.6306 MB / 0.542 GB, free: 13.27 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009453/0.4088, allocations: 0.6831 MB / 0.5427 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001412/0.4089, allocations: 101.4 kB / 0.5428 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001737/0.4091, allocations: 99.69 kB / 0.5429 GB, free: 12.86 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004162/0.4095, allocations: 423.8 kB / 0.5433 GB, free: 12.58 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004934/0.41, allocations: 466.7 kB / 0.5437 GB, free: 12.26 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001315/0.4113, allocations: 1.189 MB / 0.5449 GB, free: 11.43 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.4113, allocations: 0 / 0.5449 GB, free: 11.43 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4113, allocations: 1.125 kB / 0.5449 GB, free: 11.43 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.416e-05/0.4113, allocations: 4 kB / 0.5449 GB, free: 11.43 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.002822/0.4142, allocations: 1.33 MB / 0.5462 GB, free: 10.44 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.4142, allocations: 17.05 kB / 0.5462 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001931/0.4144, allocations: 96.58 kB / 0.5463 GB, free: 10.39 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001436/0.4158, allocations: 0.7333 MB / 0.547 GB, free: 9.836 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004611/0.4163, allocations: 347.5 kB / 0.5474 GB, free: 9.523 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001407/0.4164, allocations: 68.12 kB / 0.5474 GB, free: 9.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002404/0.4188, allocations: 1.139 MB / 0.5485 GB, free: 8.797 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.4189, allocations: 0 / 0.5485 GB, free: 8.797 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.47e-05/0.4189, allocations: 30.38 kB / 0.5486 GB, free: 8.773 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001394/0.4191, allocations: 38.81 kB / 0.5486 GB, free: 8.766 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002771/0.4219, allocations: 1.175 MB / 0.5497 GB, free: 8.188 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005775/0.4276, allocations: 3.476 MB / 0.5531 GB, free: 5.207 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002481/0.4301, allocations: 0.9212 MB / 0.554 GB, free: 4.27 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001709/0.4318, allocations: 0.6629 MB / 0.5547 GB, free: 3.598 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.272e-05/0.4319, allocations: 4.562 kB / 0.5547 GB, free: 3.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00157/0.4335, allocations: 0.6849 MB / 0.5554 GB, free: 2.891 MB / 398.1 MB Notification: Performance of pre-optimization done (n=59): time 2.475e-06/0.4335, allocations: 0 / 0.5554 GB, free: 2.891 MB / 398.1 MB Notification: Performance of matching and sorting (n=61): time 0.01945/0.4529, allocations: 5.676 MB / 0.5609 GB, free: 13.14 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.36e-05/0.453, allocations: 89.66 kB / 0.561 GB, free: 13.03 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006294/0.4536, allocations: 473.8 kB / 0.5614 GB, free: 12.56 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001006/0.4537, allocations: 41.7 kB / 0.5615 GB, free: 12.51 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003116/0.454, allocations: 328.9 kB / 0.5618 GB, free: 12.18 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000209/0.4542, allocations: 214.2 kB / 0.562 GB, free: 11.97 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002517/0.4545, allocations: 130.3 kB / 0.5621 GB, free: 11.84 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002004/0.4547, allocations: 374.8 kB / 0.5625 GB, free: 11.46 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/0.4558, allocations: 0.5051 MB / 0.563 GB, free: 10.96 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001197/0.457, allocations: 0.6219 MB / 0.5636 GB, free: 10.29 MB / 414.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.007089/0.4641, allocations: 3.131 MB / 0.5666 GB, free: 7.078 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.4641, allocations: 0 / 0.5666 GB, free: 7.078 MB / 414.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.007552/0.4717, allocations: 2.491 MB / 0.5691 GB, free: 4.566 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.446e-05/0.4718, allocations: 60.56 kB / 0.5691 GB, free: 4.504 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.53e-05/0.4718, allocations: 7.984 kB / 0.5691 GB, free: 4.496 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002679/0.4745, allocations: 1.074 MB / 0.5702 GB, free: 3.418 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005679/0.475, allocations: 119.7 kB / 0.5703 GB, free: 3.301 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01614/0.4912, allocations: 6.859 MB / 0.577 GB, free: 12.3 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008609/0.492, allocations: 79.95 kB / 0.5771 GB, free: 12.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001011/0.4921, allocations: 39.98 kB / 0.5771 GB, free: 12.19 MB / 430.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.t0,$PRE.inverter.modulator.sigdel_t,inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[4],inverter.modulator.gates[3],inverter.modulator.gates[2],inverter.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0006256/0.4928, allocations: 287.3 kB / 0.5774 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.4929, allocations: 63.58 kB / 0.5774 GB, free: 11.83 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007849/0.5007, allocations: 2.425 MB / 0.5798 GB, free: 9.391 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.093e-05/0.5007, allocations: 8 kB / 0.5798 GB, free: 9.383 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.5007, allocations: 4 kB / 0.5798 GB, free: 9.379 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.5007, allocations: 3.984 kB / 0.5798 GB, free: 9.375 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01015/0.5109, allocations: 3.559 MB / 0.5833 GB, free: 5.734 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/0.5109, allocations: 0 / 0.5833 GB, free: 5.734 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000447/0.5113, allocations: 75.89 kB / 0.5834 GB, free: 5.66 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002678/0.514, allocations: 1.09 MB / 0.5844 GB, free: 4.566 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001345/0.5142, allocations: 15.98 kB / 0.5845 GB, free: 4.551 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01722/0.5314, allocations: 6.847 MB / 0.5911 GB, free: 13.57 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.064e-06/0.5314, allocations: 8.062 kB / 0.5911 GB, free: 13.56 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01023/0.5416, allocations: 3.188 MB / 0.5943 GB, free: 10.33 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005675/0.5422, allocations: 232.6 kB / 0.5945 GB, free: 10.08 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000135/0.5423, allocations: 27.98 kB / 0.5945 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007202/0.543, allocations: 95.88 kB / 0.5946 GB, free: 9.961 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004898/0.5435, allocations: 172.2 kB / 0.5948 GB, free: 9.793 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.535e-05/0.5436, allocations: 19.98 kB / 0.5948 GB, free: 9.773 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004703/0.5441, allocations: 326.8 kB / 0.5951 GB, free: 9.457 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5441, allocations: 0 / 0.5951 GB, free: 9.457 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001017/0.5451, allocations: 228 kB / 0.5953 GB, free: 9.234 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * Number of discrete variables: 8 ($whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0,system.initime) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002402/0.5453, allocations: 139.2 kB / 0.5954 GB, free: 9.09 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004643/0.55, allocations: 1.665 MB / 0.5971 GB, free: 7.398 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.55, allocations: 3.938 kB / 0.5971 GB, free: 7.395 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003195/0.5532, allocations: 1.084 MB / 0.5981 GB, free: 6.297 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/0.5542, allocations: 160 kB / 0.5983 GB, free: 6.137 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003679/0.5579, allocations: 1.721 MB / 0.6 GB, free: 4.367 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009805/0.5588, allocations: 0.9929 MB / 0.6009 GB, free: 3.348 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000373/0.5592, allocations: 129.1 kB / 0.6011 GB, free: 3.223 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001225/0.5593, allocations: 39.44 kB / 0.6011 GB, free: 3.184 MB / 446.1 MB Notification: Performance of SimCode: time 1.042e-06/0.5593, allocations: 0 / 0.6011 GB, free: 3.184 MB / 446.1 MB Notification: Performance of Templates: time 0.03168/0.591, allocations: 17.45 MB / 0.6181 GB, free: 1.793 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile [Timeout 660] (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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.675142119638622]