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.005874/0.005874, allocations: 99.52 kB / 15.73 MB, free: 6.035 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.417/1.417, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.00162/0.00162, allocations: 180.5 kB / 289.7 MB, free: 2.254 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5228/0.5228, allocations: 91.91 MB / 431.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001458/0.001458, allocations: 78.81 kB / 0.5723 GB, free: 33.6 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1528/0.1543, allocations: 71.3 MB / 0.6419 GB, free: 4.008 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.ThreeArea.SixthOrder_AVRII): time 0.01312/0.1675, allocations: 13.84 MB / 0.6554 GB, free: 6.105 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.009356/0.1769, allocations: 3.527 MB / 0.6589 GB, free: 2.566 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002885/0.1798, allocations: 24 kB / 0.6589 GB, free: 2.543 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001648/0.1815, allocations: 0.5692 MB / 0.6595 GB, free: 1.969 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005299/0.1868, allocations: 1.586 MB / 0.661 GB, free: 392 kB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003794/0.1906, allocations: 1.53 MB / 0.6625 GB, free: 14.87 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.005858/0.1965, allocations: 3.819 MB / 0.6662 GB, free: 11.04 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00183/0.1983, allocations: 0.8896 MB / 0.6671 GB, free: 10.1 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003076/0.2014, allocations: 1.567 MB / 0.6686 GB, free: 8.523 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003299/0.2047, allocations: 2.003 MB / 0.6706 GB, free: 6.512 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001258/0.206, allocations: 296 kB / 0.6709 GB, free: 6.223 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001845/0.2079, allocations: 439.9 kB / 0.6713 GB, free: 5.793 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00138/0.2093, allocations: 0.7779 MB / 0.6721 GB, free: 5.012 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003134/0.2124, allocations: 1.658 MB / 0.6737 GB, free: 3.344 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007313/0.2197, allocations: 4.076 MB / 0.6777 GB, free: 15.25 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.2198, allocations: 0 / 0.6777 GB, free: 15.25 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2198, allocations: 0 / 0.6777 GB, free: 15.25 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.0001887/0.22, allocations: 0 / 0.6777 GB, free: 15.25 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.02656/0.2466, allocations: 6.771 MB / 0.6843 GB, free: 8.379 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.125e-05/0.2466, allocations: 8.031 kB / 0.6843 GB, free: 8.371 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001007/0.2476, allocations: 311.3 kB / 0.6846 GB, free: 8.055 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01597/0.2636, allocations: 2.3 MB / 0.6868 GB, free: 5.75 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005014/0.2687, allocations: 1.924 MB / 0.6887 GB, free: 3.762 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008873/0.2696, allocations: 0.733 MB / 0.6894 GB, free: 2.914 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001037/0.2707, allocations: 220 kB / 0.6896 GB, free: 2.699 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008816/0.2795, allocations: 3.055 MB / 0.6926 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.14e-05/0.2796, allocations: 3.938 kB / 0.6926 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000583/0.2802, allocations: 87.98 kB / 0.6927 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.666e-05/0.2802, allocations: 52 kB / 0.6927 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007165/0.2874, allocations: 2.803 MB / 0.6955 GB, free: 12.61 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.02273/0.3102, allocations: 9.906 MB / 0.7052 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01193/0.3221, allocations: 4.228 MB / 0.7093 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004823/0.327, allocations: 1.987 MB / 0.7112 GB, free: 11.92 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004335/0.3274, allocations: 41.88 kB / 0.7113 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005616/0.3331, allocations: 2.252 MB / 0.7135 GB, free: 9.609 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=250): time 6.322e-06/0.3331, allocations: 0 / 0.7135 GB, free: 9.609 MB / 0.5137 GB Notification: Performance of matching and sorting (n=250): time 0.1266/0.4597, allocations: 28.83 MB / 0.7416 GB, free: 12.66 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001395/0.4599, allocations: 184.2 kB / 0.7418 GB, free: 12.44 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004995/0.4649, allocations: 2.337 MB / 0.7441 GB, free: 10.08 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0008116/0.4658, allocations: 69.7 kB / 0.7441 GB, free: 10.01 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001149/0.4669, allocations: 1.201 MB / 0.7453 GB, free: 8.797 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001716/0.4687, allocations: 0.9218 MB / 0.7462 GB, free: 7.867 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002446/0.4711, allocations: 0.5739 MB / 0.7468 GB, free: 7.285 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.888e-05/0.4712, allocations: 305.1 kB / 0.7471 GB, free: 6.984 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004963/0.4762, allocations: 1.986 MB / 0.749 GB, free: 4.996 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005149/0.4814, allocations: 2.362 MB / 0.7513 GB, free: 2.543 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.05887/0.5403, allocations: 14.36 MB / 0.7653 GB, free: 3.949 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.801e-05/0.5403, allocations: 4 kB / 0.7653 GB, free: 3.945 MB / 0.5606 GB Notification: Performance of matching and sorting (n=425) (initialization): time 0.3729/0.9132, allocations: 12.63 MB / 0.7777 GB, free: 108.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.255e-05/0.9134, allocations: 116 kB / 0.7778 GB, free: 108.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.699e-05/0.9134, allocations: 6.531 kB / 0.7778 GB, free: 108.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01926/0.9327, allocations: 5.434 MB / 0.7831 GB, free: 108.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003067/0.9358, allocations: 0.5791 MB / 0.7837 GB, free: 108.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05775/0.9936, allocations: 23.67 MB / 0.8068 GB, free: 96.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004681/0.9983, allocations: 0.493 MB / 0.8073 GB, free: 96.16 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005483/0.9989, allocations: 120 kB / 0.8074 GB, free: 96.04 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.00129/1, allocations: 0.5321 MB / 0.8079 GB, free: 95.5 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007112/1.001, allocations: 315 kB / 0.8082 GB, free: 95.22 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03699/1.038, allocations: 11.95 MB / 0.8199 GB, free: 83.18 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.923e-05/1.038, allocations: 28 kB / 0.8199 GB, free: 83.16 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-05/1.038, allocations: 16 kB / 0.8199 GB, free: 83.14 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.607e-05/1.038, allocations: 19.89 kB / 0.8199 GB, free: 83.12 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.04065/1.079, allocations: 15.58 MB / 0.8351 GB, free: 67.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.217e-05/1.079, allocations: 4 kB / 0.8351 GB, free: 67.42 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001641/1.08, allocations: 251.8 kB / 0.8354 GB, free: 67.18 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01607/1.097, allocations: 5.277 MB / 0.8405 GB, free: 61.88 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006173/1.097, allocations: 51.98 kB / 0.8406 GB, free: 61.83 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05351/1.151, allocations: 24.96 MB / 0.865 GB, free: 36.48 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/1.151, allocations: 0 / 0.865 GB, free: 36.48 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04141/1.192, allocations: 14.37 MB / 0.879 GB, free: 21.99 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00105/1.193, allocations: 422 kB / 0.8794 GB, free: 21.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008162/1.194, allocations: 55.92 kB / 0.8795 GB, free: 21.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003201/1.197, allocations: 300.5 kB / 0.8797 GB, free: 21.25 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001985/1.199, allocations: 0.5763 MB / 0.8803 GB, free: 20.67 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002143/1.2, allocations: 67.98 kB / 0.8804 GB, free: 20.6 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002016/1.202, allocations: 1.547 MB / 0.8819 GB, free: 19.05 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/1.202, allocations: 0 / 0.8819 GB, free: 19.05 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003645/1.205, allocations: 1.196 MB / 0.8831 GB, free: 17.89 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.04193/1.247, allocations: 14.99 MB / 0.8977 GB, free: 2.77 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01864/1.266, allocations: 6.795 MB / 0.9043 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/1.266, allocations: 11.33 kB / 0.9043 GB, free: 11.88 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.01386/1.28, allocations: 4.452 MB / 0.9087 GB, free: 7.363 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002457/1.282, allocations: 276.6 kB / 0.9089 GB, free: 7.098 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1166/1.399, allocations: 42.26 MB / 0.9502 GB, free: 12.42 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001468/1.4, allocations: 1.819 MB / 0.952 GB, free: 10.57 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.001294/1.402, allocations: 266.8 kB / 0.9523 GB, free: 10.3 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001621/1.403, allocations: 1.249 MB / 0.9535 GB, free: 9.051 MB / 0.6231 GB Notification: Performance of SimCode: time 1.322e-06/1.403, allocations: 0 / 0.9535 GB, free: 9.051 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4907/1.894, allocations: 91.04 MB / 1.042 GB, free: 240.1 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.14/21.04, allocations: 6.781 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)