Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_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.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.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_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.008805/0.008805, 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.404/1.404, 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.001548/0.001548, allocations: 192.5 kB / 289.7 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5378/0.5378, allocations: 91.9 MB / 431.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 78.38 kB / 0.5723 GB, free: 33.57 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1403/0.1418, allocations: 71.29 MB / 0.6419 GB, free: 4.012 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII): time 0.01336/0.1552, allocations: 13.8 MB / 0.6554 GB, free: 6.152 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.008752/0.164, allocations: 3.511 MB / 0.6588 GB, free: 2.625 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003448/0.1675, allocations: 28 kB / 0.6589 GB, free: 2.598 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00254/0.1701, allocations: 0.5576 MB / 0.6594 GB, free: 2.035 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006862/0.177, allocations: 1.587 MB / 0.6609 GB, free: 456 kB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0046/0.1816, allocations: 1.521 MB / 0.6624 GB, free: 14.95 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.007381/0.189, allocations: 3.788 MB / 0.6661 GB, free: 11.14 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002118/0.1911, allocations: 0.8895 MB / 0.667 GB, free: 10.2 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003914/0.1951, allocations: 1.548 MB / 0.6685 GB, free: 8.648 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003348/0.1985, allocations: 1.983 MB / 0.6704 GB, free: 6.656 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001576/0.2001, allocations: 288 kB / 0.6707 GB, free: 6.375 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001801/0.2019, allocations: 439.8 kB / 0.6711 GB, free: 5.945 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001335/0.2032, allocations: 0.778 MB / 0.6719 GB, free: 5.164 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00279/0.206, allocations: 1.647 MB / 0.6735 GB, free: 3.508 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005951/0.212, allocations: 4.045 MB / 0.6775 GB, free: 15.45 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.212, allocations: 0 / 0.6775 GB, free: 15.45 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.2121, allocations: 0 / 0.6775 GB, free: 15.45 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001678/0.2122, allocations: 0 / 0.6775 GB, free: 15.45 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: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.02633/0.2386, allocations: 6.752 MB / 0.6841 GB, free: 8.594 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.471e-05/0.2386, allocations: 8.031 kB / 0.6841 GB, free: 8.586 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001021/0.2397, allocations: 307.3 kB / 0.6844 GB, free: 8.273 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01573/0.2554, allocations: 2.296 MB / 0.6866 GB, free: 5.973 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005462/0.2609, allocations: 1.928 MB / 0.6885 GB, free: 3.98 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001174/0.2621, allocations: 0.7213 MB / 0.6892 GB, free: 3.145 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001314/0.2635, allocations: 216 kB / 0.6894 GB, free: 2.934 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008192/0.2717, allocations: 3.043 MB / 0.6924 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.079e-05/0.2718, allocations: 3.938 kB / 0.6924 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002618/0.2721, allocations: 87.94 kB / 0.6924 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.212e-05/0.2721, allocations: 52 kB / 0.6925 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006076/0.2782, allocations: 2.796 MB / 0.6952 GB, free: 12.86 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.02043/0.2986, allocations: 9.882 MB / 0.7049 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0116/0.3103, allocations: 4.203 MB / 0.709 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004704/0.315, allocations: 1.978 MB / 0.7109 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004769/0.3155, allocations: 37.95 kB / 0.711 GB, free: 12.2 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005932/0.3215, allocations: 2.244 MB / 0.7131 GB, free: 9.934 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=249): time 7.955e-06/0.3215, allocations: 3.938 kB / 0.7131 GB, free: 9.93 MB / 0.5137 GB Notification: Performance of matching and sorting (n=249): time 0.1209/0.4424, allocations: 27.44 MB / 0.7399 GB, free: 14.38 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001337/0.4426, allocations: 188.2 kB / 0.7401 GB, free: 14.15 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004798/0.4474, allocations: 2.313 MB / 0.7424 GB, free: 11.82 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008229/0.4482, allocations: 69.7 kB / 0.7424 GB, free: 11.75 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0013/0.4495, allocations: 1.193 MB / 0.7436 GB, free: 10.54 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001556/0.4511, allocations: 0.9257 MB / 0.7445 GB, free: 9.609 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002384/0.4535, allocations: 0.5699 MB / 0.7451 GB, free: 9.031 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.578e-05/0.4536, allocations: 301.1 kB / 0.7454 GB, free: 8.734 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004981/0.4586, allocations: 1.978 MB / 0.7473 GB, free: 6.754 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005169/0.4638, allocations: 2.334 MB / 0.7496 GB, free: 4.328 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05881/0.5226, allocations: 14.24 MB / 0.7635 GB, free: 5.855 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.126e-05/0.5227, allocations: 7.938 kB / 0.7635 GB, free: 5.848 MB / 0.5606 GB Notification: Performance of matching and sorting (n=421) (initialization): time 0.3868/0.9095, allocations: 12.55 MB / 0.7757 GB, free: 108 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.024e-05/0.9097, allocations: 116.1 kB / 0.7759 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.534e-05/0.9097, allocations: 6.844 kB / 0.7759 GB, free: 107.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01896/0.9287, allocations: 5.259 MB / 0.781 GB, free: 107.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00322/0.932, allocations: 0.5871 MB / 0.7816 GB, free: 107.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05542/0.9874, allocations: 23.2 MB / 0.8042 GB, free: 99.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004381/0.9918, allocations: 497.5 kB / 0.8047 GB, free: 98.66 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004539/0.9923, allocations: 120 kB / 0.8048 GB, free: 98.54 MB / 0.5606 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.001253/0.9936, allocations: 0.5378 MB / 0.8053 GB, free: 97.99 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006463/0.9942, allocations: 318.8 kB / 0.8056 GB, free: 97.72 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03673/1.031, allocations: 11.93 MB / 0.8173 GB, free: 85.7 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.89e-05/1.031, allocations: 24 kB / 0.8173 GB, free: 85.68 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.699e-05/1.031, allocations: 24 kB / 0.8173 GB, free: 85.66 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.627e-05/1.031, allocations: 11.95 kB / 0.8173 GB, free: 85.64 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.04097/1.072, allocations: 15.57 MB / 0.8325 GB, free: 69.97 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.223e-05/1.072, allocations: 0 / 0.8325 GB, free: 69.97 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001615/1.074, allocations: 247.6 kB / 0.8328 GB, free: 69.73 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01663/1.09, allocations: 5.296 MB / 0.838 GB, free: 64.42 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006431/1.091, allocations: 47.98 kB / 0.838 GB, free: 64.37 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0537/1.145, allocations: 24.96 MB / 0.8624 GB, free: 39.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/1.145, allocations: 0 / 0.8624 GB, free: 39.02 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04163/1.187, allocations: 14.34 MB / 0.8764 GB, free: 24.57 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009934/1.188, allocations: 425.7 kB / 0.8768 GB, free: 24.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007787/1.188, allocations: 47.98 kB / 0.8768 GB, free: 24.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003068/1.191, allocations: 299.6 kB / 0.8771 GB, free: 23.82 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001865/1.193, allocations: 0.5802 MB / 0.8777 GB, free: 23.24 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002092/1.194, allocations: 68.86 kB / 0.8778 GB, free: 23.18 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00198/1.196, allocations: 1.527 MB / 0.8792 GB, free: 21.64 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.21e-07/1.196, allocations: 0 / 0.8792 GB, free: 21.64 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003714/1.199, allocations: 1.183 MB / 0.8804 GB, free: 20.5 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.04206/1.241, allocations: 14.97 MB / 0.895 GB, free: 5.398 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01803/1.259, allocations: 6.666 MB / 0.9015 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.835e-06/1.259, allocations: 3.516 kB / 0.9015 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.01436/1.274, allocations: 4.452 MB / 0.9059 GB, free: 10.12 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002889/1.277, allocations: 272.7 kB / 0.9061 GB, free: 9.859 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1235/1.4, allocations: 42.21 MB / 0.9474 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00212/1.403, allocations: 1.811 MB / 0.9491 GB, free: 13.38 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001619/1.404, allocations: 266.6 kB / 0.9494 GB, free: 13.11 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002184/1.406, allocations: 1.237 MB / 0.9506 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of SimCode: time 1.202e-06/1.406, allocations: 0 / 0.9506 GB, free: 11.88 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1589/1.565, allocations: 88.49 MB / 1.037 GB, free: 3.598 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.74/20.3, allocations: 11.58 kB / 1.037 GB, free: 3.59 MB / 0.7012 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_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_dev_OpenIPSL_Examples_PSATSystems_ThreeArea_FifthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.ThreeArea.FifthOrder_AVRII.pipe 2>&1)