Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_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.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.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_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.001643/0.001643, allocations: 108 kB / 15.6 MB, free: 132 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.445/1.445, allocations: 222.9 MB / 239.3 MB, free: 4.598 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.001532/0.001533, allocations: 192.5 kB / 289.6 MB, free: 2.328 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4886/0.4886, allocations: 78.53 MB / 418.2 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 79.88 kB / 497.6 MB, free: 6.301 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1601/0.1618, allocations: 68.17 MB / 0.5525 GB, free: 2.09 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII): time 0.3014/0.4632, allocations: 6.651 MB / 0.559 GB, free: 35.8 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004674/0.468, allocations: 1.987 MB / 0.5609 GB, free: 35.25 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008179/0.4688, allocations: 9.469 kB / 0.5609 GB, free: 35.25 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00083/0.4697, allocations: 242.9 kB / 0.5611 GB, free: 35.25 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001955/0.4717, allocations: 0.8071 MB / 0.5619 GB, free: 35.09 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001404/0.4731, allocations: 0.6347 MB / 0.5626 GB, free: 35.02 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001646/0.4748, allocations: 1.632 MB / 0.5641 GB, free: 34.8 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004702/0.4752, allocations: 334.7 kB / 0.5645 GB, free: 34.75 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007779/0.476, allocations: 0.6725 MB / 0.5651 GB, free: 34.58 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000809/0.4768, allocations: 0.8626 MB / 0.566 GB, free: 34.36 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002213/0.4771, allocations: 129.2 kB / 0.5661 GB, free: 34.36 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005537/0.4776, allocations: 269.3 kB / 0.5663 GB, free: 34.34 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002904/0.4779, allocations: 338.7 kB / 0.5667 GB, free: 34.26 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00056/0.4785, allocations: 0.6897 MB / 0.5673 GB, free: 34.01 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001356/0.4799, allocations: 1.686 MB / 0.569 GB, free: 33.63 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.4799, allocations: 0 / 0.569 GB, free: 33.63 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.4799, allocations: 0.9375 kB / 0.569 GB, free: 33.63 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.343e-05/0.4799, allocations: 0 / 0.569 GB, free: 33.63 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.008537/0.4885, allocations: 2.756 MB / 0.5717 GB, free: 32.64 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.4885, allocations: 10.25 kB / 0.5717 GB, free: 32.64 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001306/0.4886, allocations: 127.1 kB / 0.5718 GB, free: 32.6 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004733/0.4934, allocations: 0.7765 MB / 0.5726 GB, free: 32.51 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001427/0.4948, allocations: 0.9065 MB / 0.5735 GB, free: 32.09 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002488/0.4951, allocations: 262.8 kB / 0.5737 GB, free: 31.91 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001486/0.4952, allocations: 85.25 kB / 0.5738 GB, free: 31.9 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001964/0.4972, allocations: 1.102 MB / 0.5749 GB, free: 31.82 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.061e-05/0.4972, allocations: 6.516 kB / 0.5749 GB, free: 31.82 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.32e-05/0.4973, allocations: 30.44 kB / 0.5749 GB, free: 31.82 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.633e-05/0.4974, allocations: 18.38 kB / 0.5749 GB, free: 31.82 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001823/0.4992, allocations: 0.9963 MB / 0.5759 GB, free: 31.81 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.005868/0.5051, allocations: 3.881 MB / 0.5797 GB, free: 29.94 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00707/0.5122, allocations: 2.386 MB / 0.582 GB, free: 29.11 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001447/0.5136, allocations: 0.6855 MB / 0.5827 GB, free: 28.84 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.832e-05/0.5137, allocations: 24.69 kB / 0.5827 GB, free: 28.83 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001574/0.5153, allocations: 0.8297 MB / 0.5835 GB, free: 28.51 MB / 430.1 MB Notification: Performance of pre-optimization done (n=97): time 2.965e-06/0.5153, allocations: 0.5625 kB / 0.5835 GB, free: 28.51 MB / 430.1 MB Notification: Performance of matching and sorting (n=97): time 0.03094/0.5463, allocations: 7.214 MB / 0.5906 GB, free: 27.11 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.428e-05/0.5464, allocations: 117.1 kB / 0.5907 GB, free: 26.98 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002138/0.5486, allocations: 1.129 MB / 0.5918 GB, free: 26.51 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002649/0.5488, allocations: 42.42 kB / 0.5918 GB, free: 26.47 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004157/0.5493, allocations: 0.4925 MB / 0.5923 GB, free: 26.07 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000435/0.5497, allocations: 370.1 kB / 0.5926 GB, free: 25.79 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006253/0.5503, allocations: 292.4 kB / 0.5929 GB, free: 25.65 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 7.967e-05/0.5504, allocations: 303.1 kB / 0.5932 GB, free: 25.36 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001888/0.5523, allocations: 0.7804 MB / 0.594 GB, free: 25.06 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001936/0.5543, allocations: 0.9565 MB / 0.5949 GB, free: 24.62 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02584/0.5801, allocations: 5.808 MB / 0.6006 GB, free: 22.83 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.28e-05/0.5802, allocations: 2.031 kB / 0.6006 GB, free: 22.83 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.0149/0.5951, allocations: 4.455 MB / 0.6049 GB, free: 21.61 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.847e-05/0.5952, allocations: 60.53 kB / 0.605 GB, free: 21.55 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.922e-05/0.5952, allocations: 7.406 kB / 0.605 GB, free: 21.54 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006211/0.6015, allocations: 1.638 MB / 0.6066 GB, free: 20.83 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001657/0.6031, allocations: 290.4 kB / 0.6069 GB, free: 20.76 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02041/0.6236, allocations: 8.61 MB / 0.6153 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002221/0.6258, allocations: 210.5 kB / 0.6155 GB, free: 14.08 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003212/0.6262, allocations: 59.97 kB / 0.6155 GB, free: 14.02 MB / 430.1 MB 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.0008806/0.6271, allocations: 307.8 kB / 0.6158 GB, free: 13.71 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004125/0.6275, allocations: 122.5 kB / 0.616 GB, free: 13.59 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01212/0.6396, allocations: 3.907 MB / 0.6198 GB, free: 9.648 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.938e-05/0.6397, allocations: 12 kB / 0.6198 GB, free: 9.637 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.708e-05/0.6397, allocations: 5.406 kB / 0.6198 GB, free: 9.633 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.207e-05/0.6397, allocations: 5.859 kB / 0.6198 GB, free: 9.629 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.01465/0.6544, allocations: 5.513 MB / 0.6252 GB, free: 4.008 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.169e-05/0.6544, allocations: 4.031 kB / 0.6252 GB, free: 4.004 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006791/0.6551, allocations: 103.9 kB / 0.6253 GB, free: 3.902 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005286/0.6604, allocations: 1.593 MB / 0.6268 GB, free: 2.305 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000185/0.6606, allocations: 23.98 kB / 0.6269 GB, free: 2.281 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02307/0.6837, allocations: 9.655 MB / 0.6363 GB, free: 8.324 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.6837, allocations: 0 / 0.6363 GB, free: 8.324 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01584/0.6996, allocations: 4.773 MB / 0.6409 GB, free: 3.52 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006613/0.7003, allocations: 227.2 kB / 0.6412 GB, free: 3.277 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004667/0.7008, allocations: 27.92 kB / 0.6412 GB, free: 3.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00157/0.7024, allocations: 112.8 kB / 0.6413 GB, free: 3.141 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006792/0.7031, allocations: 200.7 kB / 0.6415 GB, free: 2.941 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001177/0.7032, allocations: 24 kB / 0.6415 GB, free: 2.918 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001467/0.7047, allocations: 0.7553 MB / 0.6422 GB, free: 2.156 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.7047, allocations: 0 / 0.6422 GB, free: 2.156 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001965/0.7067, allocations: 483.5 kB / 0.6427 GB, free: 1.684 MB / 446.1 MB 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.01555/0.7222, allocations: 5.368 MB / 0.648 GB, free: 12.27 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00792/0.7302, allocations: 2.634 MB / 0.6505 GB, free: 9.605 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.401e-06/0.7302, allocations: 0 / 0.6505 GB, free: 9.605 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004511/0.7347, allocations: 1.581 MB / 0.6521 GB, free: 7.988 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001464/0.7362, allocations: 121.8 kB / 0.6522 GB, free: 7.871 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0442/0.7804, allocations: 17.31 MB / 0.6691 GB, free: 6.156 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009223/0.7814, allocations: 1.124 MB / 0.6702 GB, free: 5.004 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0007531/0.7822, allocations: 122.1 kB / 0.6703 GB, free: 4.887 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009005/0.7831, allocations: 479.3 kB / 0.6708 GB, free: 4.418 MB / 478.1 MB Notification: Performance of SimCode: time 1.062e-06/0.7831, allocations: 0 / 0.6708 GB, free: 4.418 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07542/0.8585, allocations: 34.73 MB / 0.7047 GB, free: 2.098 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.96/13.82, allocations: 11.95 kB / 0.7047 GB, free: 2.086 MB / 0.4981 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_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_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe 2>&1)