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: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FourthOrder_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.009024/0.009024, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.469/1.469, allocations: 222.9 MB / 239.4 MB, free: 4.531 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.001812/0.001812, allocations: 180.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.5361/0.5361, allocations: 78.53 MB / 418.4 MB, free: 3.164 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002301/0.002301, allocations: 87.84 kB / 0.5532 GB, free: 1.387 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3907/0.393, allocations: 68.16 MB / 0.6198 GB, free: 9.422 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII): time 0.0111/0.4042, allocations: 13.68 MB / 0.6331 GB, free: 12.39 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.008787/0.413, allocations: 3.464 MB / 0.6365 GB, free: 8.922 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003154/0.4162, allocations: 28 kB / 0.6365 GB, free: 8.895 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002384/0.4186, allocations: 0.5576 MB / 0.6371 GB, free: 8.328 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005949/0.4246, allocations: 1.432 MB / 0.6385 GB, free: 6.898 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.004433/0.4291, allocations: 1.504 MB / 0.64 GB, free: 5.414 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.006971/0.4361, allocations: 3.725 MB / 0.6436 GB, free: 1.672 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001721/0.4378, allocations: 0.9084 MB / 0.6445 GB, free: 0.7148 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002853/0.4407, allocations: 1.525 MB / 0.646 GB, free: 15.18 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003363/0.4441, allocations: 1.952 MB / 0.6479 GB, free: 13.22 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001132/0.4453, allocations: 284 kB / 0.6481 GB, free: 12.95 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001388/0.4467, allocations: 435.8 kB / 0.6486 GB, free: 12.52 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007683/0.4474, allocations: 0.7623 MB / 0.6493 GB, free: 11.75 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001991/0.4494, allocations: 1.627 MB / 0.6509 GB, free: 10.12 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00558/0.455, allocations: 3.996 MB / 0.6548 GB, free: 6.105 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.284e-06/0.4551, allocations: 0 / 0.6548 GB, free: 6.105 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4551, allocations: 0 / 0.6548 GB, free: 6.105 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0001348/0.4552, allocations: 0 / 0.6548 GB, free: 6.105 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.02462/0.4799, allocations: 6.685 MB / 0.6613 GB, free: 15.32 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.494e-05/0.4799, allocations: 8.031 kB / 0.6613 GB, free: 15.31 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004656/0.4804, allocations: 303.3 kB / 0.6616 GB, free: 15 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01504/0.4955, allocations: 2.292 MB / 0.6639 GB, free: 12.71 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004809/0.5003, allocations: 1.888 MB / 0.6657 GB, free: 10.75 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008973/0.5013, allocations: 0.7406 MB / 0.6664 GB, free: 9.898 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009034/0.5022, allocations: 212 kB / 0.6666 GB, free: 9.691 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007297/0.5095, allocations: 3.035 MB / 0.6696 GB, free: 6.578 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.068e-05/0.5096, allocations: 0 / 0.6696 GB, free: 6.578 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002638/0.5098, allocations: 87.94 kB / 0.6697 GB, free: 6.492 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.412e-05/0.5099, allocations: 52 kB / 0.6697 GB, free: 6.441 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00667/0.5166, allocations: 2.788 MB / 0.6725 GB, free: 3.637 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.02317/0.5398, allocations: 9.823 MB / 0.682 GB, free: 9.391 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01239/0.5522, allocations: 4.184 MB / 0.6861 GB, free: 5.078 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00512/0.5574, allocations: 1.969 MB / 0.6881 GB, free: 3.105 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005138/0.5579, allocations: 45.95 kB / 0.6881 GB, free: 3.059 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006066/0.564, allocations: 2.23 MB / 0.6903 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of pre-optimization done (n=248): time 1.047e-05/0.5641, allocations: 0 / 0.6903 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of matching and sorting (n=248): time 0.1242/0.6883, allocations: 27.32 MB / 0.717 GB, free: 5.367 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001671/0.6885, allocations: 184.2 kB / 0.7171 GB, free: 5.152 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005146/0.6936, allocations: 2.277 MB / 0.7194 GB, free: 2.855 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0008865/0.6946, allocations: 69.7 kB / 0.7194 GB, free: 2.781 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001277/0.6959, allocations: 1.185 MB / 0.7206 GB, free: 1.586 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001717/0.6976, allocations: 0.914 MB / 0.7215 GB, free: 0.6641 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002578/0.7002, allocations: 0.562 MB / 0.722 GB, free: 96 kB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001564/0.7004, allocations: 305.1 kB / 0.7223 GB, free: 15.79 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005356/0.7057, allocations: 1.951 MB / 0.7242 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005862/0.7116, allocations: 2.322 MB / 0.7265 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05964/0.7713, allocations: 14.03 MB / 0.7402 GB, free: 13.17 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.03e-05/0.7714, allocations: 3.938 kB / 0.7402 GB, free: 13.16 MB / 0.545 GB Notification: Performance of matching and sorting (n=417) (initialization): time 0.04713/0.8185, allocations: 12.52 MB / 0.7524 GB, free: 0.5742 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001379/0.8187, allocations: 114.8 kB / 0.7525 GB, free: 448 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.888e-05/0.8188, allocations: 8 kB / 0.7525 GB, free: 440 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01975/0.8385, allocations: 5.292 MB / 0.7577 GB, free: 11.13 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00316/0.8417, allocations: 0.5734 MB / 0.7583 GB, free: 10.56 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4341/1.276, allocations: 23.19 MB / 0.7809 GB, free: 121 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004642/1.281, allocations: 497.3 kB / 0.7814 GB, free: 121 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006394/1.281, allocations: 113 kB / 0.7815 GB, free: 120.9 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.001417/1.283, allocations: 0.534 MB / 0.782 GB, free: 120.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007663/1.283, allocations: 310.8 kB / 0.7823 GB, free: 120.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03865/1.322, allocations: 11.91 MB / 0.7939 GB, free: 118.1 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.228e-05/1.322, allocations: 27.62 kB / 0.794 GB, free: 118.1 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.094e-05/1.322, allocations: 19.55 kB / 0.794 GB, free: 118.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.075e-05/1.322, allocations: 15.59 kB / 0.794 GB, free: 118.1 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.04297/1.365, allocations: 15.49 MB / 0.8091 GB, free: 109 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.161e-05/1.365, allocations: 2.078 kB / 0.8091 GB, free: 109 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001517/1.367, allocations: 247.6 kB / 0.8094 GB, free: 108.8 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01688/1.384, allocations: 5.248 MB / 0.8145 GB, free: 103.5 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000732/1.385, allocations: 55.98 kB / 0.8145 GB, free: 103.5 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05452/1.439, allocations: 24.96 MB / 0.8389 GB, free: 78.09 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/1.439, allocations: 4 kB / 0.8389 GB, free: 78.09 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04279/1.482, allocations: 14.29 MB / 0.8529 GB, free: 63.7 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001169/1.483, allocations: 425.7 kB / 0.8533 GB, free: 63.29 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001353/1.485, allocations: 51.98 kB / 0.8533 GB, free: 63.24 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003939/1.489, allocations: 295.6 kB / 0.8536 GB, free: 62.95 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002475/1.491, allocations: 0.588 MB / 0.8542 GB, free: 62.36 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002797/1.491, allocations: 63.98 kB / 0.8542 GB, free: 62.3 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002217/1.494, allocations: 1.499 MB / 0.8557 GB, free: 60.8 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.91e-07/1.494, allocations: 4 kB / 0.8557 GB, free: 60.79 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003904/1.498, allocations: 1.175 MB / 0.8569 GB, free: 59.65 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.04216/1.54, allocations: 14.93 MB / 0.8714 GB, free: 44.6 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01847/1.558, allocations: 6.641 MB / 0.8779 GB, free: 37.88 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.768e-06/1.558, allocations: 4.062 kB / 0.8779 GB, free: 37.88 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01389/1.572, allocations: 4.402 MB / 0.8822 GB, free: 33.41 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003972/1.576, allocations: 270.4 kB / 0.8825 GB, free: 33.14 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1227/1.699, allocations: 41.89 MB / 0.9234 GB, free: 6.852 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002469/1.701, allocations: 1.81 MB / 0.9252 GB, free: 5.012 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001409/1.703, allocations: 266.5 kB / 0.9254 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001982/1.705, allocations: 1.23 MB / 0.9266 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of SimCode: time 1.072e-06/1.705, allocations: 0 / 0.9266 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1759/1.881, allocations: 87.75 MB / 1.012 GB, free: 11.95 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.37/22.25, allocations: 11.08 kB / 1.012 GB, free: 11.94 MB / 0.67 GB (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 & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_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_ThreeArea_FourthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FourthOrder_AVRII.pipe 2>&1)