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.006744/0.006745, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.322/1.322, allocations: 222.9 MB / 239.4 MB, free: 4.523 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.001393/0.001393, allocations: 192.3 kB / 289.7 MB, free: 2.246 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5028/0.5028, allocations: 91.91 MB / 431.8 MB, free: 9.172 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001422/0.001422, allocations: 81.75 kB / 0.5723 GB, free: 33.73 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1072, allocations: 71.29 MB / 0.6419 GB, free: 4.027 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII): time 0.01281/0.1201, allocations: 13.84 MB / 0.6554 GB, free: 6.129 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.007327/0.1274, allocations: 3.535 MB / 0.6589 GB, free: 2.578 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001627/0.1291, allocations: 24 kB / 0.6589 GB, free: 2.555 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001495/0.1306, allocations: 0.5576 MB / 0.6595 GB, free: 1.992 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004093/0.1347, allocations: 1.595 MB / 0.661 GB, free: 404 kB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003232/0.138, allocations: 1.523 MB / 0.6625 GB, free: 14.89 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.004812/0.1428, allocations: 3.819 MB / 0.6662 GB, free: 11.05 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00142/0.1442, allocations: 0.8896 MB / 0.6671 GB, free: 10.12 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002229/0.1465, allocations: 1.567 MB / 0.6686 GB, free: 8.543 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002763/0.1492, allocations: 2.007 MB / 0.6706 GB, free: 6.527 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009547/0.1502, allocations: 296 kB / 0.6709 GB, free: 6.238 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001436/0.1517, allocations: 435.9 kB / 0.6713 GB, free: 5.812 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0011/0.1528, allocations: 0.7779 MB / 0.6721 GB, free: 5.031 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00233/0.1551, allocations: 1.658 MB / 0.6737 GB, free: 3.363 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005442/0.1606, allocations: 4.068 MB / 0.6776 GB, free: 15.28 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1606, allocations: 3.938 kB / 0.6777 GB, free: 15.27 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.1606, allocations: 0 / 0.6777 GB, free: 15.27 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001522/0.1608, allocations: 0 / 0.6777 GB, free: 15.27 MB / 494.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.02349/0.1843, allocations: 6.777 MB / 0.6843 GB, free: 8.398 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.1843, allocations: 8.031 kB / 0.6843 GB, free: 8.391 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004049/0.1847, allocations: 311.3 kB / 0.6846 GB, free: 8.074 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01547/0.2002, allocations: 2.296 MB / 0.6868 GB, free: 5.773 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004021/0.2043, allocations: 1.928 MB / 0.6887 GB, free: 3.781 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007311/0.205, allocations: 0.7291 MB / 0.6894 GB, free: 2.938 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004703/0.2055, allocations: 220 kB / 0.6896 GB, free: 2.723 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006381/0.2119, allocations: 3.059 MB / 0.6926 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.055e-05/0.2119, allocations: 3.938 kB / 0.6926 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002453/0.2122, allocations: 87.98 kB / 0.6927 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.143e-05/0.2123, allocations: 52 kB / 0.6927 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005986/0.2182, allocations: 2.8 MB / 0.6955 GB, free: 12.63 MB / 0.4981 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 preOpt removeSimpleEquations (simulation): time 0.01834/0.2366, allocations: 9.913 MB / 0.7052 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01119/0.2478, allocations: 4.235 MB / 0.7093 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004391/0.2522, allocations: 1.983 MB / 0.7112 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003227/0.2526, allocations: 41.88 kB / 0.7113 GB, free: 11.89 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004738/0.2573, allocations: 2.252 MB / 0.7135 GB, free: 9.621 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=250): time 4.158e-06/0.2574, allocations: 0 / 0.7135 GB, free: 9.621 MB / 0.5137 GB Notification: Performance of matching and sorting (n=250): time 0.1257/0.3831, allocations: 28.83 MB / 0.7416 GB, free: 12.67 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001022/0.3832, allocations: 184.2 kB / 0.7418 GB, free: 12.45 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003504/0.3867, allocations: 2.333 MB / 0.7441 GB, free: 10.1 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0005795/0.3873, allocations: 69.7 kB / 0.7441 GB, free: 10.02 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009209/0.3883, allocations: 1.197 MB / 0.7453 GB, free: 8.816 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001124/0.3894, allocations: 0.9256 MB / 0.7462 GB, free: 7.883 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001195/0.3906, allocations: 0.5778 MB / 0.7468 GB, free: 7.297 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001019/0.3907, allocations: 301.1 kB / 0.7471 GB, free: 7 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004458/0.3952, allocations: 1.986 MB / 0.749 GB, free: 5.012 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004808/0.4, allocations: 2.354 MB / 0.7513 GB, free: 2.566 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05652/0.4565, allocations: 14.37 MB / 0.7653 GB, free: 3.965 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.699e-05/0.4566, allocations: 4 kB / 0.7653 GB, free: 3.961 MB / 0.5606 GB Notification: Performance of matching and sorting (n=425) (initialization): time 0.3079/0.7645, allocations: 12.62 MB / 0.7777 GB, free: 108.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.127e-05/0.7646, allocations: 112.8 kB / 0.7778 GB, free: 108.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.214e-05/0.7647, allocations: 7.406 kB / 0.7778 GB, free: 108.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0184/0.7831, allocations: 5.433 MB / 0.7831 GB, free: 108.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002905/0.786, allocations: 0.5798 MB / 0.7837 GB, free: 108.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05554/0.8416, allocations: 23.66 MB / 0.8068 GB, free: 96.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004093/0.8457, allocations: 0.4995 MB / 0.8073 GB, free: 96.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003894/0.8461, allocations: 120 kB / 0.8074 GB, free: 96.08 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.001064/0.8472, allocations: 0.5412 MB / 0.8079 GB, free: 95.53 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005176/0.8477, allocations: 319.5 kB / 0.8082 GB, free: 95.25 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03714/0.8848, allocations: 11.95 MB / 0.8199 GB, free: 83.21 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-05/0.8849, allocations: 24 kB / 0.8199 GB, free: 83.19 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.873e-05/0.8849, allocations: 16 kB / 0.8199 GB, free: 83.18 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.253e-05/0.885, allocations: 23.89 kB / 0.8199 GB, free: 83.15 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.04064/0.9256, allocations: 15.59 MB / 0.8352 GB, free: 67.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.939e-05/0.9257, allocations: 4.062 kB / 0.8352 GB, free: 67.45 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001527/0.9272, allocations: 247.7 kB / 0.8354 GB, free: 67.21 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01646/0.9437, allocations: 5.279 MB / 0.8406 GB, free: 61.92 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005245/0.9443, allocations: 51.98 kB / 0.8406 GB, free: 61.87 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05285/0.9971, allocations: 24.96 MB / 0.865 GB, free: 36.51 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.9972, allocations: 0 / 0.865 GB, free: 36.51 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04047/1.038, allocations: 14.36 MB / 0.879 GB, free: 22.03 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008289/1.039, allocations: 426.5 kB / 0.8794 GB, free: 21.63 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005493/1.039, allocations: 48 kB / 0.8795 GB, free: 21.58 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002789/1.042, allocations: 299.6 kB / 0.8797 GB, free: 21.29 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001872/1.044, allocations: 0.5879 MB / 0.8803 GB, free: 20.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002268/1.044, allocations: 63.98 kB / 0.8804 GB, free: 20.64 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001965/1.046, allocations: 1.543 MB / 0.8819 GB, free: 19.09 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.51e-07/1.046, allocations: 0 / 0.8819 GB, free: 19.09 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003118/1.049, allocations: 1.194 MB / 0.8831 GB, free: 17.93 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.04036/1.089, allocations: 15 MB / 0.8977 GB, free: 2.805 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01839/1.108, allocations: 6.802 MB / 0.9043 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/1.108, allocations: 5.641 kB / 0.9043 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.01368/1.122, allocations: 4.448 MB / 0.9087 GB, free: 7.402 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00221/1.124, allocations: 270.7 kB / 0.9089 GB, free: 7.141 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1117/1.236, allocations: 42.26 MB / 0.9502 GB, free: 12.46 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001424/1.237, allocations: 1.815 MB / 0.952 GB, free: 10.61 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001144/1.238, allocations: 266.7 kB / 0.9522 GB, free: 10.35 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001485/1.24, allocations: 1.249 MB / 0.9535 GB, free: 9.098 MB / 0.6231 GB Notification: Performance of SimCode: time 6.51e-07/1.24, allocations: 0 / 0.9535 GB, free: 9.098 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4157/1.655, allocations: 91.05 MB / 1.042 GB, free: 240.1 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.47/20.13, allocations: 6.219 kB / 1.042 GB, free: 240.1 MB / 0.7012 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)