Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_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.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 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.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_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.005915/0.005916, allocations: 95.39 kB / 15.73 MB, free: 6.039 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.391/1.391, allocations: 222.9 MB / 239.4 MB, free: 4.555 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.001547/0.001547, allocations: 187.4 kB / 289.7 MB, free: 2.281 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5287/0.5287, allocations: 91.97 MB / 431.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002138/0.002138, allocations: 76.66 kB / 0.5723 GB, free: 33.61 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1432, allocations: 71.3 MB / 0.642 GB, free: 4.027 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII): time 0.007505/0.1508, allocations: 6.663 MB / 0.6485 GB, free: 13.33 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004291/0.1551, allocations: 1.99 MB / 0.6504 GB, free: 11.34 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005657/0.1557, allocations: 16 kB / 0.6504 GB, free: 11.32 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007264/0.1565, allocations: 237.9 kB / 0.6507 GB, free: 11.09 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001916/0.1584, allocations: 0.812 MB / 0.6515 GB, free: 10.28 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001312/0.1597, allocations: 0.6461 MB / 0.6521 GB, free: 9.637 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001729/0.1614, allocations: 1.643 MB / 0.6537 GB, free: 7.988 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004825/0.1619, allocations: 322.4 kB / 0.654 GB, free: 7.664 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007859/0.1627, allocations: 0.6769 MB / 0.6547 GB, free: 6.984 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009747/0.1637, allocations: 0.8596 MB / 0.6555 GB, free: 6.121 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001819/0.1639, allocations: 128 kB / 0.6556 GB, free: 5.996 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005247/0.1644, allocations: 263.9 kB / 0.6559 GB, free: 5.738 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003386/0.1648, allocations: 346.5 kB / 0.6562 GB, free: 5.398 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006366/0.1654, allocations: 0.6913 MB / 0.6569 GB, free: 4.703 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001921/0.1674, allocations: 1.712 MB / 0.6586 GB, free: 2.984 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.1674, allocations: 0 / 0.6586 GB, free: 2.984 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1674, allocations: 0 / 0.6586 GB, free: 2.984 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.311e-05/0.1674, allocations: 0 / 0.6586 GB, free: 2.984 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.009142/0.1766, allocations: 2.793 MB / 0.6613 GB, free: 124 kB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.433e-05/0.1766, allocations: 12.03 kB / 0.6613 GB, free: 112 kB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002064/0.1769, allocations: 130.8 kB / 0.6614 GB, free: 15.97 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004956/0.1818, allocations: 0.7795 MB / 0.6622 GB, free: 15.19 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001601/0.1834, allocations: 0.9188 MB / 0.6631 GB, free: 14.22 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00031/0.1838, allocations: 264.1 kB / 0.6633 GB, free: 13.93 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001673/0.1839, allocations: 91.95 kB / 0.6634 GB, free: 13.84 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002223/0.1862, allocations: 1.102 MB / 0.6645 GB, free: 12.72 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.934e-05/0.1862, allocations: 0 / 0.6645 GB, free: 12.72 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.525e-05/0.1863, allocations: 32 kB / 0.6645 GB, free: 12.69 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.893e-05/0.1863, allocations: 20 kB / 0.6645 GB, free: 12.67 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002127/0.1885, allocations: 0.9955 MB / 0.6655 GB, free: 11.67 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.006701/0.1952, allocations: 3.868 MB / 0.6693 GB, free: 7.621 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007601/0.2028, allocations: 2.383 MB / 0.6716 GB, free: 5.141 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001467/0.2043, allocations: 0.6879 MB / 0.6723 GB, free: 4.449 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001091/0.2044, allocations: 16.98 kB / 0.6723 GB, free: 4.434 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001716/0.2061, allocations: 0.8333 MB / 0.6731 GB, free: 3.582 MB / 478.1 MB Notification: Performance of pre-optimization done (n=97): time 2.865e-06/0.2061, allocations: 0 / 0.6731 GB, free: 3.582 MB / 478.1 MB Notification: Performance of matching and sorting (n=97): time 0.02998/0.2361, allocations: 7.222 MB / 0.6802 GB, free: 12.3 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.244e-05/0.2362, allocations: 115.8 kB / 0.6803 GB, free: 12.16 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002236/0.2385, allocations: 1.135 MB / 0.6814 GB, free: 11.01 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000206/0.2387, allocations: 41.7 kB / 0.6814 GB, free: 10.96 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005059/0.2392, allocations: 0.5015 MB / 0.6819 GB, free: 10.46 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005348/0.2398, allocations: 380.8 kB / 0.6823 GB, free: 10.08 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008089/0.2406, allocations: 287.5 kB / 0.6826 GB, free: 9.797 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.2407, allocations: 309.1 kB / 0.6828 GB, free: 9.492 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001874/0.2426, allocations: 0.7808 MB / 0.6836 GB, free: 8.711 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001996/0.2446, allocations: 0.9538 MB / 0.6845 GB, free: 7.719 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02593/0.2706, allocations: 5.794 MB / 0.6902 GB, free: 1.84 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.26e-05/0.2706, allocations: 0 / 0.6902 GB, free: 1.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.01555/0.2862, allocations: 4.462 MB / 0.6946 GB, free: 13.35 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.354e-05/0.2863, allocations: 59.41 kB / 0.6946 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.472e-05/0.2863, allocations: 0 / 0.6946 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006496/0.2928, allocations: 1.643 MB / 0.6962 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001611/0.2945, allocations: 283.6 kB / 0.6965 GB, free: 11.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02272/0.3172, allocations: 8.624 MB / 0.7049 GB, free: 2.574 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00213/0.3194, allocations: 207.2 kB / 0.7051 GB, free: 2.371 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003289/0.3197, allocations: 59.97 kB / 0.7052 GB, free: 2.312 MB / 0.4981 GB Warning: Assuming fixed start value for the following 5 variables: order5.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 order5.delta:VARIABLE(flow=false start = order5.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order5.e1q:VARIABLE(start = order5.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 (167): * Single equations (assignments): 164 * 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 {(20,14,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009696/0.3207, allocations: 312.3 kB / 0.7055 GB, free: 1.988 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004468/0.3212, allocations: 131.2 kB / 0.7056 GB, free: 1.859 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01381/0.335, allocations: 3.893 MB / 0.7094 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.06e-05/0.335, allocations: 12 kB / 0.7094 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.668e-05/0.3351, allocations: 4 kB / 0.7094 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.292e-05/0.3351, allocations: 7.984 kB / 0.7094 GB, free: 13.92 MB / 0.5137 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.01654/0.3517, allocations: 5.522 MB / 0.7148 GB, free: 8.281 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.164e-05/0.3517, allocations: 0 / 0.7148 GB, free: 8.281 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006934/0.3524, allocations: 107.8 kB / 0.7149 GB, free: 8.176 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005985/0.3584, allocations: 1.588 MB / 0.7165 GB, free: 6.582 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001723/0.3586, allocations: 16 kB / 0.7165 GB, free: 6.566 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02304/0.3817, allocations: 9.669 MB / 0.7259 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.3817, allocations: 0 / 0.7259 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01614/0.3979, allocations: 4.79 MB / 0.7306 GB, free: 7.789 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006007/0.3985, allocations: 236 kB / 0.7308 GB, free: 7.539 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004432/0.399, allocations: 19.94 kB / 0.7308 GB, free: 7.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001522/0.4005, allocations: 111.9 kB / 0.7309 GB, free: 7.41 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007828/0.4013, allocations: 192.7 kB / 0.7311 GB, free: 7.219 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001682/0.4015, allocations: 31.98 kB / 0.7312 GB, free: 7.188 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00155/0.4031, allocations: 0.7592 MB / 0.7319 GB, free: 6.422 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.51e-07/0.4031, allocations: 0 / 0.7319 GB, free: 6.422 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001992/0.4051, allocations: 483.7 kB / 0.7324 GB, free: 5.949 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order2.delta,order2.w,order5.delta,order5.w,order5.e1q,order5.e2q,order5.e2d,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 (65): * Single equations (assignments): 62 * 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 {(18,14,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01639/0.4215, allocations: 5.379 MB / 0.7376 GB, free: 0.5195 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007881/0.4295, allocations: 2.613 MB / 0.7402 GB, free: 13.86 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.4295, allocations: 0 / 0.7402 GB, free: 13.86 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004783/0.4343, allocations: 1.59 MB / 0.7417 GB, free: 12.23 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001562/0.4359, allocations: 121.1 kB / 0.7418 GB, free: 12.11 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04456/0.4805, allocations: 16.56 MB / 0.758 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00103/0.4815, allocations: 1.128 MB / 0.7591 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0006405/0.4822, allocations: 120.1 kB / 0.7592 GB, free: 10.06 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008757/0.4831, allocations: 475.3 kB / 0.7597 GB, free: 9.598 MB / 0.5606 GB Notification: Performance of SimCode: time 1.052e-06/0.4831, allocations: 0 / 0.7597 GB, free: 9.598 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3914/0.8745, allocations: 35.16 MB / 0.794 GB, free: 109.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.22/15.1, allocations: 5.203 kB / 0.794 GB, free: 109.6 MB / 0.5606 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_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_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe 2>&1)