Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.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.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_Discretization_FourthOrder_AVRII_Continuous",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.006702/0.006702, allocations: 101.5 kB / 15.73 MB, free: 6.059 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.518/1.518, allocations: 222.9 MB / 239.4 MB, free: 4.527 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.001815/0.001815, allocations: 192.4 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5867/0.5867, allocations: 91.9 MB / 431.8 MB, free: 9.148 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002279/0.002279, allocations: 83.95 kB / 0.5723 GB, free: 33.76 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1584/0.1607, allocations: 71.3 MB / 0.6419 GB, free: 4.07 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.00861/0.1693, allocations: 6.578 MB / 0.6483 GB, free: 13.46 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004846/0.1742, allocations: 1.959 MB / 0.6502 GB, free: 11.5 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009254/0.1752, allocations: 12 kB / 0.6502 GB, free: 11.48 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008373/0.1761, allocations: 241.9 kB / 0.6505 GB, free: 11.25 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002382/0.1785, allocations: 0.8017 MB / 0.6512 GB, free: 10.44 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001488/0.18, allocations: 0.6307 MB / 0.6519 GB, free: 9.816 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002109/0.1821, allocations: 1.581 MB / 0.6534 GB, free: 8.23 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005542/0.1827, allocations: 330.4 kB / 0.6537 GB, free: 7.898 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009905/0.1837, allocations: 0.6535 MB / 0.6544 GB, free: 7.242 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001058/0.1847, allocations: 0.8206 MB / 0.6552 GB, free: 6.418 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002015/0.1849, allocations: 120 kB / 0.6553 GB, free: 6.301 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005568/0.1855, allocations: 259.9 kB / 0.6555 GB, free: 6.047 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003452/0.1859, allocations: 342.5 kB / 0.6559 GB, free: 5.711 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006757/0.1866, allocations: 0.6602 MB / 0.6565 GB, free: 5.047 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002306/0.1889, allocations: 1.676 MB / 0.6581 GB, free: 3.363 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.1889, allocations: 0 / 0.6581 GB, free: 3.363 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1889, allocations: 0 / 0.6581 GB, free: 3.363 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.803e-05/0.1889, allocations: 0 / 0.6581 GB, free: 3.363 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.009526/0.1985, allocations: 2.73 MB / 0.6608 GB, free: 0.5625 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.654e-05/0.1985, allocations: 12.03 kB / 0.6608 GB, free: 0.5508 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001877/0.1987, allocations: 122.7 kB / 0.6609 GB, free: 432 kB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00515/0.2039, allocations: 0.7757 MB / 0.6617 GB, free: 15.64 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001804/0.2057, allocations: 0.899 MB / 0.6626 GB, free: 14.69 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003335/0.206, allocations: 256.2 kB / 0.6628 GB, free: 14.41 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001978/0.2063, allocations: 84 kB / 0.6629 GB, free: 14.32 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002262/0.2085, allocations: 1.086 MB / 0.6639 GB, free: 13.22 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.343e-05/0.2086, allocations: 4 kB / 0.664 GB, free: 13.22 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001021/0.2087, allocations: 35.94 kB / 0.664 GB, free: 13.18 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.978e-05/0.2087, allocations: 20 kB / 0.664 GB, free: 13.16 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002122/0.2108, allocations: 0.9916 MB / 0.665 GB, free: 12.17 MB / 478.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.007422/0.2183, allocations: 3.836 MB / 0.6687 GB, free: 8.152 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007726/0.226, allocations: 2.367 MB / 0.671 GB, free: 5.691 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001482/0.2275, allocations: 0.6723 MB / 0.6717 GB, free: 5.016 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001048/0.2276, allocations: 20.97 kB / 0.6717 GB, free: 4.996 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001677/0.2293, allocations: 0.8177 MB / 0.6725 GB, free: 4.16 MB / 478.1 MB Notification: Performance of pre-optimization done (n=96): time 2.876e-06/0.2293, allocations: 8 kB / 0.6725 GB, free: 4.152 MB / 478.1 MB Notification: Performance of matching and sorting (n=96): time 0.0295/0.2588, allocations: 7.074 MB / 0.6794 GB, free: 13.02 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.988e-05/0.259, allocations: 127.7 kB / 0.6795 GB, free: 12.87 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002032/0.261, allocations: 1.083 MB / 0.6806 GB, free: 11.77 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002813/0.2613, allocations: 49.69 kB / 0.6806 GB, free: 11.71 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000468/0.2618, allocations: 0.4897 MB / 0.6811 GB, free: 11.22 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000519/0.2623, allocations: 376.8 kB / 0.6815 GB, free: 10.85 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000551/0.2629, allocations: 283.5 kB / 0.6818 GB, free: 10.57 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.2631, allocations: 313.1 kB / 0.6821 GB, free: 10.26 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001717/0.2648, allocations: 0.7613 MB / 0.6828 GB, free: 9.496 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001825/0.2666, allocations: 0.9304 MB / 0.6837 GB, free: 8.527 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02456/0.2912, allocations: 5.564 MB / 0.6891 GB, free: 2.879 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.133e-05/0.2913, allocations: 0 / 0.6891 GB, free: 2.879 MB / 494.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01392/0.3052, allocations: 4.344 MB / 0.6934 GB, free: 14.51 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.153e-05/0.3053, allocations: 64.48 kB / 0.6934 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.633e-05/0.3053, allocations: 4 kB / 0.6934 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005575/0.3109, allocations: 1.516 MB / 0.6949 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001664/0.3126, allocations: 295.6 kB / 0.6952 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02074/0.3334, allocations: 8.277 MB / 0.7033 GB, free: 4.188 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002128/0.3355, allocations: 203 kB / 0.7035 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003214/0.3359, allocations: 59.97 kB / 0.7035 GB, free: 3.93 MB / 0.4981 GB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 2 * 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 {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001003/0.3369, allocations: 309.2 kB / 0.7038 GB, free: 3.617 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004304/0.3374, allocations: 139.1 kB / 0.704 GB, free: 3.48 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01377/0.3511, allocations: 3.865 MB / 0.7077 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.737e-05/0.3512, allocations: 8 kB / 0.7078 GB, free: 15.58 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.516e-05/0.3512, allocations: 8 kB / 0.7078 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.81e-05/0.3512, allocations: 3.984 kB / 0.7078 GB, free: 15.57 MB / 0.5137 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.01573/0.367, allocations: 5.471 MB / 0.7131 GB, free: 9.984 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.457e-05/0.367, allocations: 0 / 0.7131 GB, free: 9.984 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006722/0.3677, allocations: 103.8 kB / 0.7132 GB, free: 9.883 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005789/0.3735, allocations: 1.587 MB / 0.7148 GB, free: 8.289 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001949/0.3737, allocations: 31.98 kB / 0.7148 GB, free: 8.258 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02229/0.396, allocations: 9.631 MB / 0.7242 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3961, allocations: 0 / 0.7242 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01518/0.4113, allocations: 4.743 MB / 0.7288 GB, free: 9.562 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005447/0.4119, allocations: 228 kB / 0.729 GB, free: 9.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001895/0.4121, allocations: 20 kB / 0.7291 GB, free: 9.301 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/0.4133, allocations: 111.9 kB / 0.7292 GB, free: 9.191 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006598/0.4139, allocations: 196.7 kB / 0.7294 GB, free: 8.996 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.596e-05/0.414, allocations: 28.06 kB / 0.7294 GB, free: 8.969 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001251/0.4153, allocations: 0.7312 MB / 0.7301 GB, free: 8.23 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4153, allocations: 4 kB / 0.7301 GB, free: 8.227 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001565/0.4169, allocations: 471.7 kB / 0.7306 GB, free: 7.766 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(19,13,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01543/0.4323, allocations: 5.324 MB / 0.7358 GB, free: 2.391 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006783/0.4391, allocations: 2.509 MB / 0.7382 GB, free: 15.84 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.4392, allocations: 0 / 0.7382 GB, free: 15.84 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004602/0.4438, allocations: 1.586 MB / 0.7397 GB, free: 14.21 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001221/0.445, allocations: 122.9 kB / 0.7399 GB, free: 14.09 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04121/0.4863, allocations: 16.04 MB / 0.7555 GB, free: 13.83 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009094/0.4872, allocations: 1.124 MB / 0.7566 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0006237/0.4879, allocations: 124 kB / 0.7567 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007063/0.4886, allocations: 467.3 kB / 0.7572 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of SimCode: time 1.142e-06/0.4886, allocations: 0 / 0.7572 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4362/0.9248, allocations: 34.24 MB / 0.7906 GB, free: 112.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.09/17.01, allocations: 2.406 kB / 0.7906 GB, free: 112.6 MB / 0.5606 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous_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_Discretization_FourthOrder_AVRII_Continuous.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)