Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo", uses=false) Using package OpenIPSL with version 3.1.0-dev (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(OpenIPSL.Examples.IEEE9.IEEE_9_Buses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses") translateModel(OpenIPSL.Examples.IEEE9.IEEE_9_Buses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001371/0.001378, allocations: 108.1 kB / 16.41 MB, free: 6.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.327/1.327, allocations: 222.9 MB / 240.1 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 196.5 kB / 290.4 MB, free: 2.109 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5038/0.5038, allocations: 91.91 MB / 432.4 MB, free: 9.176 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 78.88 kB / 0.5734 GB, free: 33.44 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.148, allocations: 71.27 MB / 0.643 GB, free: 3.609 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.IEEE9.IEEE_9_Buses): time 0.01234/0.1604, allocations: 13.12 MB / 0.6558 GB, free: 6.434 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.008716/0.1692, allocations: 3.572 MB / 0.6593 GB, free: 2.852 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0029/0.1721, allocations: 24 kB / 0.6593 GB, free: 2.828 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002225/0.1744, allocations: 0.4993 MB / 0.6598 GB, free: 2.324 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006038/0.1805, allocations: 1.449 MB / 0.6612 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003783/0.1843, allocations: 1.318 MB / 0.6625 GB, free: 15.56 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.006532/0.1908, allocations: 4.042 MB / 0.6664 GB, free: 11.51 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001969/0.1928, allocations: 0.929 MB / 0.6673 GB, free: 10.52 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002855/0.1957, allocations: 1.572 MB / 0.6689 GB, free: 8.941 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003536/0.1992, allocations: 1.898 MB / 0.6707 GB, free: 7.035 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001473/0.2007, allocations: 356 kB / 0.6711 GB, free: 6.688 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00213/0.2028, allocations: 0.496 MB / 0.6716 GB, free: 6.191 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001355/0.2042, allocations: 0.8171 MB / 0.6724 GB, free: 5.371 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003126/0.2074, allocations: 1.67 MB / 0.674 GB, free: 3.691 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005621/0.213, allocations: 4.403 MB / 0.6783 GB, free: 15.27 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.506e-06/0.2131, allocations: 4 kB / 0.6783 GB, free: 15.27 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.2131, allocations: 0 / 0.6783 GB, free: 15.27 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001999/0.2133, allocations: 0 / 0.6783 GB, free: 15.27 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 457 * Number of variables: 457 Notification: Performance of Generate backend data structure: time 0.01889/0.2322, allocations: 5.321 MB / 0.6835 GB, free: 9.844 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.74e-05/0.2322, allocations: 12.03 kB / 0.6835 GB, free: 9.832 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01095/0.2432, allocations: 1.615 MB / 0.6851 GB, free: 8.211 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004561/0.2478, allocations: 1.997 MB / 0.687 GB, free: 6.148 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004715/0.2483, allocations: 464.6 kB / 0.6875 GB, free: 5.633 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004224/0.2487, allocations: 199.9 kB / 0.6877 GB, free: 5.438 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004865/0.2536, allocations: 2.387 MB / 0.69 GB, free: 3.023 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.135e-05/0.2537, allocations: 0 / 0.69 GB, free: 3.023 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002148/0.2539, allocations: 72 kB / 0.6901 GB, free: 2.953 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.349e-05/0.2539, allocations: 44 kB / 0.6901 GB, free: 2.91 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00467/0.2586, allocations: 2.212 MB / 0.6923 GB, free: 0.6953 MB / 494.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01956/0.2782, allocations: 9.045 MB / 0.7011 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01058/0.2888, allocations: 4.38 MB / 0.7054 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003487/0.2923, allocations: 1.535 MB / 0.7069 GB, free: 1.137 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000325/0.2927, allocations: 33.97 kB / 0.7069 GB, free: 1.102 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004346/0.2971, allocations: 1.768 MB / 0.7086 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=236): time 7.955e-06/0.2971, allocations: 0 / 0.7086 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of matching and sorting (n=236): time 0.07835/0.3755, allocations: 17.9 MB / 0.7261 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001541/0.3757, allocations: 235.6 kB / 0.7263 GB, free: 12.99 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004312/0.38, allocations: 2.507 MB / 0.7288 GB, free: 10.46 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000722/0.3807, allocations: 73.7 kB / 0.7289 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009703/0.3817, allocations: 1.118 MB / 0.7299 GB, free: 9.258 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001113/0.3828, allocations: 0.8397 MB / 0.7308 GB, free: 8.406 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001056/0.3839, allocations: 0.5734 MB / 0.7313 GB, free: 7.824 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001142/0.384, allocations: 309.1 kB / 0.7316 GB, free: 7.52 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00315/0.3872, allocations: 1.576 MB / 0.7332 GB, free: 5.941 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00336/0.3905, allocations: 1.91 MB / 0.735 GB, free: 3.961 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04502/0.4356, allocations: 10.99 MB / 0.7458 GB, free: 8.719 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.086e-05/0.4356, allocations: 3.938 kB / 0.7458 GB, free: 8.715 MB / 0.545 GB Notification: Performance of matching and sorting (n=416) (initialization): time 0.02401/0.4596, allocations: 7.416 MB / 0.753 GB, free: 1.203 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001322/0.4598, allocations: 174.2 kB / 0.7532 GB, free: 0.9961 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.06e-05/0.4598, allocations: 4 kB / 0.7532 GB, free: 0.9922 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01104/0.4709, allocations: 2.807 MB / 0.7559 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003544/0.4745, allocations: 0.6319 MB / 0.7565 GB, free: 13.53 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3503/0.8248, allocations: 19.16 MB / 0.7752 GB, free: 104.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004274/0.8291, allocations: 407.4 kB / 0.7756 GB, free: 104.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005953/0.8297, allocations: 121.6 kB / 0.7757 GB, free: 104.4 MB / 0.5606 GB Warning: Assuming fixed start value for the following 9 variables: gen3.gen.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real gen2.gen.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real gen1.gen.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real gen1.gen.delta:VARIABLE(flow=false start = gen1.gen.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real gen1.gen.e1q:VARIABLE(start = gen1.gen.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real gen1.gen.e1d:VARIABLE(start = gen1.gen.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real gen1.AVR.firstOrder2.y:VARIABLE(flow=false start = gen1.AVR.firstOrder2.y_start fixed = true ) "Connector of Real output signal" type: Real gen2.gen.delta:VARIABLE(flow=false start = gen2.gen.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real gen2.gen.e1q:VARIABLE(start = gen2.gen.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3,$whenCondition6,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (345): * Single equations (assignments): 332 * Array equations: 0 * Algorithm blocks: 6 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(4,2), (29,30), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.001529/0.8313, allocations: 0.6217 MB / 0.7764 GB, free: 104.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007774/0.832, allocations: 295.2 kB / 0.7766 GB, free: 104.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02496/0.857, allocations: 7.345 MB / 0.7838 GB, free: 103.8 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.82e-05/0.8571, allocations: 24.38 kB / 0.7838 GB, free: 103.8 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.8571, allocations: 1.094 kB / 0.7838 GB, free: 103.8 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-05/0.8572, allocations: 12.17 kB / 0.7838 GB, free: 103.8 MB / 0.5606 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02733/0.8845, allocations: 11.42 MB / 0.795 GB, free: 100.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.727e-05/0.8846, allocations: 3.938 kB / 0.795 GB, free: 100.1 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001485/0.8861, allocations: 228.8 kB / 0.7952 GB, free: 100.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01178/0.8979, allocations: 3.425 MB / 0.7986 GB, free: 99.55 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007092/0.8987, allocations: 62.23 kB / 0.7986 GB, free: 99.51 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0386/0.9373, allocations: 20.88 MB / 0.819 GB, free: 82.03 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.9374, allocations: 7.984 kB / 0.819 GB, free: 82.02 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02517/0.9625, allocations: 9.128 MB / 0.8279 GB, free: 72.83 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001303/0.9639, allocations: 435.9 kB / 0.8283 GB, free: 72.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006669/0.9646, allocations: 51.98 kB / 0.8284 GB, free: 72.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002538/0.9671, allocations: 219.8 kB / 0.8286 GB, free: 72.15 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001202/0.9683, allocations: 378.5 kB / 0.829 GB, free: 71.78 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001571/0.9685, allocations: 71.75 kB / 0.829 GB, free: 71.71 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002391/0.9709, allocations: 1.677 MB / 0.8307 GB, free: 70.04 MB / 0.5606 GB Notification: Performance of sort global known variables: time 4.31e-07/0.9709, allocations: 0 / 0.8307 GB, free: 70.04 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003085/0.974, allocations: 1.018 MB / 0.8317 GB, free: 69.02 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 24 (gen1.gen.delta,gen1.gen.w,gen1.gen.e1q,gen1.gen.e1d,gen1.AVR.ExcitationSystem.x_scaled[1],gen1.AVR.derivativeBlock.x,gen1.AVR.firstOrder2.y,gen1.AVR.simpleLagLim.state,gen2.gen.delta,gen2.gen.w,gen2.gen.e1q,gen2.gen.e1d,gen2.AVR.ExcitationSystem.x_scaled[1],gen2.AVR.derivativeBlock.x,gen2.AVR.firstOrder2.y,gen2.AVR.simpleLagLim.state,gen3.gen.delta,gen3.gen.w,gen3.gen.e1q,gen3.gen.e1d,gen3.AVR.ExcitationSystem.x_scaled[1],gen3.AVR.derivativeBlock.x,gen3.AVR.firstOrder2.y,gen3.AVR.simpleLagLim.state) * Number of discrete variables: 6 ($whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (142): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(41,45), (1,6), (1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003866/0.9744, allocations: 171.5 kB / 0.8318 GB, free: 68.84 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01233/0.9867, allocations: 5.782 MB / 0.8375 GB, free: 62.89 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.007e-06/0.9868, allocations: 4 kB / 0.8375 GB, free: 62.89 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.008669/0.9955, allocations: 3.59 MB / 0.841 GB, free: 59.21 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003671/0.9992, allocations: 294.9 kB / 0.8413 GB, free: 58.93 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01166/1.011, allocations: 5.49 MB / 0.8466 GB, free: 53.43 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001735/1.013, allocations: 1.78 MB / 0.8484 GB, free: 51.62 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001318/1.014, allocations: 179.4 kB / 0.8485 GB, free: 51.45 MB / 0.5606 GB Notification: Performance of SimCode: time 7.01e-07/1.014, allocations: 0 / 0.8485 GB, free: 51.45 MB / 0.5606 GB Notification: Performance of Templates: time 0.1092/1.123, allocations: 102.5 MB / 0.9486 GB, free: 12.9 MB / 0.6231 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses.sim & ./OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.IEEE9.IEEE_9_Buses.pipe 2>&1)