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.006867/0.006867, allocations: 98.08 kB / 15.73 MB, free: 6.004 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.537/1.537, allocations: 222.9 MB / 239.4 MB, free: 4.559 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.001855/0.001855, allocations: 184.5 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5623/0.5623, allocations: 91.91 MB / 431.8 MB, free: 9.207 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002276/0.002276, allocations: 79.7 kB / 0.5723 GB, free: 33.74 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1581/0.1604, allocations: 71.29 MB / 0.6419 GB, free: 4.066 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII): time 0.01477/0.1752, allocations: 13.85 MB / 0.6554 GB, free: 6.156 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.008767/0.184, allocations: 3.531 MB / 0.6589 GB, free: 2.609 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00365/0.1877, allocations: 28 kB / 0.6589 GB, free: 2.582 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002344/0.19, allocations: 0.5537 MB / 0.6595 GB, free: 2.023 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006877/0.197, allocations: 1.447 MB / 0.6609 GB, free: 0.5742 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004657/0.2017, allocations: 1.528 MB / 0.6624 GB, free: 15.07 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.006922/0.2086, allocations: 3.815 MB / 0.6661 GB, free: 11.23 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002036/0.2107, allocations: 0.8896 MB / 0.667 GB, free: 10.3 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00316/0.2139, allocations: 1.564 MB / 0.6685 GB, free: 8.727 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003623/0.2175, allocations: 2.003 MB / 0.6704 GB, free: 6.715 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00139/0.2189, allocations: 296 kB / 0.6707 GB, free: 6.426 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001894/0.2208, allocations: 435.9 kB / 0.6711 GB, free: 6 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001572/0.2224, allocations: 0.7818 MB / 0.6719 GB, free: 5.215 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00333/0.2258, allocations: 1.654 MB / 0.6735 GB, free: 3.551 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006054/0.2318, allocations: 4.072 MB / 0.6775 GB, free: 15.46 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/0.2319, allocations: 0 / 0.6775 GB, free: 15.46 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2319, allocations: 3.938 kB / 0.6775 GB, free: 15.46 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001208/0.232, allocations: 0 / 0.6775 GB, free: 15.46 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.02491/0.2569, allocations: 6.775 MB / 0.6841 GB, free: 8.582 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.643e-05/0.257, allocations: 8.031 kB / 0.6841 GB, free: 8.574 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004726/0.2575, allocations: 307.3 kB / 0.6844 GB, free: 8.262 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01569/0.2732, allocations: 2.3 MB / 0.6867 GB, free: 5.957 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004462/0.2777, allocations: 1.928 MB / 0.6885 GB, free: 3.965 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008188/0.2785, allocations: 0.733 MB / 0.6893 GB, free: 3.117 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005698/0.2791, allocations: 216 kB / 0.6895 GB, free: 2.906 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006534/0.2856, allocations: 3.059 MB / 0.6925 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.717e-05/0.2857, allocations: 3.938 kB / 0.6925 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002596/0.286, allocations: 84 kB / 0.6925 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.071e-05/0.286, allocations: 55.98 kB / 0.6926 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006056/0.2921, allocations: 2.8 MB / 0.6953 GB, free: 12.81 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.0212/0.3133, allocations: 9.91 MB / 0.705 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01109/0.3244, allocations: 4.228 MB / 0.7091 GB, free: 14.11 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004571/0.3291, allocations: 1.983 MB / 0.7111 GB, free: 12.13 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003155/0.3294, allocations: 49.95 kB / 0.7111 GB, free: 12.08 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004946/0.3344, allocations: 2.254 MB / 0.7133 GB, free: 9.809 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=250): time 4.449e-06/0.3344, allocations: 0 / 0.7133 GB, free: 9.809 MB / 0.5137 GB Notification: Performance of matching and sorting (n=250): time 0.1225/0.4569, allocations: 28.83 MB / 0.7415 GB, free: 12.86 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001438/0.4571, allocations: 184.2 kB / 0.7417 GB, free: 12.64 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004018/0.4611, allocations: 2.333 MB / 0.7439 GB, free: 10.29 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008221/0.462, allocations: 73.7 kB / 0.744 GB, free: 10.21 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.00116/0.4631, allocations: 1.189 MB / 0.7452 GB, free: 9.008 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0015/0.4646, allocations: 0.9296 MB / 0.7461 GB, free: 8.07 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001239/0.4659, allocations: 0.5739 MB / 0.7466 GB, free: 7.488 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001486/0.4661, allocations: 301.1 kB / 0.7469 GB, free: 7.191 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004471/0.4705, allocations: 1.994 MB / 0.7489 GB, free: 5.195 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004841/0.4754, allocations: 2.358 MB / 0.7512 GB, free: 2.746 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05617/0.5316, allocations: 14.37 MB / 0.7652 GB, free: 4.148 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.27e-05/0.5317, allocations: 4 kB / 0.7652 GB, free: 4.145 MB / 0.5606 GB Notification: Performance of matching and sorting (n=425) (initialization): time 0.4586/0.9903, allocations: 12.63 MB / 0.7775 GB, free: 108.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.351e-05/0.9905, allocations: 113.4 kB / 0.7776 GB, free: 108.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.763e-05/0.9905, allocations: 6.5 kB / 0.7776 GB, free: 108.4 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0182/1.009, allocations: 5.434 MB / 0.7829 GB, free: 108.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00302/1.012, allocations: 0.5809 MB / 0.7835 GB, free: 108.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05229/1.064, allocations: 23.67 MB / 0.8066 GB, free: 96.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004751/1.069, allocations: 0.4943 MB / 0.8071 GB, free: 96.39 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004911/1.069, allocations: 120 kB / 0.8072 GB, free: 96.27 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.001234/1.071, allocations: 0.5363 MB / 0.8078 GB, free: 95.72 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006093/1.071, allocations: 315.5 kB / 0.8081 GB, free: 95.44 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03417/1.105, allocations: 11.94 MB / 0.8197 GB, free: 83.41 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.009e-05/1.106, allocations: 27.98 kB / 0.8197 GB, free: 83.38 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.373e-05/1.106, allocations: 20.88 kB / 0.8198 GB, free: 83.36 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-05/1.106, allocations: 15.89 kB / 0.8198 GB, free: 83.34 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.03902/1.145, allocations: 15.58 MB / 0.835 GB, free: 67.65 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.609e-05/1.145, allocations: 0 / 0.835 GB, free: 67.65 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001674/1.146, allocations: 251.7 kB / 0.8352 GB, free: 67.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01524/1.162, allocations: 5.287 MB / 0.8404 GB, free: 62.11 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007053/1.162, allocations: 53.98 kB / 0.8404 GB, free: 62.05 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05063/1.213, allocations: 24.96 MB / 0.8648 GB, free: 36.71 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/1.213, allocations: 12.11 kB / 0.8648 GB, free: 36.7 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03938/1.252, allocations: 14.36 MB / 0.8789 GB, free: 22.22 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001277/1.254, allocations: 436.1 kB / 0.8793 GB, free: 21.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007313/1.255, allocations: 44 kB / 0.8793 GB, free: 21.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00294/1.258, allocations: 299.6 kB / 0.8796 GB, free: 21.47 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002163/1.26, allocations: 0.5918 MB / 0.8802 GB, free: 20.88 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001926/1.26, allocations: 63.98 kB / 0.8802 GB, free: 20.82 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001977/1.262, allocations: 1.543 MB / 0.8817 GB, free: 19.27 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.9e-07/1.262, allocations: 4 kB / 0.8817 GB, free: 19.27 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003619/1.266, allocations: 1.194 MB / 0.8829 GB, free: 18.11 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.03936/1.305, allocations: 14.98 MB / 0.8975 GB, free: 2.992 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01814/1.323, allocations: 6.805 MB / 0.9042 GB, free: 12.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 7.624e-06/1.323, allocations: 1.641 kB / 0.9042 GB, free: 12.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.01366/1.337, allocations: 4.449 MB / 0.9085 GB, free: 7.59 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002638/1.339, allocations: 272.4 kB / 0.9088 GB, free: 7.328 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1175/1.457, allocations: 42.26 MB / 0.9501 GB, free: 12.65 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001685/1.459, allocations: 1.819 MB / 0.9518 GB, free: 10.8 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001319/1.46, allocations: 262.8 kB / 0.9521 GB, free: 10.54 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001888/1.462, allocations: 1.249 MB / 0.9533 GB, free: 9.285 MB / 0.6231 GB Notification: Performance of SimCode: time 6.92e-07/1.462, allocations: 0 / 0.9533 GB, free: 9.285 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5391/2.001, allocations: 91.05 MB / 1.042 GB, free: 239.9 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.92/21.92, allocations: 7.828 kB / 1.042 GB, free: 239.9 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)