Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_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.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.ThreeArea.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_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.00154/0.00154, 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.493/1.493, allocations: 222.9 MB / 239.3 MB, free: 4.609 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.001513/0.001513, allocations: 184.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.1.0-master/package.mo): time 0.5487/0.5487, allocations: 91.89 MB / 431.6 MB, free: 9.273 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001718/0.001718, allocations: 79.88 kB / 0.502 GB, free: 7.645 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.425/0.4268, allocations: 71.27 MB / 0.5716 GB, free: 36.79 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII): time 0.0149/0.4417, allocations: 13.85 MB / 0.5851 GB, free: 27.61 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01075/0.4525, allocations: 3.534 MB / 0.5886 GB, free: 25.08 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004668/0.4573, allocations: 28.47 kB / 0.5886 GB, free: 25.08 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003073/0.4604, allocations: 0.5649 MB / 0.5891 GB, free: 24.77 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006726/0.4672, allocations: 1.443 MB / 0.5905 GB, free: 23.79 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005127/0.4724, allocations: 1.519 MB / 0.592 GB, free: 23.03 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006971/0.4794, allocations: 3.794 MB / 0.5957 GB, free: 21.13 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002081/0.4815, allocations: 0.8951 MB / 0.5966 GB, free: 20.66 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003283/0.4848, allocations: 1.562 MB / 0.5981 GB, free: 19.86 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00361/0.4884, allocations: 2 MB / 0.6001 GB, free: 18.89 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001754/0.4902, allocations: 294.3 kB / 0.6004 GB, free: 18.89 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002728/0.4929, allocations: 445.9 kB / 0.6008 GB, free: 18.84 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001998/0.495, allocations: 0.7805 MB / 0.6015 GB, free: 18.32 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004824/0.4998, allocations: 1.658 MB / 0.6032 GB, free: 17.2 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008525/0.5084, allocations: 3.997 MB / 0.6071 GB, free: 15.35 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.635e-06/0.5084, allocations: 0 / 0.6071 GB, free: 15.35 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.5084, allocations: 4 kB / 0.6071 GB, free: 15.35 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002342/0.5087, allocations: 1.062 kB / 0.6071 GB, free: 15.35 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: 525 * Number of variables: 525 Notification: Performance of Generate backend data structure: time 0.03063/0.5393, allocations: 6.673 MB / 0.6136 GB, free: 12.7 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.207e-05/0.5394, allocations: 14.44 kB / 0.6136 GB, free: 12.7 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001637/0.541, allocations: 309.3 kB / 0.6139 GB, free: 12.5 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01686/0.5579, allocations: 2.272 MB / 0.6161 GB, free: 12.07 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006619/0.5646, allocations: 1.899 MB / 0.618 GB, free: 10.9 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009734/0.5656, allocations: 0.7346 MB / 0.6187 GB, free: 10.24 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001534/0.5672, allocations: 220.2 kB / 0.6189 GB, free: 10.16 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01149/0.5787, allocations: 3.056 MB / 0.6219 GB, free: 9.004 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001121/0.5788, allocations: 4.547 kB / 0.6219 GB, free: 9 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009341/0.5798, allocations: 86.25 kB / 0.622 GB, free: 8.934 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.8e-05/0.5799, allocations: 54.53 kB / 0.622 GB, free: 8.93 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009016/0.5889, allocations: 2.804 MB / 0.6248 GB, free: 7.684 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.02481/0.6137, allocations: 9.973 MB / 0.6345 GB, free: 13.44 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01189/0.6257, allocations: 4.228 MB / 0.6386 GB, free: 9.062 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005076/0.6308, allocations: 1.983 MB / 0.6406 GB, free: 7.07 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005366/0.6314, allocations: 45.95 kB / 0.6406 GB, free: 7.027 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006189/0.6376, allocations: 2.254 MB / 0.6428 GB, free: 4.754 MB / 446.1 MB Notification: Performance of pre-optimization done (n=250): time 9.938e-06/0.6376, allocations: 0 / 0.6428 GB, free: 4.754 MB / 446.1 MB Notification: Performance of matching and sorting (n=250): time 0.1271/0.7648, allocations: 28.82 MB / 0.671 GB, free: 7.816 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001291/0.7649, allocations: 184.2 kB / 0.6711 GB, free: 7.598 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005099/0.77, allocations: 2.325 MB / 0.6734 GB, free: 5.254 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001124/0.7712, allocations: 73.69 kB / 0.6735 GB, free: 5.176 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001269/0.7725, allocations: 1.176 MB / 0.6746 GB, free: 3.988 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002592/0.7751, allocations: 0.8936 MB / 0.6755 GB, free: 3.082 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004146/0.7793, allocations: 0.5737 MB / 0.676 GB, free: 2.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.7794, allocations: 301.1 kB / 0.6763 GB, free: 2.203 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005297/0.7847, allocations: 1.986 MB / 0.6783 GB, free: 220 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005662/0.7904, allocations: 2.358 MB / 0.6806 GB, free: 13.77 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05923/0.8497, allocations: 14.42 MB / 0.6947 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.341e-05/0.8497, allocations: 4 kB / 0.6947 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of matching and sorting (n=425) (initialization): time 0.04628/0.896, allocations: 12.61 MB / 0.707 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001316/0.8962, allocations: 110.8 kB / 0.7071 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.853e-05/0.8962, allocations: 8 kB / 0.7071 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02026/0.9165, allocations: 5.445 MB / 0.7124 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003432/0.92, allocations: 0.5734 MB / 0.713 GB, free: 12.26 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06836/0.9884, allocations: 23.67 MB / 0.7361 GB, free: 4.43 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005864/0.9943, allocations: 0.493 MB / 0.7366 GB, free: 3.934 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001248/0.9956, allocations: 116 kB / 0.7367 GB, free: 3.82 MB / 0.5294 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.003028/0.9987, allocations: 0.5407 MB / 0.7372 GB, free: 3.266 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001775/1, allocations: 300.2 kB / 0.7375 GB, free: 2.969 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04342/1.044, allocations: 11.95 MB / 0.7492 GB, free: 6.918 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.472e-05/1.044, allocations: 28 kB / 0.7492 GB, free: 6.891 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.05e-05/1.044, allocations: 16 kB / 0.7492 GB, free: 6.875 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.172e-05/1.044, allocations: 19.88 kB / 0.7492 GB, free: 6.855 MB / 0.545 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.05136/1.096, allocations: 15.58 MB / 0.7644 GB, free: 7.066 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-05/1.096, allocations: 4 kB / 0.7644 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00183/1.097, allocations: 255.6 kB / 0.7647 GB, free: 6.812 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01865/1.116, allocations: 5.283 MB / 0.7698 GB, free: 1.516 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008789/1.117, allocations: 55.98 kB / 0.7699 GB, free: 1.461 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3319/1.449, allocations: 24.95 MB / 0.7943 GB, free: 157 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/1.449, allocations: 1.062 kB / 0.7943 GB, free: 157 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04958/1.499, allocations: 14.34 MB / 0.8083 GB, free: 153.3 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001244/1.5, allocations: 416.8 kB / 0.8087 GB, free: 153 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009205/1.501, allocations: 51.75 kB / 0.8087 GB, free: 153 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003497/1.504, allocations: 298.3 kB / 0.809 GB, free: 152.9 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002291/1.507, allocations: 0.5864 MB / 0.8096 GB, free: 152.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002531/1.507, allocations: 68.89 kB / 0.8096 GB, free: 152.8 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002551/1.509, allocations: 1.542 MB / 0.8111 GB, free: 152.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.41e-07/1.509, allocations: 0 / 0.8111 GB, free: 152.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004897/1.514, allocations: 1.194 MB / 0.8123 GB, free: 152.1 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.04293/1.557, allocations: 14.97 MB / 0.8269 GB, free: 143.4 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02129/1.579, allocations: 6.9 MB / 0.8337 GB, free: 136.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.688e-06/1.579, allocations: 4 kB / 0.8337 GB, free: 136.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01334/1.592, allocations: 4.428 MB / 0.838 GB, free: 131.9 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002956/1.595, allocations: 271 kB / 0.8383 GB, free: 131.7 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1085/1.704, allocations: 46.52 MB / 0.8837 GB, free: 83.34 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001064/1.705, allocations: 1.819 MB / 0.8855 GB, free: 81.49 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00153/1.706, allocations: 266.7 kB / 0.8857 GB, free: 81.23 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001565/1.708, allocations: 1.241 MB / 0.8869 GB, free: 79.98 MB / 0.5606 GB Notification: Performance of SimCode: time 1.483e-06/1.708, allocations: 0 / 0.8869 GB, free: 79.98 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1415/1.849, allocations: 90 MB / 0.9748 GB, free: 6.219 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.55/16.39, allocations: 10.02 kB / 0.9748 GB, free: 6.211 MB / 0.5762 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_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_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_SixthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII.pipe 2>&1)