Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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.PSATSystems.ThreeArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007441/0.007441, allocations: 102.3 kB / 15.73 MB, free: 6.008 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.451/1.451, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.001675/0.001675, allocations: 188.5 kB / 289.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4922/0.4922, allocations: 78.53 MB / 418.4 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001629/0.001629, allocations: 83.88 kB / 0.5537 GB, free: 0.9531 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3617/0.3633, allocations: 68.17 MB / 0.6203 GB, free: 9.699 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.0112/0.3746, allocations: 13.67 MB / 0.6336 GB, free: 12.52 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.009307/0.384, allocations: 3.468 MB / 0.637 GB, free: 9.039 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003824/0.3878, allocations: 28 kB / 0.637 GB, free: 9.012 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00238/0.3902, allocations: 0.5654 MB / 0.6376 GB, free: 8.438 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006526/0.3968, allocations: 1.578 MB / 0.6391 GB, free: 6.859 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4_1.xq <> order4_1.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.004217/0.4011, allocations: 1.5 MB / 0.6406 GB, free: 5.379 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.006622/0.4077, allocations: 3.733 MB / 0.6442 GB, free: 1.629 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001531/0.4093, allocations: 0.8973 MB / 0.6451 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002743/0.412, allocations: 1.529 MB / 0.6466 GB, free: 15.14 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003227/0.4153, allocations: 1.956 MB / 0.6485 GB, free: 13.18 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000893/0.4162, allocations: 288 kB / 0.6488 GB, free: 12.9 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001361/0.4176, allocations: 427.9 kB / 0.6492 GB, free: 12.48 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007047/0.4183, allocations: 0.7623 MB / 0.6499 GB, free: 11.71 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001927/0.4202, allocations: 1.631 MB / 0.6515 GB, free: 10.07 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005332/0.4256, allocations: 3.975 MB / 0.6554 GB, free: 6.09 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.4256, allocations: 4 kB / 0.6554 GB, free: 6.086 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4256, allocations: 0 / 0.6554 GB, free: 6.086 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0001402/0.4258, allocations: 0 / 0.6554 GB, free: 6.086 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 523 * Number of variables: 523 Notification: Performance of Generate backend data structure: time 0.02737/0.4531, allocations: 6.575 MB / 0.6618 GB, free: 15.41 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.434e-05/0.4532, allocations: 8.031 kB / 0.6618 GB, free: 15.4 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01616/0.4694, allocations: 2.278 MB / 0.6641 GB, free: 13.12 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005444/0.4749, allocations: 1.871 MB / 0.6659 GB, free: 11.18 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000941/0.4759, allocations: 0.7328 MB / 0.6666 GB, free: 10.34 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001115/0.477, allocations: 216 kB / 0.6668 GB, free: 10.12 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009409/0.4864, allocations: 3.032 MB / 0.6698 GB, free: 7.016 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.677e-05/0.4866, allocations: 0 / 0.6698 GB, free: 7.016 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006676/0.4872, allocations: 87.94 kB / 0.6698 GB, free: 6.93 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.106e-05/0.4873, allocations: 48 kB / 0.6699 GB, free: 6.883 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007592/0.4949, allocations: 2.788 MB / 0.6726 GB, free: 4.078 MB / 478.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.02442/0.5194, allocations: 9.809 MB / 0.6822 GB, free: 9.844 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0121/0.5315, allocations: 4.192 MB / 0.6863 GB, free: 5.523 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004887/0.5365, allocations: 1.964 MB / 0.6882 GB, free: 3.555 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004867/0.537, allocations: 41.95 kB / 0.6882 GB, free: 3.512 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006118/0.5431, allocations: 2.228 MB / 0.6904 GB, free: 1.262 MB / 494.1 MB Notification: Performance of pre-optimization done (n=248): time 8.856e-06/0.5432, allocations: 0 / 0.6904 GB, free: 1.262 MB / 494.1 MB Notification: Performance of matching and sorting (n=248): time 0.1237/0.6668, allocations: 27.3 MB / 0.7171 GB, free: 5.832 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001219/0.667, allocations: 180.2 kB / 0.7173 GB, free: 5.621 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005045/0.6721, allocations: 2.273 MB / 0.7195 GB, free: 3.328 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0009167/0.673, allocations: 73.7 kB / 0.7195 GB, free: 3.25 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001275/0.6743, allocations: 1.164 MB / 0.7207 GB, free: 2.074 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001767/0.6761, allocations: 0.8665 MB / 0.7215 GB, free: 1.195 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002983/0.6791, allocations: 0.5695 MB / 0.7221 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000126/0.6792, allocations: 305.1 kB / 0.7224 GB, free: 324 kB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005445/0.6847, allocations: 1.955 MB / 0.7243 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005767/0.6905, allocations: 2.314 MB / 0.7265 GB, free: 11.95 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05951/0.75, allocations: 14.03 MB / 0.7402 GB, free: 13.69 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.351e-05/0.7501, allocations: 4 kB / 0.7403 GB, free: 13.69 MB / 0.545 GB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04735/0.7974, allocations: 12.5 MB / 0.7525 GB, free: 1.113 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.7976, allocations: 121.4 kB / 0.7526 GB, free: 0.9727 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.414e-05/0.7976, allocations: 7.984 kB / 0.7526 GB, free: 0.9648 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01991/0.8175, allocations: 5.292 MB / 0.7578 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003334/0.8209, allocations: 0.5656 MB / 0.7583 GB, free: 11.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4004/1.221, allocations: 23.17 MB / 0.7809 GB, free: 121 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004598/1.226, allocations: 491.1 kB / 0.7814 GB, free: 121 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004544/1.227, allocations: 120.2 kB / 0.7815 GB, free: 121 MB / 0.5606 GB Warning: Assuming fixed start value for the following 7 variables: order3_2.delta:VARIABLE(flow=false start = order3_2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3_2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3_2.e1q:VARIABLE(start = order3_2.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order4_1.delta:VARIABLE(flow=false start = order4_1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (330): * Single equations (assignments): 325 * Array equations: 0 * Algorithm blocks: 4 * 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): 1 system {(63,25,8.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001265/1.228, allocations: 0.5321 MB / 0.782 GB, free: 120.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006261/1.228, allocations: 298.5 kB / 0.7823 GB, free: 120.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03849/1.267, allocations: 11.9 MB / 0.7939 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-05/1.267, allocations: 27.53 kB / 0.794 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.02e-05/1.267, allocations: 19.66 kB / 0.794 GB, free: 118.2 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.046e-05/1.267, allocations: 15.41 kB / 0.794 GB, free: 118.2 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.043/1.31, allocations: 15.5 MB / 0.8091 GB, free: 109.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.371e-05/1.31, allocations: 4 kB / 0.8091 GB, free: 109.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001603/1.312, allocations: 239.7 kB / 0.8094 GB, free: 109.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01688/1.329, allocations: 5.25 MB / 0.8145 GB, free: 104.2 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006428/1.329, allocations: 51.98 kB / 0.8145 GB, free: 104.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05669/1.386, allocations: 24.94 MB / 0.8389 GB, free: 78.79 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/1.386, allocations: 0 / 0.8389 GB, free: 78.79 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04548/1.432, allocations: 14.27 MB / 0.8528 GB, free: 64.41 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00129/1.433, allocations: 400 kB / 0.8532 GB, free: 64.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001528/1.435, allocations: 48 kB / 0.8533 GB, free: 63.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004874/1.439, allocations: 303.6 kB / 0.8536 GB, free: 63.66 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003609/1.443, allocations: 0.5802 MB / 0.8541 GB, free: 63.08 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008139/1.444, allocations: 67.98 kB / 0.8542 GB, free: 63.02 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003296/1.447, allocations: 1.503 MB / 0.8556 GB, free: 61.51 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8.11e-07/1.447, allocations: 0 / 0.8556 GB, free: 61.51 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006263/1.454, allocations: 1.173 MB / 0.8568 GB, free: 60.34 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 17 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order4_1.delta,order4_1.w,order4_1.e1q,order4_1.e1d,Exc1.ExcitationSystem.x_scaled[1],Exc1.derivativeBlock.x,Exc1.firstOrder2.y,Exc1.simpleLagLim.state,Exc2.ExcitationSystem.x_scaled[1],Exc2.derivativeBlock.x,Exc2.firstOrder2.y,Exc2.simpleLagLim.state) * Number of discrete variables: 4 ($whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (157): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(65,23,7.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001225/1.455, allocations: 178.7 kB / 0.857 GB, free: 60.16 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01918/1.474, allocations: 6.617 MB / 0.8634 GB, free: 53.47 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/1.474, allocations: 0 / 0.8634 GB, free: 53.47 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01395/1.488, allocations: 4.404 MB / 0.8677 GB, free: 49 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003658/1.492, allocations: 268.2 kB / 0.868 GB, free: 48.74 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01234/1.504, allocations: 5.334 MB / 0.8732 GB, free: 43.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001776/1.506, allocations: 1.806 MB / 0.875 GB, free: 41.56 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001483/1.507, allocations: 258.5 kB / 0.8752 GB, free: 41.31 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007571/1.508, allocations: 175.4 kB / 0.8754 GB, free: 41.14 MB / 0.5606 GB Notification: Performance of SimCode: time 7.21e-07/1.508, allocations: 0 / 0.8754 GB, free: 41.14 MB / 0.5606 GB Notification: Performance of Templates: time 0.09616/1.604, allocations: 63.63 MB / 0.9375 GB, free: 9.547 MB / 0.5919 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)