Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_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.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_ThreeArea_ThirdOrder_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.004926/0.004926, allocations: 99.81 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.309/1.309, 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.001284/0.001284, allocations: 188.5 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4312/0.4312, allocations: 78.54 MB / 418.4 MB, free: 3.113 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001524/0.001524, allocations: 79.88 kB / 0.5532 GB, free: 1.363 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2899, allocations: 68.16 MB / 0.6198 GB, free: 9.32 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII): time 0.009568/0.2995, allocations: 13.58 MB / 0.633 GB, free: 12.5 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.007078/0.3066, allocations: 3.46 MB / 0.6364 GB, free: 9.031 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002063/0.3087, allocations: 28 kB / 0.6364 GB, free: 9.004 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001553/0.3103, allocations: 0.5693 MB / 0.637 GB, free: 8.426 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00441/0.3148, allocations: 1.566 MB / 0.6385 GB, free: 6.859 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003464/0.3182, allocations: 1.508 MB / 0.64 GB, free: 5.371 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.004714/0.323, allocations: 3.718 MB / 0.6436 GB, free: 1.637 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001243/0.3242, allocations: 0.9085 MB / 0.6445 GB, free: 0.6797 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002026/0.3263, allocations: 1.521 MB / 0.646 GB, free: 15.15 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002182/0.3285, allocations: 1.96 MB / 0.6479 GB, free: 13.18 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000604/0.3291, allocations: 284 kB / 0.6482 GB, free: 12.9 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008613/0.33, allocations: 431.7 kB / 0.6486 GB, free: 12.48 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005871/0.3306, allocations: 0.7585 MB / 0.6493 GB, free: 11.72 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001525/0.3321, allocations: 1.635 MB / 0.6509 GB, free: 10.08 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004059/0.3362, allocations: 3.988 MB / 0.6548 GB, free: 6.074 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.3362, allocations: 0 / 0.6548 GB, free: 6.074 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3362, allocations: 0 / 0.6548 GB, free: 6.074 MB / 462.1 MB Notification: Performance of Transformations before backend: time 7.745e-05/0.3363, allocations: 0 / 0.6548 GB, free: 6.074 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: 522 * Number of variables: 522 Notification: Performance of Generate backend data structure: time 0.02306/0.3593, allocations: 6.693 MB / 0.6614 GB, free: 15.28 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.3594, allocations: 15.97 kB / 0.6614 GB, free: 15.26 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004436/0.3599, allocations: 299.2 kB / 0.6617 GB, free: 14.96 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01528/0.3751, allocations: 2.292 MB / 0.6639 GB, free: 12.67 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004211/0.3794, allocations: 1.889 MB / 0.6657 GB, free: 10.71 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000756/0.3802, allocations: 0.7289 MB / 0.6665 GB, free: 9.871 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006677/0.3809, allocations: 220 kB / 0.6667 GB, free: 9.656 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006726/0.3876, allocations: 3.027 MB / 0.6696 GB, free: 6.551 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.108e-05/0.3877, allocations: 7.938 kB / 0.6696 GB, free: 6.543 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002656/0.388, allocations: 84 kB / 0.6697 GB, free: 6.461 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.648e-05/0.388, allocations: 52 kB / 0.6698 GB, free: 6.41 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00664/0.3946, allocations: 2.784 MB / 0.6725 GB, free: 3.609 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.01879/0.4135, allocations: 9.811 MB / 0.6821 GB, free: 9.375 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01062/0.4241, allocations: 4.18 MB / 0.6861 GB, free: 5.07 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003963/0.4281, allocations: 1.961 MB / 0.6881 GB, free: 3.105 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002279/0.4284, allocations: 49.89 kB / 0.6881 GB, free: 3.055 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004497/0.4329, allocations: 2.222 MB / 0.6903 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of pre-optimization done (n=247): time 4.358e-06/0.4329, allocations: 4 kB / 0.6903 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of matching and sorting (n=247): time 0.1279/0.5608, allocations: 29.48 MB / 0.7191 GB, free: 3.207 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/0.5609, allocations: 188.2 kB / 0.7192 GB, free: 2.988 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003767/0.5647, allocations: 2.281 MB / 0.7215 GB, free: 0.6875 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0005509/0.5652, allocations: 73.69 kB / 0.7215 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009371/0.5662, allocations: 1.193 MB / 0.7227 GB, free: 15.41 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001216/0.5674, allocations: 0.9063 MB / 0.7236 GB, free: 14.49 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001507/0.5689, allocations: 0.5541 MB / 0.7241 GB, free: 13.93 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001043/0.569, allocations: 309.1 kB / 0.7244 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004576/0.5736, allocations: 1.943 MB / 0.7263 GB, free: 11.68 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004848/0.5785, allocations: 2.314 MB / 0.7286 GB, free: 9.273 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05588/0.6344, allocations: 14 MB / 0.7423 GB, free: 11.04 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.556e-05/0.6344, allocations: 4 kB / 0.7423 GB, free: 11.04 MB / 0.545 GB Notification: Performance of matching and sorting (n=413) (initialization): time 0.04311/0.6776, allocations: 12.29 MB / 0.7543 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.758e-05/0.6777, allocations: 126.6 kB / 0.7544 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.561e-05/0.6777, allocations: 8 kB / 0.7544 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01883/0.6966, allocations: 5.32 MB / 0.7596 GB, free: 9.195 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002917/0.6995, allocations: 0.5578 MB / 0.7601 GB, free: 8.637 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3057/1.005, allocations: 23.52 MB / 0.7831 GB, free: 121.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004626/1.01, allocations: 495 kB / 0.7836 GB, free: 121.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006442/1.011, allocations: 116.1 kB / 0.7837 GB, free: 121.1 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 order3_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 (325): * Single equations (assignments): 320 * 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,26)} Notification: Performance of prepare postOptimizeDAE: time 0.001625/1.012, allocations: 0.529 MB / 0.7842 GB, free: 120.8 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008014/1.013, allocations: 320.3 kB / 0.7845 GB, free: 120.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03787/1.051, allocations: 11.89 MB / 0.7961 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.582e-05/1.051, allocations: 23.59 kB / 0.7961 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.593e-05/1.051, allocations: 23.53 kB / 0.7962 GB, free: 118.3 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.256e-05/1.051, allocations: 11.44 kB / 0.7962 GB, free: 118.3 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.04331/1.094, allocations: 15.49 MB / 0.8113 GB, free: 107.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.176e-05/1.094, allocations: 0 / 0.8113 GB, free: 107.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001474/1.096, allocations: 247.6 kB / 0.8115 GB, free: 107.1 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01718/1.113, allocations: 5.275 MB / 0.8167 GB, free: 101.8 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000551/1.114, allocations: 51.98 kB / 0.8167 GB, free: 101.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05501/1.169, allocations: 24.98 MB / 0.8411 GB, free: 76.34 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.457e-06/1.169, allocations: 1.094 kB / 0.8411 GB, free: 76.34 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04242/1.211, allocations: 14.28 MB / 0.8551 GB, free: 61.95 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008197/1.212, allocations: 421.7 kB / 0.8555 GB, free: 61.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008084/1.213, allocations: 48 kB / 0.8555 GB, free: 61.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003053/1.216, allocations: 299.6 kB / 0.8558 GB, free: 61.21 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001779/1.218, allocations: 0.5763 MB / 0.8564 GB, free: 60.63 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001996/1.218, allocations: 72.05 kB / 0.8564 GB, free: 60.56 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001929/1.22, allocations: 1.511 MB / 0.8579 GB, free: 59.05 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.41e-07/1.22, allocations: 0 / 0.8579 GB, free: 59.05 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003139/1.223, allocations: 1.17 MB / 0.8591 GB, free: 57.91 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 16 (order3_2.delta,order3_2.w,order3_2.e1q,order2.delta,order2.w,order3_1.delta,order3_1.w,order3_1.e1q,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 (156): * Single equations (assignments): 151 * 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.04156/1.265, allocations: 14.92 MB / 0.8736 GB, free: 42.88 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0167/1.281, allocations: 6.718 MB / 0.8802 GB, free: 36.09 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/1.281, allocations: 0 / 0.8802 GB, free: 36.09 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01204/1.293, allocations: 4.425 MB / 0.8845 GB, free: 31.6 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002016/1.296, allocations: 258 kB / 0.8848 GB, free: 31.35 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1005/1.396, allocations: 41.39 MB / 0.9252 GB, free: 5.539 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001375/1.398, allocations: 1.81 MB / 0.9269 GB, free: 3.699 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001104/1.399, allocations: 262.5 kB / 0.9272 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001549/1.4, allocations: 1.23 MB / 0.9284 GB, free: 2.211 MB / 0.5762 GB Notification: Performance of SimCode: time 5.31e-07/1.4, allocations: 0 / 0.9284 GB, free: 2.211 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1534/1.554, allocations: 89.63 MB / 1.016 GB, free: 8.766 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.04/19.59, allocations: 16.53 kB / 1.016 GB, free: 8.754 MB / 0.67 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_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_ThirdOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.ThreeArea.ThirdOrder_AVRII.pipe 2>&1)