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.005871/0.005871, allocations: 98.8 kB / 15.73 MB, free: 6.047 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.386/1.386, allocations: 222.9 MB / 239.4 MB, free: 4.562 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.001377/0.001377, allocations: 188.4 kB / 289.7 MB, free: 2.266 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.538/0.538, allocations: 91.91 MB / 431.8 MB, free: 9.199 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 82 kB / 0.5723 GB, free: 33.75 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1307, allocations: 71.28 MB / 0.6419 GB, free: 4.102 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.006722/0.1375, allocations: 6.57 MB / 0.6483 GB, free: 13.5 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003871/0.1414, allocations: 1.97 MB / 0.6502 GB, free: 11.52 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006654/0.1421, allocations: 12 kB / 0.6502 GB, free: 11.51 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007236/0.1428, allocations: 242 kB / 0.6505 GB, free: 11.27 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002114/0.145, allocations: 0.8444 MB / 0.6513 GB, free: 10.43 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001387/0.1464, allocations: 0.6366 MB / 0.6519 GB, free: 9.797 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001843/0.1482, allocations: 1.588 MB / 0.6535 GB, free: 8.203 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005131/0.1487, allocations: 330.4 kB / 0.6538 GB, free: 7.871 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009139/0.1497, allocations: 0.6535 MB / 0.6544 GB, free: 7.215 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009961/0.1507, allocations: 0.8206 MB / 0.6552 GB, free: 6.391 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002194/0.1509, allocations: 124 kB / 0.6553 GB, free: 6.27 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000582/0.1515, allocations: 263.8 kB / 0.6556 GB, free: 6.012 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003156/0.1518, allocations: 330.6 kB / 0.6559 GB, free: 5.688 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006267/0.1525, allocations: 0.6641 MB / 0.6566 GB, free: 5.02 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001917/0.1544, allocations: 1.673 MB / 0.6582 GB, free: 3.34 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.468e-06/0.1544, allocations: 4 kB / 0.6582 GB, free: 3.336 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1544, allocations: 0 / 0.6582 GB, free: 3.336 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.217e-05/0.1544, allocations: 0 / 0.6582 GB, free: 3.336 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.008758/0.1632, allocations: 2.733 MB / 0.6609 GB, free: 0.5312 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.1633, allocations: 8.031 kB / 0.6609 GB, free: 0.5234 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000158/0.1634, allocations: 122.7 kB / 0.661 GB, free: 404 kB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005188/0.1686, allocations: 0.7796 MB / 0.6617 GB, free: 15.61 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001772/0.1704, allocations: 0.899 MB / 0.6626 GB, free: 14.66 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002947/0.1707, allocations: 256.1 kB / 0.6629 GB, free: 14.38 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002005/0.1709, allocations: 83.98 kB / 0.6629 GB, free: 14.29 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002266/0.1732, allocations: 1.083 MB / 0.664 GB, free: 13.2 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/0.1733, allocations: 0 / 0.664 GB, free: 13.2 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.533e-05/0.1734, allocations: 32 kB / 0.664 GB, free: 13.16 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.816e-05/0.1734, allocations: 24 kB / 0.6641 GB, free: 13.14 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002124/0.1755, allocations: 0.9877 MB / 0.665 GB, free: 12.15 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.007355/0.1829, allocations: 3.84 MB / 0.6688 GB, free: 8.129 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007416/0.1903, allocations: 2.365 MB / 0.6711 GB, free: 5.668 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001496/0.1919, allocations: 0.6761 MB / 0.6717 GB, free: 4.988 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001193/0.192, allocations: 24.97 kB / 0.6718 GB, free: 4.965 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00167/0.1937, allocations: 0.8138 MB / 0.6726 GB, free: 4.133 MB / 478.1 MB Notification: Performance of pre-optimization done (n=96): time 3.787e-06/0.1937, allocations: 4 kB / 0.6726 GB, free: 4.129 MB / 478.1 MB Notification: Performance of matching and sorting (n=96): time 0.02843/0.2221, allocations: 7.086 MB / 0.6795 GB, free: 12.98 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.366e-05/0.2223, allocations: 119.8 kB / 0.6796 GB, free: 12.84 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001848/0.2241, allocations: 1.083 MB / 0.6807 GB, free: 11.74 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002189/0.2244, allocations: 45.69 kB / 0.6807 GB, free: 11.69 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004262/0.2248, allocations: 0.4897 MB / 0.6812 GB, free: 11.2 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004929/0.2253, allocations: 368.9 kB / 0.6815 GB, free: 10.83 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006716/0.226, allocations: 287.5 kB / 0.6818 GB, free: 10.55 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.2261, allocations: 309.1 kB / 0.6821 GB, free: 10.24 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001772/0.2279, allocations: 0.7613 MB / 0.6828 GB, free: 9.48 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001807/0.2297, allocations: 0.9342 MB / 0.6838 GB, free: 8.508 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02343/0.2532, allocations: 5.567 MB / 0.6892 GB, free: 2.855 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.059e-05/0.2532, allocations: 0 / 0.6892 GB, free: 2.855 MB / 494.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01396/0.2672, allocations: 4.344 MB / 0.6934 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.668e-05/0.2673, allocations: 63.39 kB / 0.6935 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.2673, allocations: 7.938 kB / 0.6935 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00558/0.2729, allocations: 1.516 MB / 0.695 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00148/0.2744, allocations: 299.6 kB / 0.6953 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0202/0.2946, allocations: 8.273 MB / 0.7033 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001882/0.2965, allocations: 207 kB / 0.7035 GB, free: 3.957 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002263/0.2968, allocations: 59.97 kB / 0.7036 GB, free: 3.898 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.0007031/0.2975, allocations: 300.3 kB / 0.7039 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002824/0.2978, allocations: 135.1 kB / 0.704 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01294/0.3107, allocations: 3.865 MB / 0.7078 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-05/0.3108, allocations: 8 kB / 0.7078 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.521e-05/0.3108, allocations: 8 kB / 0.7078 GB, free: 15.55 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-05/0.3109, allocations: 7.922 kB / 0.7078 GB, free: 15.54 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.01562/0.3265, allocations: 5.467 MB / 0.7132 GB, free: 9.961 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.484e-05/0.3265, allocations: 4 kB / 0.7132 GB, free: 9.957 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006882/0.3272, allocations: 95.89 kB / 0.7132 GB, free: 9.863 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005964/0.3332, allocations: 1.59 MB / 0.7148 GB, free: 8.266 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002453/0.3335, allocations: 31.98 kB / 0.7148 GB, free: 8.234 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02142/0.3549, allocations: 9.638 MB / 0.7242 GB, free: 14.31 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.661e-06/0.355, allocations: 7.938 kB / 0.7242 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01489/0.3699, allocations: 4.739 MB / 0.7289 GB, free: 9.531 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004628/0.3704, allocations: 228 kB / 0.7291 GB, free: 9.289 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002894/0.3707, allocations: 16 kB / 0.7291 GB, free: 9.273 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001263/0.3719, allocations: 116 kB / 0.7292 GB, free: 9.16 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000605/0.3726, allocations: 196.7 kB / 0.7294 GB, free: 8.965 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/0.3727, allocations: 27.94 kB / 0.7294 GB, free: 8.938 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001183/0.3739, allocations: 0.7313 MB / 0.7301 GB, free: 8.199 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3739, allocations: 0 / 0.7301 GB, free: 8.199 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001539/0.3754, allocations: 471.7 kB / 0.7306 GB, free: 7.738 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.0152/0.3906, allocations: 5.326 MB / 0.7358 GB, free: 2.367 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00687/0.3976, allocations: 2.505 MB / 0.7382 GB, free: 15.82 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/0.3976, allocations: 0 / 0.7382 GB, free: 15.82 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004739/0.4023, allocations: 1.59 MB / 0.7398 GB, free: 14.19 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001219/0.4036, allocations: 126.6 kB / 0.7399 GB, free: 14.07 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04012/0.4437, allocations: 16.03 MB / 0.7556 GB, free: 13.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008564/0.4446, allocations: 1.128 MB / 0.7567 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0006676/0.4453, allocations: 120 kB / 0.7568 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007346/0.4461, allocations: 467.3 kB / 0.7572 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of SimCode: time 4.51e-07/0.4461, allocations: 0 / 0.7572 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.309/0.7551, allocations: 34.24 MB / 0.7907 GB, free: 112.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.23/14.98, allocations: 12.53 kB / 0.7907 GB, free: 112.4 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)