Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_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.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_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.007303/0.007303, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.378/1.378, allocations: 222.9 MB / 239.4 MB, free: 4.508 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.001996/0.001996, allocations: 188.5 kB / 289.7 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4607/0.4607, allocations: 78.53 MB / 418.4 MB, free: 3.105 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 75.88 kB / 0.5532 GB, free: 1.391 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3404/0.3419, allocations: 68.17 MB / 0.6198 GB, free: 9.262 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII): time 0.01041/0.3523, allocations: 13.81 MB / 0.6333 GB, free: 12.27 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.008338/0.3607, allocations: 3.527 MB / 0.6367 GB, free: 8.73 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002725/0.3634, allocations: 28 kB / 0.6367 GB, free: 8.703 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001739/0.3652, allocations: 0.5653 MB / 0.6373 GB, free: 8.129 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005568/0.3708, allocations: 1.585 MB / 0.6388 GB, free: 6.543 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00405/0.3749, allocations: 1.527 MB / 0.6403 GB, free: 5.035 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.006195/0.3811, allocations: 3.808 MB / 0.644 GB, free: 1.211 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001491/0.3826, allocations: 0.9064 MB / 0.6449 GB, free: 260 kB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002659/0.3853, allocations: 1.564 MB / 0.6465 GB, free: 14.68 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002577/0.3879, allocations: 2.007 MB / 0.6484 GB, free: 12.67 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007584/0.3886, allocations: 292 kB / 0.6487 GB, free: 12.38 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001044/0.3897, allocations: 439.9 kB / 0.6491 GB, free: 11.95 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007/0.3904, allocations: 0.7779 MB / 0.6499 GB, free: 11.17 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001912/0.3923, allocations: 1.67 MB / 0.6515 GB, free: 9.492 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00577/0.3981, allocations: 4.06 MB / 0.6555 GB, free: 5.418 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.3982, allocations: 0 / 0.6555 GB, free: 5.418 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3982, allocations: 0 / 0.6555 GB, free: 5.418 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0001283/0.3983, allocations: 4 kB / 0.6555 GB, free: 5.414 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: 525 * Number of variables: 525 Notification: Performance of Generate backend data structure: time 0.02589/0.4242, allocations: 6.775 MB / 0.6621 GB, free: 14.54 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.4243, allocations: 12.03 kB / 0.6621 GB, free: 14.53 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005131/0.4248, allocations: 307.3 kB / 0.6624 GB, free: 14.21 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01593/0.4407, allocations: 2.296 MB / 0.6646 GB, free: 11.91 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005308/0.4461, allocations: 1.932 MB / 0.6665 GB, free: 9.918 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008482/0.447, allocations: 0.7292 MB / 0.6672 GB, free: 9.074 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007717/0.4478, allocations: 216 kB / 0.6674 GB, free: 8.863 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007258/0.455, allocations: 3.055 MB / 0.6704 GB, free: 5.73 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.29e-05/0.4551, allocations: 3.938 kB / 0.6704 GB, free: 5.727 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002767/0.4554, allocations: 84 kB / 0.6705 GB, free: 5.645 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.902e-05/0.4554, allocations: 52 kB / 0.6706 GB, free: 5.594 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006487/0.4619, allocations: 2.8 MB / 0.6733 GB, free: 2.777 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.02099/0.4829, allocations: 9.917 MB / 0.683 GB, free: 8.438 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01194/0.4949, allocations: 4.228 MB / 0.6871 GB, free: 4.074 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004822/0.4998, allocations: 1.979 MB / 0.689 GB, free: 2.09 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004184/0.5002, allocations: 41.97 kB / 0.6891 GB, free: 2.047 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005425/0.5057, allocations: 2.253 MB / 0.6913 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=250): time 6.142e-06/0.5057, allocations: 0 / 0.6913 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of matching and sorting (n=250): time 0.1292/0.6349, allocations: 28.84 MB / 0.7194 GB, free: 2.816 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001312/0.6351, allocations: 184.2 kB / 0.7196 GB, free: 2.602 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004435/0.6396, allocations: 2.333 MB / 0.7219 GB, free: 256 kB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0007186/0.6403, allocations: 77.69 kB / 0.722 GB, free: 172 kB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001145/0.6415, allocations: 1.197 MB / 0.7231 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001489/0.643, allocations: 0.9179 MB / 0.724 GB, free: 14.04 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002509/0.6455, allocations: 0.57 MB / 0.7246 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001223/0.6456, allocations: 305.1 kB / 0.7249 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005159/0.6508, allocations: 1.986 MB / 0.7268 GB, free: 11.17 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005224/0.656, allocations: 2.366 MB / 0.7291 GB, free: 8.711 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05977/0.7158, allocations: 14.37 MB / 0.7432 GB, free: 10.11 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-05/0.7159, allocations: 0 / 0.7432 GB, free: 10.11 MB / 0.545 GB Notification: Performance of matching and sorting (n=425) (initialization): time 0.04588/0.7618, allocations: 12.62 MB / 0.7555 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.000117/0.7619, allocations: 118.8 kB / 0.7556 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.513e-05/0.762, allocations: 8 kB / 0.7556 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01946/0.7814, allocations: 5.438 MB / 0.7609 GB, free: 7.828 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003126/0.7846, allocations: 0.5734 MB / 0.7615 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3735/1.158, allocations: 23.67 MB / 0.7846 GB, free: 120.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004464/1.163, allocations: 0.4961 MB / 0.7851 GB, free: 120.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000439/1.163, allocations: 120.9 kB / 0.7852 GB, free: 120.6 MB / 0.5606 GB Warning: Assuming fixed start value for the following 6 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.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 (336): * Single equations (assignments): 331 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(63,27)} Notification: Performance of prepare postOptimizeDAE: time 0.001148/1.164, allocations: 0.5293 MB / 0.7857 GB, free: 120.2 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006202/1.165, allocations: 326.2 kB / 0.786 GB, free: 120.1 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03766/1.203, allocations: 11.95 MB / 0.7977 GB, free: 117.7 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.794e-05/1.203, allocations: 27.19 kB / 0.7977 GB, free: 117.7 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.343e-05/1.203, allocations: 15.72 kB / 0.7977 GB, free: 117.7 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.85e-05/1.203, allocations: 15.42 kB / 0.7977 GB, free: 117.7 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.04129/1.244, allocations: 15.59 MB / 0.813 GB, free: 105.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.148e-05/1.244, allocations: 4 kB / 0.813 GB, free: 105.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001593/1.246, allocations: 255.6 kB / 0.8132 GB, free: 105.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01615/1.262, allocations: 5.283 MB / 0.8184 GB, free: 100 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005753/1.262, allocations: 48 kB / 0.8184 GB, free: 99.98 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05293/1.315, allocations: 24.96 MB / 0.8428 GB, free: 74.61 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/1.315, allocations: 7.938 kB / 0.8428 GB, free: 74.61 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04154/1.357, allocations: 14.36 MB / 0.8568 GB, free: 60.13 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001015/1.358, allocations: 434.5 kB / 0.8572 GB, free: 59.72 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007259/1.359, allocations: 48 kB / 0.8573 GB, free: 59.67 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003078/1.362, allocations: 295.6 kB / 0.8576 GB, free: 59.38 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001945/1.364, allocations: 0.5763 MB / 0.8581 GB, free: 58.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001968/1.364, allocations: 67.98 kB / 0.8582 GB, free: 58.74 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002052/1.366, allocations: 1.547 MB / 0.8597 GB, free: 57.19 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.1e-07/1.366, allocations: 0 / 0.8597 GB, free: 57.19 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003918/1.37, allocations: 1.194 MB / 0.8609 GB, free: 56.03 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 19 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,Syn2.delta,Syn2.w,Syn2.e1q,Syn2.e1d,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 (159): * Single equations (assignments): 154 * 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 {(66,22,7.7%)} * 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.0414/1.411, allocations: 15 MB / 0.8755 GB, free: 40.9 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01779/1.429, allocations: 6.801 MB / 0.8822 GB, free: 34.01 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.204e-06/1.429, allocations: 0 / 0.8822 GB, free: 34.01 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01239/1.442, allocations: 4.445 MB / 0.8865 GB, free: 29.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002385/1.444, allocations: 269.6 kB / 0.8868 GB, free: 29.24 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1075/1.552, allocations: 42.25 MB / 0.928 GB, free: 2.566 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001806/1.553, allocations: 1.819 MB / 0.9298 GB, free: 0.7188 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001318/1.555, allocations: 270.7 kB / 0.9301 GB, free: 464 kB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001849/1.557, allocations: 1.249 MB / 0.9313 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of SimCode: time 7.52e-07/1.557, allocations: 0 / 0.9313 GB, free: 15.21 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1471/1.704, allocations: 91.05 MB / 1.02 GB, free: 4.352 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.2/19.9, allocations: 4 kB / 1.02 GB, free: 4.348 MB / 0.67 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_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_SixthOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe 2>&1)