Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009828/0.0009828, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.206/1.206, allocations: 222.9 MB / 238.9 MB, free: 4.723 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.001141/0.001141, allocations: 196.5 kB / 289.1 MB, free: 2.457 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4059/0.4059, allocations: 78.53 MB / 417.8 MB, free: 3.352 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 71.89 kB / 496.8 MB, free: 6.859 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1236/0.1249, allocations: 68.17 MB / 0.5517 GB, free: 2.652 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.226/0.3509, allocations: 6.867 MB / 0.5584 GB, free: 35.9 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003579/0.3545, allocations: 2 MB / 0.5603 GB, free: 35.35 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000536/0.3551, allocations: 11.62 kB / 0.5604 GB, free: 35.35 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006712/0.3558, allocations: 189 kB / 0.5605 GB, free: 35.34 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001484/0.3573, allocations: 0.7052 MB / 0.5612 GB, free: 35.19 MB / 430.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.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001016/0.3583, allocations: 0.5925 MB / 0.5618 GB, free: 35.11 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001011/0.3593, allocations: 1.493 MB / 0.5633 GB, free: 35.04 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000335/0.3597, allocations: 291.2 kB / 0.5635 GB, free: 34.99 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004929/0.3602, allocations: 0.5934 MB / 0.5641 GB, free: 34.85 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005753/0.3608, allocations: 0.7797 MB / 0.5649 GB, free: 34.65 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001271/0.3609, allocations: 71.38 kB / 0.5649 GB, free: 34.65 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003784/0.3613, allocations: 206.6 kB / 0.5651 GB, free: 34.64 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001991/0.3615, allocations: 283.5 kB / 0.5654 GB, free: 34.57 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004231/0.3619, allocations: 0.6207 MB / 0.566 GB, free: 34.32 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009725/0.3629, allocations: 1.591 MB / 0.5676 GB, free: 33.94 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3629, allocations: 2.969 kB / 0.5676 GB, free: 33.94 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3629, allocations: 0 / 0.5676 GB, free: 33.94 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.363, allocations: 3.938 kB / 0.5676 GB, free: 33.94 MB / 430.1 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.007572/0.3705, allocations: 2.689 MB / 0.5702 GB, free: 32.96 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.092e-05/0.3706, allocations: 9.969 kB / 0.5702 GB, free: 32.96 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004603/0.3752, allocations: 0.7758 MB / 0.571 GB, free: 32.87 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001215/0.3764, allocations: 0.8824 MB / 0.5718 GB, free: 32.46 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002068/0.3767, allocations: 260 kB / 0.5721 GB, free: 32.26 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001408/0.3768, allocations: 86.2 kB / 0.5722 GB, free: 32.26 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001824/0.3786, allocations: 1.089 MB / 0.5732 GB, free: 32.18 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.3787, allocations: 0.6562 kB / 0.5732 GB, free: 32.18 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.838e-05/0.3788, allocations: 32.19 kB / 0.5733 GB, free: 32.18 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.656e-05/0.3788, allocations: 16.97 kB / 0.5733 GB, free: 32.18 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001748/0.3805, allocations: 0.994 MB / 0.5742 GB, free: 32.16 MB / 430.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.005306/0.3859, allocations: 3.823 MB / 0.578 GB, free: 30.79 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006364/0.3922, allocations: 2.369 MB / 0.5803 GB, free: 29.97 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001217/0.3935, allocations: 0.6764 MB / 0.581 GB, free: 29.7 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001002/0.3936, allocations: 18.95 kB / 0.581 GB, free: 29.69 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001445/0.395, allocations: 0.8248 MB / 0.5818 GB, free: 29.37 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.785e-06/0.395, allocations: 0 / 0.5818 GB, free: 29.37 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02699/0.422, allocations: 7.077 MB / 0.5887 GB, free: 27.99 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.524e-05/0.4221, allocations: 117.5 kB / 0.5888 GB, free: 27.86 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001788/0.4239, allocations: 1.083 MB / 0.5899 GB, free: 27.41 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002253/0.4242, allocations: 45.98 kB / 0.5899 GB, free: 27.37 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003012/0.4245, allocations: 496.6 kB / 0.5904 GB, free: 26.98 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003489/0.4248, allocations: 364.4 kB / 0.5907 GB, free: 26.7 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005158/0.4254, allocations: 285.8 kB / 0.591 GB, free: 26.57 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.834e-05/0.4254, allocations: 302.7 kB / 0.5913 GB, free: 26.27 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001536/0.427, allocations: 0.7647 MB / 0.592 GB, free: 25.98 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001622/0.4286, allocations: 0.9379 MB / 0.593 GB, free: 25.55 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02281/0.4514, allocations: 5.578 MB / 0.5984 GB, free: 23.81 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/0.4515, allocations: 0 / 0.5984 GB, free: 23.81 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01296/0.4644, allocations: 4.337 MB / 0.6026 GB, free: 22.63 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.105e-05/0.4645, allocations: 63.41 kB / 0.6027 GB, free: 22.57 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.717e-05/0.4646, allocations: 3.25 kB / 0.6027 GB, free: 22.57 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005272/0.4698, allocations: 1.505 MB / 0.6042 GB, free: 22.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001521/0.4714, allocations: 296.8 kB / 0.6044 GB, free: 22.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01583/0.4872, allocations: 7.623 MB / 0.6119 GB, free: 17.53 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001799/0.4891, allocations: 204.8 kB / 0.6121 GB, free: 17.33 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001089/0.4892, allocations: 55.98 kB / 0.6121 GB, free: 17.28 MB / 430.1 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.0005408/0.4897, allocations: 304.4 kB / 0.6124 GB, free: 16.97 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001797/0.4899, allocations: 128.8 kB / 0.6126 GB, free: 16.84 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01086/0.5008, allocations: 3.869 MB / 0.6163 GB, free: 12.95 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.938e-05/0.5009, allocations: 12.56 kB / 0.6163 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-05/0.5009, allocations: 11.94 kB / 0.6164 GB, free: 12.92 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.829e-05/0.5009, allocations: 7.969 kB / 0.6164 GB, free: 12.91 MB / 430.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 postOpt removeSimpleEquations (simulation): time 0.01232/0.5132, allocations: 5.453 MB / 0.6217 GB, free: 7.352 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.287e-05/0.5133, allocations: 0.5 kB / 0.6217 GB, free: 7.352 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006221/0.5139, allocations: 107.9 kB / 0.6218 GB, free: 7.246 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004797/0.5187, allocations: 1.612 MB / 0.6234 GB, free: 5.629 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000156/0.5189, allocations: 21.11 kB / 0.6234 GB, free: 5.609 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01643/0.5353, allocations: 8.753 MB / 0.6319 GB, free: 12.58 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/0.5354, allocations: 0.7031 kB / 0.6319 GB, free: 12.58 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01335/0.5487, allocations: 4.73 MB / 0.6366 GB, free: 7.812 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004453/0.5492, allocations: 224.2 kB / 0.6368 GB, free: 7.574 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001757/0.5494, allocations: 23.98 kB / 0.6368 GB, free: 7.551 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001097/0.5505, allocations: 111.9 kB / 0.6369 GB, free: 7.441 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005775/0.5511, allocations: 188.7 kB / 0.6371 GB, free: 7.254 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.022e-05/0.5512, allocations: 28 kB / 0.6371 GB, free: 7.227 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001167/0.5524, allocations: 0.7313 MB / 0.6378 GB, free: 6.488 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5524, allocations: 0 / 0.6378 GB, free: 6.488 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001378/0.5538, allocations: 479.4 kB / 0.6383 GB, free: 6.02 MB / 446.1 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.0002578/0.554, allocations: 131.5 kB / 0.6384 GB, free: 5.883 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005685/0.5597, allocations: 2.507 MB / 0.6409 GB, free: 3.34 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.5597, allocations: 2.156 kB / 0.6409 GB, free: 3.34 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003983/0.5637, allocations: 1.608 MB / 0.6424 GB, free: 1.699 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000833/0.5646, allocations: 113.6 kB / 0.6425 GB, free: 1.59 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003594/0.5682, allocations: 2.687 MB / 0.6452 GB, free: 14.91 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005266/0.5687, allocations: 1.124 MB / 0.6463 GB, free: 13.75 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004008/0.5691, allocations: 126.1 kB / 0.6464 GB, free: 13.63 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002404/0.5694, allocations: 71.42 kB / 0.6464 GB, free: 13.56 MB / 462.1 MB Notification: Performance of SimCode: time 4.01e-07/0.5694, allocations: 1.875 kB / 0.6464 GB, free: 13.56 MB / 462.1 MB Notification: Performance of Templates: time 0.02761/0.597, allocations: 21.42 MB / 0.6674 GB, free: 8.348 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)