Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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.001193/0.001193, allocations: 77.88 kB / 21.42 MB, free: 3.07 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.0009125/0.0009125, allocations: 168.9 kB / 24.81 MB, free: 8.918 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.9787/0.9787, allocations: 177.2 MB / 205.3 MB, free: 5.496 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2541/0.2541, allocations: 29.42 MB / 291.2 MB, free: 2.48 MB / 266.7 MB " [Timeout remaining time 180] Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 370.1 MB, free: 10.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.948e-05/2.131e-05, allocations: 5.266 kB / 370.1 MB, free: 10.74 MB / 346.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.005994/0.006016, allocations: 5.537 MB / 375.6 MB, free: 5.164 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002666/0.008682, allocations: 1.633 MB / 377.3 MB, free: 3.527 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004215/0.009103, allocations: 43.62 kB / 377.3 MB, free: 3.484 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000495/0.009598, allocations: 154.8 kB / 377.5 MB, free: 3.332 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008405/0.01044, allocations: 445.4 kB / 377.9 MB, free: 2.895 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006955/0.01113, allocations: 363.3 kB / 378.3 MB, free: 2.539 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001271/0.01241, allocations: 1.511 MB / 379.8 MB, free: 1.023 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003055/0.01271, allocations: 254.1 kB / 380 MB, free: 0.7773 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001168/0.01388, allocations: 0.877 MB / 380.9 MB, free: 15.9 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006841/0.01456, allocations: 0.5689 MB / 381.5 MB, free: 15.33 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001168/0.01468, allocations: 88 kB / 381.5 MB, free: 15.24 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001324/0.01481, allocations: 84 kB / 381.6 MB, free: 15.16 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002929/0.01511, allocations: 427 kB / 382 MB, free: 14.74 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003058/0.01541, allocations: 327.3 kB / 382.4 MB, free: 14.42 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007033/0.01611, allocations: 0.7632 MB / 383.1 MB, free: 13.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.01612, allocations: 0 / 383.1 MB, free: 13.66 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.522e-06/0.01612, allocations: 0 / 383.1 MB, free: 13.66 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.207e-05/0.01613, allocations: 0 / 383.1 MB, free: 13.66 MB / 362.7 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.001513/0.01764, allocations: 1.286 MB / 384.4 MB, free: 12.31 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.01769, allocations: 11.98 kB / 384.4 MB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001897/0.01788, allocations: 164.4 kB / 384.6 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006291/0.0185, allocations: 0.5643 MB / 385.2 MB, free: 11.55 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003722/0.01888, allocations: 0.7292 MB / 385.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.275e-05/0.01897, allocations: 68.33 kB / 385.9 MB, free: 10.61 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007612/0.01973, allocations: 0.6583 MB / 386.6 MB, free: 9.898 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.01974, allocations: 0 / 386.6 MB, free: 9.898 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.646e-05/0.01979, allocations: 27.98 kB / 386.6 MB, free: 9.871 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.095e-05/0.01986, allocations: 29.31 kB / 386.7 MB, free: 9.84 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004427/0.0203, allocations: 330 kB / 387 MB, free: 9.52 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002654/0.02296, allocations: 2.872 MB / 389.9 MB, free: 6.555 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000565/0.02352, allocations: 401.1 kB / 390.2 MB, free: 6.141 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003599/0.02388, allocations: 276.7 kB / 390.5 MB, free: 5.863 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.064e-05/0.02392, allocations: 16.44 kB / 390.5 MB, free: 5.844 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003535/0.02428, allocations: 332 kB / 390.9 MB, free: 5.496 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 1.664e-06/0.02428, allocations: 0 / 390.9 MB, free: 5.496 MB / 362.7 MB Notification: Performance of matching and sorting (n=61): time 0.005395/0.02967, allocations: 2.729 MB / 393.6 MB, free: 2.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.005e-05/0.02972, allocations: 85.61 kB / 393.7 MB, free: 2.629 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003039/0.03003, allocations: 442.3 kB / 394.1 MB, free: 2.176 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.603e-05/0.03007, allocations: 41.7 kB / 394.1 MB, free: 2.129 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002049/0.03028, allocations: 383.4 kB / 394.5 MB, free: 1.75 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001318/0.03041, allocations: 222.2 kB / 394.7 MB, free: 1.531 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001456/0.03056, allocations: 135.8 kB / 394.9 MB, free: 1.391 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.03072, allocations: 0.5507 MB / 395.4 MB, free: 0.8281 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001944/0.03092, allocations: 179.2 kB / 395.6 MB, free: 0.6484 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002651/0.03118, allocations: 342.4 kB / 395.9 MB, free: 256 kB / 362.7 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.000845/0.03203, allocations: 0.8237 MB / 396.8 MB, free: 15.35 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.03203, allocations: 7.938 kB / 396.8 MB, free: 15.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.002004/0.03404, allocations: 1.315 MB / 398.1 MB, free: 14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.562e-05/0.03408, allocations: 45.69 kB / 398.1 MB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.03409, allocations: 4 kB / 398.1 MB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001968/0.03606, allocations: 1.412 MB / 399.5 MB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002515/0.03631, allocations: 99.88 kB / 399.6 MB, free: 12.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00396/0.04027, allocations: 3.315 MB / 402.9 MB, free: 9.012 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003576/0.04063, allocations: 47.95 kB / 403 MB, free: 8.965 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.658e-05/0.04069, allocations: 35.97 kB / 403 MB, free: 8.93 MB / 378.7 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.0002773/0.04096, allocations: 214.5 kB / 403.2 MB, free: 8.707 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.04107, allocations: 75.61 kB / 403.3 MB, free: 8.633 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001932/0.043, allocations: 1.193 MB / 404.5 MB, free: 7.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.04301, allocations: 4 kB / 404.5 MB, free: 7.426 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.04301, allocations: 4 kB / 404.5 MB, free: 7.422 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.505e-06/0.04302, allocations: 3.984 kB / 404.5 MB, free: 7.418 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002817/0.04584, allocations: 1.959 MB / 406.5 MB, free: 5.391 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.04584, allocations: 12 kB / 406.5 MB, free: 5.379 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001883/0.04603, allocations: 67.91 kB / 406.6 MB, free: 5.312 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002012/0.04804, allocations: 1.411 MB / 408 MB, free: 3.898 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.993e-05/0.04809, allocations: 19.98 kB / 408 MB, free: 3.879 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003728/0.05182, allocations: 3.298 MB / 411.3 MB, free: 492 kB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.05182, allocations: 3.938 kB / 411.3 MB, free: 488 kB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002249/0.05407, allocations: 1.513 MB / 412.8 MB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002087/0.05428, allocations: 115.5 kB / 412.9 MB, free: 14.8 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.803e-05/0.05435, allocations: 27.98 kB / 412.9 MB, free: 14.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002416/0.05459, allocations: 63.88 kB / 413 MB, free: 14.71 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000171/0.05476, allocations: 76.36 kB / 413.1 MB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.973e-05/0.05479, allocations: 19.98 kB / 413.1 MB, free: 14.61 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001885/0.05498, allocations: 271 kB / 413.4 MB, free: 14.35 MB / 394.7 MB Notification: Performance of sort global known variables: time 5e-08/0.05498, allocations: 0 / 413.4 MB, free: 14.35 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006802/0.05566, allocations: 224 kB / 413.6 MB, free: 14.13 MB / 394.7 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.0002042/0.05587, allocations: 131.1 kB / 413.7 MB, free: 13.99 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001311/0.05718, allocations: 0.9689 MB / 414.7 MB, free: 12.98 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.05718, allocations: 0.5625 kB / 414.7 MB, free: 12.98 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000844/0.05802, allocations: 0.6497 MB / 415.3 MB, free: 12.31 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004886/0.05851, allocations: 173 kB / 415.5 MB, free: 12.15 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002132/0.06064, allocations: 1.4 MB / 416.9 MB, free: 10.69 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001639/0.06081, allocations: 211 kB / 417.1 MB, free: 10.46 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001973/0.061, allocations: 72.94 kB / 417.2 MB, free: 10.39 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002583/0.06126, allocations: 198.1 kB / 417.4 MB, free: 10.2 MB / 394.7 MB Notification: Performance of SimCode: time 1.042e-06/0.06126, allocations: 0 / 417.4 MB, free: 10.2 MB / 394.7 MB Notification: Performance of Templates: time 0.01873/0.07999, allocations: 16.71 MB / 434.1 MB, free: 9.625 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.makefile [Timeout 660] (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid -abortSlowSimulation -alarm=240 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.5415135989896953]