Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008753/0.0008754, allocations: 175.3 kB / 16.07 MB, free: 5.73 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 222.9 MB / 239.7 MB, free: 10.21 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008329/0.0008329, allocations: 99.11 kB / 290.5 MB, free: 11.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.43/0.43, allocations: 78.42 MB / 419.6 MB, free: 9.742 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003534/0.0003534, allocations: 12 kB / 499.1 MB, free: 10.67 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2573/0.2577, allocations: 68.76 MB / 0.5545 GB, free: 20.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.0049/0.2626, allocations: 6.845 MB / 0.5612 GB, free: 13.35 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002581/0.2652, allocations: 2.009 MB / 0.5632 GB, free: 11.34 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003618/0.2656, allocations: 12 kB / 0.5632 GB, free: 11.32 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004938/0.2661, allocations: 190.8 kB / 0.5634 GB, free: 11.14 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001266/0.2674, allocations: 0.7122 MB / 0.564 GB, free: 10.43 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.0008871/0.2683, allocations: 0.592 MB / 0.5646 GB, free: 9.84 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008233/0.2691, allocations: 1.491 MB / 0.5661 GB, free: 8.34 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000292/0.2694, allocations: 293.2 kB / 0.5664 GB, free: 8.043 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004353/0.2699, allocations: 0.5675 MB / 0.5669 GB, free: 7.473 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005121/0.2704, allocations: 0.7465 MB / 0.5676 GB, free: 6.723 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001131/0.2705, allocations: 63.94 kB / 0.5677 GB, free: 6.66 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003128/0.2708, allocations: 187.9 kB / 0.5679 GB, free: 6.477 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001581/0.271, allocations: 254.7 kB / 0.5681 GB, free: 6.227 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003184/0.2713, allocations: 0.5976 MB / 0.5687 GB, free: 5.625 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000676/0.272, allocations: 1.233 MB / 0.5699 GB, free: 4.391 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.035e-06/0.272, allocations: 4 kB / 0.5699 GB, free: 4.387 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.272, allocations: 0 / 0.5699 GB, free: 4.387 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.2721, allocations: 0 / 0.5699 GB, free: 4.387 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.006654/0.2787, allocations: 2.423 MB / 0.5723 GB, free: 1.898 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.2788, allocations: 8.031 kB / 0.5723 GB, free: 1.891 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004555/0.2833, allocations: 0.7671 MB / 0.573 GB, free: 1.121 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001087/0.2844, allocations: 0.8902 MB / 0.5739 GB, free: 180 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002347/0.2847, allocations: 264.1 kB / 0.5742 GB, free: 15.88 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001544/0.2848, allocations: 87.91 kB / 0.5742 GB, free: 15.79 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001911/0.2867, allocations: 1.086 MB / 0.5753 GB, free: 14.7 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.2868, allocations: 3.984 kB / 0.5753 GB, free: 14.69 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.731e-05/0.2869, allocations: 32 kB / 0.5753 GB, free: 14.66 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.522e-05/0.2869, allocations: 16 kB / 0.5754 GB, free: 14.64 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001872/0.2888, allocations: 0.9916 MB / 0.5763 GB, free: 13.65 MB / 394.7 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.005937/0.2947, allocations: 3.824 MB / 0.5801 GB, free: 9.652 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006996/0.3017, allocations: 2.371 MB / 0.5824 GB, free: 7.188 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001274/0.303, allocations: 0.678 MB / 0.583 GB, free: 6.504 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000105/0.3031, allocations: 16.98 kB / 0.5831 GB, free: 6.488 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001426/0.3046, allocations: 0.8177 MB / 0.5839 GB, free: 5.652 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 3.927e-06/0.3046, allocations: 0 / 0.5839 GB, free: 5.652 MB / 394.7 MB Notification: Performance of matching and sorting (n=96): time 0.02616/0.3307, allocations: 7.089 MB / 0.5908 GB, free: 14.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.371e-05/0.3308, allocations: 119.8 kB / 0.5909 GB, free: 14.36 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001517/0.3324, allocations: 1.079 MB / 0.5919 GB, free: 13.26 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001376/0.3325, allocations: 45.7 kB / 0.592 GB, free: 13.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003456/0.3329, allocations: 496.8 kB / 0.5925 GB, free: 12.72 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003232/0.3332, allocations: 359 kB / 0.5928 GB, free: 12.36 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000187/0.3334, allocations: 145.7 kB / 0.5929 GB, free: 12.21 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.166e-05/0.3335, allocations: 305.1 kB / 0.5932 GB, free: 11.91 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001493/0.335, allocations: 0.7652 MB / 0.594 GB, free: 11.15 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001589/0.3366, allocations: 0.9343 MB / 0.5949 GB, free: 10.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02125/0.3578, allocations: 5.582 MB / 0.6003 GB, free: 4.508 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.3579, allocations: 0 / 0.6003 GB, free: 4.508 MB / 410.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01209/0.37, allocations: 4.336 MB / 0.6046 GB, free: 148 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.812e-05/0.37, allocations: 59.41 kB / 0.6046 GB, free: 76 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.3701, allocations: 4 kB / 0.6046 GB, free: 72 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005046/0.3751, allocations: 1.504 MB / 0.6061 GB, free: 14.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/0.3764, allocations: 303.5 kB / 0.6064 GB, free: 14.27 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01647/0.3929, allocations: 7.621 MB / 0.6138 GB, free: 6.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001631/0.3946, allocations: 202.8 kB / 0.614 GB, free: 6.301 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001128/0.3947, allocations: 55.98 kB / 0.6141 GB, free: 6.246 MB / 426.7 MB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.e1q:VARIABLE(start = order4.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: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 2 * 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 {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005295/0.3952, allocations: 304.3 kB / 0.6144 GB, free: 5.934 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001874/0.3954, allocations: 122.4 kB / 0.6145 GB, free: 5.812 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01268/0.4081, allocations: 3.869 MB / 0.6183 GB, free: 1.91 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.852e-05/0.4082, allocations: 12 kB / 0.6183 GB, free: 1.898 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.771e-05/0.4082, allocations: 19.86 kB / 0.6183 GB, free: 1.879 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.123e-05/0.4083, allocations: 7.969 kB / 0.6183 GB, free: 1.871 MB / 426.7 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 postOpt removeSimpleEquations (simulation): time 0.01421/0.4225, allocations: 5.454 MB / 0.6236 GB, free: 12.31 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.052e-06/0.4225, allocations: 0 / 0.6236 GB, free: 12.31 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005246/0.423, allocations: 103.8 kB / 0.6237 GB, free: 12.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005278/0.4283, allocations: 1.614 MB / 0.6253 GB, free: 10.59 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.966e-05/0.4284, allocations: 19.98 kB / 0.6253 GB, free: 10.57 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01772/0.4462, allocations: 8.75 MB / 0.6339 GB, free: 1.531 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.4462, allocations: 4 kB / 0.6339 GB, free: 1.527 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01405/0.4603, allocations: 4.733 MB / 0.6385 GB, free: 12.76 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004213/0.4608, allocations: 223.3 kB / 0.6387 GB, free: 12.52 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001729/0.4609, allocations: 27.92 kB / 0.6387 GB, free: 12.49 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001067/0.462, allocations: 107.9 kB / 0.6388 GB, free: 12.39 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005686/0.4626, allocations: 196.6 kB / 0.639 GB, free: 12.19 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.133e-05/0.4627, allocations: 23.98 kB / 0.6391 GB, free: 12.17 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001022/0.4637, allocations: 0.7274 MB / 0.6398 GB, free: 11.43 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4637, allocations: 4 kB / 0.6398 GB, free: 11.43 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001261/0.465, allocations: 471.5 kB / 0.6402 GB, free: 10.97 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002561/0.4652, allocations: 133.6 kB / 0.6403 GB, free: 10.83 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005797/0.471, allocations: 2.509 MB / 0.6428 GB, free: 8.285 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.347e-06/0.4711, allocations: 0 / 0.6428 GB, free: 8.285 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004111/0.4752, allocations: 1.605 MB / 0.6444 GB, free: 6.648 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.4762, allocations: 122.3 kB / 0.6445 GB, free: 6.531 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003923/0.4802, allocations: 2.73 MB / 0.6471 GB, free: 3.766 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006481/0.4808, allocations: 1.12 MB / 0.6482 GB, free: 2.617 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003348/0.4812, allocations: 83.41 kB / 0.6483 GB, free: 2.535 MB / 458.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4812, allocations: 0 / 0.6483 GB, free: 2.535 MB / 458.7 MB Notification: Performance of Templates: time 0.02742/0.5086, allocations: 23.29 MB / 0.6711 GB, free: 11.23 MB / 490.7 MB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)