Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.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.ThreeArea.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_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.001619/0.001619, 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.44/1.44, allocations: 222.9 MB / 239.3 MB, free: 4.562 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.001728/0.001729, allocations: 188.3 kB / 289.6 MB, free: 2.293 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4869/0.4869, allocations: 78.53 MB / 418.2 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00173/0.00173, allocations: 83.88 kB / 497.5 MB, free: 6.32 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1471/0.1488, allocations: 68.18 MB / 0.5525 GB, free: 2.109 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII): time 0.2961/0.445, allocations: 13.77 MB / 0.5659 GB, free: 31.86 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008899/0.4539, allocations: 3.492 MB / 0.5693 GB, free: 30.76 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003714/0.4577, allocations: 27.59 kB / 0.5694 GB, free: 30.76 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002462/0.4602, allocations: 0.563 MB / 0.5699 GB, free: 30.48 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006383/0.4666, allocations: 1.434 MB / 0.5713 GB, free: 29.74 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004356/0.471, allocations: 1.519 MB / 0.5728 GB, free: 29.56 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006478/0.4775, allocations: 3.748 MB / 0.5764 GB, free: 28.72 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001796/0.4793, allocations: 0.9089 MB / 0.5773 GB, free: 28.51 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002675/0.482, allocations: 1.54 MB / 0.5788 GB, free: 28.09 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002437/0.4845, allocations: 1.986 MB / 0.5808 GB, free: 27.19 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009051/0.4854, allocations: 289.7 kB / 0.5811 GB, free: 27.19 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0015/0.4869, allocations: 444.5 kB / 0.5815 GB, free: 27.14 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006606/0.4876, allocations: 0.7657 MB / 0.5822 GB, free: 26.63 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002079/0.4897, allocations: 1.656 MB / 0.5838 GB, free: 25.5 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004218/0.4939, allocations: 3.97 MB / 0.5877 GB, free: 23.67 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.814e-06/0.4939, allocations: 5.812 kB / 0.5877 GB, free: 23.66 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.4939, allocations: 0 / 0.5877 GB, free: 23.66 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.649e-05/0.494, allocations: 0 / 0.5877 GB, free: 23.66 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.02542/0.5194, allocations: 6.643 MB / 0.5942 GB, free: 21.02 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.701e-05/0.5195, allocations: 12.91 kB / 0.5942 GB, free: 21.02 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004525/0.52, allocations: 303.3 kB / 0.5945 GB, free: 20.83 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01556/0.5356, allocations: 2.276 MB / 0.5967 GB, free: 20.39 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005387/0.541, allocations: 1.893 MB / 0.5986 GB, free: 19.23 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007265/0.5417, allocations: 0.7318 MB / 0.5993 GB, free: 18.57 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006581/0.5424, allocations: 219 kB / 0.5995 GB, free: 18.49 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007443/0.5499, allocations: 3.044 MB / 0.6025 GB, free: 17.34 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.11e-05/0.55, allocations: 0 / 0.6025 GB, free: 17.34 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002646/0.5502, allocations: 86.3 kB / 0.6026 GB, free: 17.27 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.267e-05/0.5503, allocations: 49.62 kB / 0.6026 GB, free: 17.27 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006664/0.557, allocations: 2.797 MB / 0.6053 GB, free: 16.32 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.02242/0.5794, allocations: 9.932 MB / 0.615 GB, free: 10.8 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01183/0.5913, allocations: 4.207 MB / 0.6191 GB, free: 8.598 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004684/0.596, allocations: 1.978 MB / 0.6211 GB, free: 7.582 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004783/0.5965, allocations: 40.08 kB / 0.6211 GB, free: 7.57 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005188/0.6017, allocations: 2.246 MB / 0.6233 GB, free: 6.176 MB / 430.1 MB Notification: Performance of pre-optimization done (n=249): time 6.643e-06/0.6017, allocations: 0 / 0.6233 GB, free: 6.176 MB / 430.1 MB Notification: Performance of matching and sorting (n=249): time 0.1189/0.7206, allocations: 27.42 MB / 0.6501 GB, free: 10.63 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001193/0.7208, allocations: 184.2 kB / 0.6503 GB, free: 10.41 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004671/0.7255, allocations: 2.313 MB / 0.6525 GB, free: 8.082 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008633/0.7264, allocations: 77.64 kB / 0.6526 GB, free: 8 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001136/0.7275, allocations: 1.172 MB / 0.6537 GB, free: 6.816 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001661/0.7292, allocations: 0.8819 MB / 0.6546 GB, free: 5.922 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002702/0.7319, allocations: 0.5658 MB / 0.6552 GB, free: 5.348 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.832e-05/0.732, allocations: 305.1 kB / 0.6554 GB, free: 5.047 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004927/0.737, allocations: 1.971 MB / 0.6574 GB, free: 3.074 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005378/0.7424, allocations: 2.345 MB / 0.6597 GB, free: 0.6406 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05753/0.7999, allocations: 14.29 MB / 0.6736 GB, free: 2.141 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-05/0.8, allocations: 7.938 kB / 0.6736 GB, free: 2.133 MB / 478.1 MB Notification: Performance of matching and sorting (n=421) (initialization): time 0.04548/0.8455, allocations: 12.54 MB / 0.6859 GB, free: 5.523 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001285/0.8456, allocations: 118.8 kB / 0.686 GB, free: 5.383 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.836e-05/0.8457, allocations: 8 kB / 0.686 GB, free: 5.375 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01866/0.8644, allocations: 5.273 MB / 0.6911 GB, free: 100 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003453/0.8679, allocations: 0.5819 MB / 0.6917 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06413/0.932, allocations: 23.2 MB / 0.7144 GB, free: 8.152 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005561/0.9376, allocations: 493.6 kB / 0.7148 GB, free: 7.668 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009536/0.9386, allocations: 120 kB / 0.7149 GB, free: 7.551 MB / 0.5137 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 Syn2.delta:VARIABLE(flow=false start = Syn2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Syn2.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 (334): * Single equations (assignments): 329 * 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.002516/0.9411, allocations: 0.542 MB / 0.7155 GB, free: 6.988 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001467/0.9426, allocations: 300.3 kB / 0.7158 GB, free: 6.691 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04274/0.9854, allocations: 11.93 MB / 0.7274 GB, free: 10.67 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.909e-05/0.9855, allocations: 27.98 kB / 0.7274 GB, free: 10.64 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.046e-05/0.9856, allocations: 20 kB / 0.7275 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.89e-05/0.9857, allocations: 12.52 kB / 0.7275 GB, free: 10.61 MB / 0.5294 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.05135/1.037, allocations: 15.57 MB / 0.7427 GB, free: 10.83 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-05/1.037, allocations: 0 / 0.7427 GB, free: 10.83 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001751/1.039, allocations: 248.8 kB / 0.7429 GB, free: 10.59 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01866/1.058, allocations: 5.31 MB / 0.7481 GB, free: 5.262 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000754/1.058, allocations: 51.98 kB / 0.7481 GB, free: 5.211 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.379/1.437, allocations: 24.95 MB / 0.7725 GB, free: 164.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/1.437, allocations: 0.5469 kB / 0.7725 GB, free: 164.3 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0498/1.487, allocations: 14.3 MB / 0.7865 GB, free: 163.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002296/1.49, allocations: 413.9 kB / 0.7869 GB, free: 163.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001943/1.492, allocations: 45.31 kB / 0.7869 GB, free: 163.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005666/1.497, allocations: 299.1 kB / 0.7872 GB, free: 163.8 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002926/1.5, allocations: 0.5853 MB / 0.7878 GB, free: 163.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004269/1.501, allocations: 66.11 kB / 0.7878 GB, free: 163.8 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003952/1.505, allocations: 1.531 MB / 0.7893 GB, free: 163.6 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7.52e-07/1.505, allocations: 1.312 kB / 0.7893 GB, free: 163.6 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.009139/1.514, allocations: 1.18 MB / 0.7905 GB, free: 163.6 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 18 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,Syn2.delta,Syn2.w,Syn2.e1q,Syn2.e2q,Syn2.e2d,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 (158): * Single equations (assignments): 153 * 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 {(67,21,7.5%)} * 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.05852/1.572, allocations: 14.94 MB / 0.8051 GB, free: 161.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02497/1.597, allocations: 6.762 MB / 0.8117 GB, free: 158.9 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.367e-06/1.597, allocations: 0.5625 kB / 0.8117 GB, free: 158.9 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01507/1.613, allocations: 4.445 MB / 0.816 GB, free: 157.3 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005217/1.618, allocations: 265.8 kB / 0.8163 GB, free: 157.1 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1261/1.744, allocations: 46.43 MB / 0.8616 GB, free: 115.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002207/1.746, allocations: 1.811 MB / 0.8634 GB, free: 113.9 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001871/1.748, allocations: 262.9 kB / 0.8636 GB, free: 113.6 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002115/1.75, allocations: 1.247 MB / 0.8649 GB, free: 112.4 MB / 0.5606 GB Notification: Performance of SimCode: time 1.233e-06/1.75, allocations: 0 / 0.8649 GB, free: 112.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1397/1.89, allocations: 87.45 MB / 0.9503 GB, free: 25.38 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.26/17.15, allocations: 0 / 0.9503 GB, free: 25.38 MB / 0.5606 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.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_ThreeArea_FifthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe 2>&1)