Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_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.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_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.008005/0.008005, allocations: 99.97 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.297/1.297, allocations: 222.9 MB / 239.4 MB, free: 4.348 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.00154/0.00154, allocations: 192.5 kB / 289.7 MB, free: 2.066 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4916/0.4916, allocations: 91.9 MB / 431.8 MB, free: 9.121 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 87.52 kB / 0.5723 GB, free: 33.43 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1347, allocations: 71.29 MB / 0.6419 GB, free: 4.051 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.006518/0.1412, allocations: 6.577 MB / 0.6483 GB, free: 13.45 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003927/0.1452, allocations: 1.955 MB / 0.6502 GB, free: 11.49 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004844/0.1457, allocations: 16 kB / 0.6502 GB, free: 11.47 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006617/0.1464, allocations: 237.9 kB / 0.6504 GB, free: 11.24 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001754/0.1482, allocations: 0.8516 MB / 0.6513 GB, free: 10.38 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001184/0.1493, allocations: 0.639 MB / 0.6519 GB, free: 9.75 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001418/0.1508, allocations: 1.585 MB / 0.6535 GB, free: 8.16 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004252/0.1512, allocations: 322.4 kB / 0.6538 GB, free: 7.836 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006694/0.1519, allocations: 0.6613 MB / 0.6544 GB, free: 7.172 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007976/0.1527, allocations: 0.8206 MB / 0.6552 GB, free: 6.348 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001504/0.1529, allocations: 120 kB / 0.6553 GB, free: 6.23 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004271/0.1533, allocations: 255.9 kB / 0.6556 GB, free: 5.98 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002755/0.1536, allocations: 338.6 kB / 0.6559 GB, free: 5.648 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005305/0.1541, allocations: 0.6641 MB / 0.6565 GB, free: 4.98 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001567/0.1557, allocations: 1.676 MB / 0.6582 GB, free: 3.297 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1557, allocations: 0 / 0.6582 GB, free: 3.297 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1557, allocations: 0 / 0.6582 GB, free: 3.297 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.376e-05/0.1557, allocations: 0 / 0.6582 GB, free: 3.297 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.008246/0.164, allocations: 2.726 MB / 0.6608 GB, free: 0.5 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.164, allocations: 12.02 kB / 0.6608 GB, free: 500 kB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000135/0.1642, allocations: 126.7 kB / 0.661 GB, free: 364 kB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004742/0.1689, allocations: 0.7757 MB / 0.6617 GB, free: 15.58 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001389/0.1703, allocations: 0.8951 MB / 0.6626 GB, free: 14.63 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002649/0.1706, allocations: 260.2 kB / 0.6628 GB, free: 14.34 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001466/0.1708, allocations: 83.98 kB / 0.6629 GB, free: 14.26 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001983/0.1728, allocations: 1.09 MB / 0.664 GB, free: 13.15 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.189e-05/0.1728, allocations: 3.938 kB / 0.664 GB, free: 13.15 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.499e-05/0.1729, allocations: 28 kB / 0.664 GB, free: 13.12 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.712e-05/0.1729, allocations: 24 kB / 0.664 GB, free: 13.1 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001914/0.1748, allocations: 0.9838 MB / 0.665 GB, free: 12.11 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.006206/0.181, allocations: 3.84 MB / 0.6688 GB, free: 8.09 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006926/0.188, allocations: 2.364 MB / 0.6711 GB, free: 5.629 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001271/0.1893, allocations: 0.6762 MB / 0.6717 GB, free: 4.949 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001036/0.1894, allocations: 16.97 kB / 0.6717 GB, free: 4.934 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001506/0.1909, allocations: 0.8194 MB / 0.6725 GB, free: 4.098 MB / 478.1 MB Notification: Performance of pre-optimization done (n=96): time 3.116e-06/0.1909, allocations: 4 kB / 0.6725 GB, free: 4.094 MB / 478.1 MB Notification: Performance of matching and sorting (n=96): time 0.02709/0.218, allocations: 7.082 MB / 0.6795 GB, free: 12.95 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.012e-05/0.2181, allocations: 119.7 kB / 0.6796 GB, free: 12.81 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001923/0.2201, allocations: 1.087 MB / 0.6806 GB, free: 11.71 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001932/0.2203, allocations: 45.7 kB / 0.6807 GB, free: 11.66 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004342/0.2207, allocations: 0.4936 MB / 0.6812 GB, free: 11.16 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004648/0.2212, allocations: 368.9 kB / 0.6815 GB, free: 10.79 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006993/0.2219, allocations: 295.3 kB / 0.6818 GB, free: 10.5 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.077e-05/0.222, allocations: 305.2 kB / 0.6821 GB, free: 10.2 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001654/0.2237, allocations: 0.7652 MB / 0.6828 GB, free: 9.434 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001751/0.2254, allocations: 0.9304 MB / 0.6837 GB, free: 8.465 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0228/0.2482, allocations: 5.567 MB / 0.6892 GB, free: 2.812 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.106e-05/0.2483, allocations: 0 / 0.6892 GB, free: 2.812 MB / 494.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01357/0.2619, allocations: 4.348 MB / 0.6934 GB, free: 14.44 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.298e-05/0.262, allocations: 55.41 kB / 0.6935 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.695e-05/0.262, allocations: 7.938 kB / 0.6935 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005347/0.2674, allocations: 1.512 MB / 0.695 GB, free: 12.85 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001486/0.2689, allocations: 303.6 kB / 0.6953 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01931/0.2882, allocations: 8.275 MB / 0.7033 GB, free: 4.121 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001985/0.2903, allocations: 203 kB / 0.7035 GB, free: 3.922 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002898/0.2906, allocations: 55.97 kB / 0.7036 GB, free: 3.867 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.0008844/0.2915, allocations: 304.3 kB / 0.7039 GB, free: 3.555 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004031/0.2919, allocations: 135.1 kB / 0.704 GB, free: 3.422 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01257/0.3045, allocations: 3.865 MB / 0.7078 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.578e-05/0.3045, allocations: 12 kB / 0.7078 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.614e-05/0.3045, allocations: 4 kB / 0.7078 GB, free: 15.52 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.57e-05/0.3046, allocations: 3.984 kB / 0.7078 GB, free: 15.51 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.01495/0.3195, allocations: 5.475 MB / 0.7131 GB, free: 9.922 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.864e-06/0.3196, allocations: 0 / 0.7131 GB, free: 9.922 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005846/0.3202, allocations: 103.8 kB / 0.7132 GB, free: 9.82 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0055/0.3257, allocations: 1.586 MB / 0.7148 GB, free: 8.227 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001376/0.3258, allocations: 27.98 kB / 0.7148 GB, free: 8.199 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02032/0.3462, allocations: 9.639 MB / 0.7242 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.3462, allocations: 0 / 0.7242 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01422/0.3605, allocations: 4.743 MB / 0.7289 GB, free: 9.496 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004835/0.361, allocations: 232 kB / 0.7291 GB, free: 9.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003555/0.3614, allocations: 16 kB / 0.7291 GB, free: 9.234 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001418/0.3628, allocations: 107.9 kB / 0.7292 GB, free: 9.129 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007936/0.3636, allocations: 200.7 kB / 0.7294 GB, free: 8.93 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001226/0.3638, allocations: 23.98 kB / 0.7294 GB, free: 8.906 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001314/0.3651, allocations: 0.7312 MB / 0.7301 GB, free: 8.168 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.61e-07/0.3651, allocations: 4 kB / 0.7301 GB, free: 8.164 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00168/0.3668, allocations: 471.7 kB / 0.7306 GB, free: 7.703 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.01464/0.3814, allocations: 5.33 MB / 0.7358 GB, free: 2.324 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006504/0.388, allocations: 2.509 MB / 0.7382 GB, free: 15.77 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/0.388, allocations: 0 / 0.7382 GB, free: 15.77 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004325/0.3924, allocations: 1.594 MB / 0.7398 GB, free: 14.14 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001367/0.3938, allocations: 112.5 kB / 0.7399 GB, free: 14.02 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03908/0.4329, allocations: 16.04 MB / 0.7556 GB, free: 13.76 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008599/0.4338, allocations: 1.124 MB / 0.7567 GB, free: 12.61 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0005422/0.4343, allocations: 116.3 kB / 0.7568 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007404/0.4351, allocations: 471.3 kB / 0.7572 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of SimCode: time 8.01e-07/0.4351, allocations: 3.938 kB / 0.7572 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3824/0.8175, allocations: 34.21 MB / 0.7906 GB, free: 111.7 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.28/14.1, allocations: 13.56 kB / 0.7906 GB, free: 111.7 MB / 0.5606 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_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_TwoAreaOld_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)