Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_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: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 222.9 MB / 239.3 MB, free: 4.594 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.00163/0.00163, allocations: 192.5 kB / 289.6 MB, free: 2.309 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.5254/0.5254, allocations: 78.53 MB / 418.2 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001689/0.001689, allocations: 83.88 kB / 497.6 MB, free: 6.328 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.155, allocations: 68.18 MB / 0.5525 GB, free: 2.109 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.2772/0.4322, allocations: 6.501 MB / 0.5588 GB, free: 36.25 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.005524/0.4378, allocations: 1.953 MB / 0.5607 GB, free: 35.71 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009041/0.4388, allocations: 9.156 kB / 0.5607 GB, free: 35.71 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009465/0.4397, allocations: 245.9 kB / 0.561 GB, free: 35.7 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002231/0.442, allocations: 0.7859 MB / 0.5617 GB, free: 35.55 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001399/0.4434, allocations: 0.6311 MB / 0.5624 GB, free: 35.47 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001461/0.4449, allocations: 1.567 MB / 0.5639 GB, free: 35.26 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004694/0.4454, allocations: 328 kB / 0.5642 GB, free: 35.21 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007916/0.4462, allocations: 0.6494 MB / 0.5648 GB, free: 35.04 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007936/0.447, allocations: 0.8302 MB / 0.5656 GB, free: 34.82 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002057/0.4472, allocations: 123.1 kB / 0.5658 GB, free: 34.82 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005443/0.4478, allocations: 263.2 kB / 0.566 GB, free: 34.81 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002994/0.4481, allocations: 322.7 kB / 0.5663 GB, free: 34.73 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005331/0.4486, allocations: 0.6721 MB / 0.567 GB, free: 34.48 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001416/0.45, allocations: 1.639 MB / 0.5686 GB, free: 34.11 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.4501, allocations: 0.8125 kB / 0.5686 GB, free: 34.11 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.4501, allocations: 0 / 0.5686 GB, free: 34.11 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.702e-05/0.4501, allocations: 0.9375 kB / 0.5686 GB, free: 34.11 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: 189 * Number of variables: 189 Notification: Performance of Generate backend data structure: time 0.008125/0.4582, allocations: 2.687 MB / 0.5712 GB, free: 33.12 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.692e-05/0.4583, allocations: 14.06 kB / 0.5712 GB, free: 33.12 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001357/0.4584, allocations: 124 kB / 0.5713 GB, free: 33.09 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0047/0.4631, allocations: 0.7805 MB / 0.5721 GB, free: 32.99 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001309/0.4645, allocations: 0.8816 MB / 0.573 GB, free: 32.58 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002253/0.4647, allocations: 261.1 kB / 0.5732 GB, free: 32.39 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001434/0.4649, allocations: 84.98 kB / 0.5733 GB, free: 32.39 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001831/0.4667, allocations: 1.085 MB / 0.5743 GB, free: 32.3 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/0.4667, allocations: 3.125 kB / 0.5743 GB, free: 32.3 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.07e-05/0.4668, allocations: 35.06 kB / 0.5744 GB, free: 32.3 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.787e-05/0.4668, allocations: 19.34 kB / 0.5744 GB, free: 32.3 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001772/0.4686, allocations: 0.9893 MB / 0.5754 GB, free: 32.29 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.005659/0.4743, allocations: 3.81 MB / 0.5791 GB, free: 30.57 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006871/0.4812, allocations: 2.368 MB / 0.5814 GB, free: 29.75 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001452/0.4826, allocations: 0.673 MB / 0.5821 GB, free: 29.49 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.434e-05/0.4828, allocations: 22.53 kB / 0.5821 GB, free: 29.48 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001525/0.4843, allocations: 0.8118 MB / 0.5829 GB, free: 29.16 MB / 430.1 MB Notification: Performance of pre-optimization done (n=95): time 2.535e-06/0.4843, allocations: 0 / 0.5829 GB, free: 29.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=95): time 0.02946/0.5138, allocations: 7.188 MB / 0.5899 GB, free: 27.78 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.901e-05/0.5139, allocations: 122 kB / 0.59 GB, free: 27.64 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001845/0.5157, allocations: 1.093 MB / 0.5911 GB, free: 27.19 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002394/0.516, allocations: 46.02 kB / 0.5911 GB, free: 27.15 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003182/0.5163, allocations: 498.5 kB / 0.5916 GB, free: 26.76 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003467/0.5167, allocations: 351.4 kB / 0.5919 GB, free: 26.48 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005175/0.5172, allocations: 283.1 kB / 0.5922 GB, free: 26.36 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.91e-05/0.5172, allocations: 302.8 kB / 0.5925 GB, free: 26.06 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001595/0.5188, allocations: 0.7565 MB / 0.5932 GB, free: 25.78 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001656/0.5205, allocations: 0.928 MB / 0.5941 GB, free: 25.35 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02505/0.5456, allocations: 5.567 MB / 0.5996 GB, free: 23.61 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-05/0.5456, allocations: 2.188 kB / 0.5996 GB, free: 23.61 MB / 430.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01405/0.5597, allocations: 4.364 MB / 0.6038 GB, free: 22.42 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.668e-05/0.5598, allocations: 59.89 kB / 0.6039 GB, free: 22.36 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.863e-05/0.5598, allocations: 3.906 kB / 0.6039 GB, free: 22.36 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005795/0.5656, allocations: 1.59 MB / 0.6054 GB, free: 21.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001545/0.5672, allocations: 278.5 kB / 0.6057 GB, free: 21.64 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01891/0.5861, allocations: 8.511 MB / 0.614 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002141/0.5883, allocations: 202.7 kB / 0.6142 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001329/0.5885, allocations: 60.67 kB / 0.6143 GB, free: 15.36 MB / 430.1 MB Warning: Assuming fixed start value for the following 4 variables: order3.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.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 order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 (160): * Single equations (assignments): 157 * 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 {(19,14,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006255/0.5891, allocations: 300.9 kB / 0.6146 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002167/0.5893, allocations: 122.5 kB / 0.6147 GB, free: 14.93 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0116/0.6009, allocations: 3.873 MB / 0.6185 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.526e-05/0.601, allocations: 8 kB / 0.6185 GB, free: 11.02 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.198e-05/0.601, allocations: 8 kB / 0.6185 GB, free: 11.01 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.768e-05/0.601, allocations: 9.125 kB / 0.6185 GB, free: 11 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.01333/0.6144, allocations: 5.45 MB / 0.6238 GB, free: 5.441 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/0.6144, allocations: 5.25 kB / 0.6238 GB, free: 5.438 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005903/0.615, allocations: 96.72 kB / 0.6239 GB, free: 5.344 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005112/0.6201, allocations: 1.608 MB / 0.6255 GB, free: 3.73 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001519/0.6203, allocations: 24 kB / 0.6255 GB, free: 3.707 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01997/0.6403, allocations: 9.641 MB / 0.6349 GB, free: 9.77 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.6403, allocations: 0 / 0.6349 GB, free: 9.77 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01491/0.6553, allocations: 4.725 MB / 0.6395 GB, free: 5.008 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006228/0.6559, allocations: 221.1 kB / 0.6397 GB, free: 4.773 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002004/0.6561, allocations: 24.86 kB / 0.6398 GB, free: 4.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001174/0.6573, allocations: 111.9 kB / 0.6399 GB, free: 4.641 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006336/0.658, allocations: 196.7 kB / 0.6401 GB, free: 4.445 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.207e-05/0.658, allocations: 25.53 kB / 0.6401 GB, free: 4.422 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001136/0.6592, allocations: 0.7354 MB / 0.6408 GB, free: 3.68 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6592, allocations: 4 kB / 0.6408 GB, free: 3.676 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001529/0.6607, allocations: 471.5 kB / 0.6413 GB, free: 3.215 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (order2.delta,order2.w,order3.delta,order3.w,order3.e1q,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 (63): * Single equations (assignments): 60 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01519/0.6759, allocations: 5.308 MB / 0.6464 GB, free: 13.86 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007266/0.6832, allocations: 2.557 MB / 0.6489 GB, free: 11.27 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/0.6833, allocations: 0 / 0.6489 GB, free: 11.27 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004381/0.6877, allocations: 1.597 MB / 0.6505 GB, free: 9.637 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001401/0.6891, allocations: 117.9 kB / 0.6506 GB, free: 9.527 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04566/0.7348, allocations: 16.75 MB / 0.667 GB, free: 8.359 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001054/0.7359, allocations: 1.116 MB / 0.6681 GB, free: 7.215 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0007206/0.7367, allocations: 116.3 kB / 0.6682 GB, free: 7.102 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007915/0.7375, allocations: 483.9 kB / 0.6686 GB, free: 6.629 MB / 478.1 MB Notification: Performance of SimCode: time 1.092e-06/0.7375, allocations: 4 kB / 0.6686 GB, free: 6.625 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07367/0.8112, allocations: 33.86 MB / 0.7017 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.73/13.55, allocations: 8.266 kB / 0.7017 GB, free: 5.137 MB / 0.4981 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.008 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)