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.001497/0.001497, allocations: 108.6 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.00153/0.00153, allocations: 188.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.5068/0.5068, allocations: 91.97 MB / 431.8 MB, free: 9.113 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002149/0.002149, allocations: 76.75 kB / 0.5723 GB, free: 34.11 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.13, allocations: 71.3 MB / 0.642 GB, free: 4.121 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.007547/0.1376, allocations: 6.574 MB / 0.6484 GB, free: 13.52 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003279/0.1409, allocations: 1.97 MB / 0.6503 GB, free: 11.54 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000322/0.1412, allocations: 12 kB / 0.6503 GB, free: 11.53 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005937/0.1418, allocations: 234 kB / 0.6505 GB, free: 11.3 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001642/0.1435, allocations: 0.8023 MB / 0.6513 GB, free: 10.5 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001169/0.1446, allocations: 0.6281 MB / 0.6519 GB, free: 9.875 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001576/0.1462, allocations: 1.588 MB / 0.6535 GB, free: 8.281 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004568/0.1467, allocations: 326.7 kB / 0.6538 GB, free: 7.953 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007591/0.1474, allocations: 0.6496 MB / 0.6544 GB, free: 7.301 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009395/0.1484, allocations: 0.8284 MB / 0.6552 GB, free: 6.469 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001756/0.1486, allocations: 120 kB / 0.6554 GB, free: 6.352 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004505/0.149, allocations: 259.9 kB / 0.6556 GB, free: 6.098 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002962/0.1493, allocations: 326.6 kB / 0.6559 GB, free: 5.777 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005778/0.1499, allocations: 0.6719 MB / 0.6566 GB, free: 5.102 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001638/0.1516, allocations: 1.669 MB / 0.6582 GB, free: 3.426 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.1516, allocations: 0 / 0.6582 GB, free: 3.426 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.1516, allocations: 0 / 0.6582 GB, free: 3.426 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.1516, allocations: 0 / 0.6582 GB, free: 3.426 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.008275/0.1599, allocations: 2.733 MB / 0.6609 GB, free: 0.6211 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.1599, allocations: 11.97 kB / 0.6609 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001626/0.1601, allocations: 130.6 kB / 0.661 GB, free: 484 kB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004784/0.1649, allocations: 0.7757 MB / 0.6618 GB, free: 15.7 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001405/0.1663, allocations: 0.8951 MB / 0.6626 GB, free: 14.75 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003033/0.1666, allocations: 260.2 kB / 0.6629 GB, free: 14.46 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001535/0.1668, allocations: 80 kB / 0.663 GB, free: 14.38 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002178/0.169, allocations: 1.09 MB / 0.664 GB, free: 13.27 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.169, allocations: 4 kB / 0.664 GB, free: 13.27 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.969e-05/0.1691, allocations: 28 kB / 0.6641 GB, free: 13.24 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.829e-05/0.1691, allocations: 20 kB / 0.6641 GB, free: 13.22 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002093/0.1712, allocations: 0.9916 MB / 0.665 GB, free: 12.23 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.006688/0.1779, allocations: 3.832 MB / 0.6688 GB, free: 8.215 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007414/0.1854, allocations: 2.373 MB / 0.6711 GB, free: 5.746 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001371/0.1867, allocations: 0.6762 MB / 0.6718 GB, free: 5.066 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001066/0.1869, allocations: 12.98 kB / 0.6718 GB, free: 5.055 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00162/0.1885, allocations: 0.8197 MB / 0.6726 GB, free: 4.219 MB / 478.1 MB Notification: Performance of pre-optimization done (n=96): time 2.735e-06/0.1885, allocations: 0 / 0.6726 GB, free: 4.219 MB / 478.1 MB Notification: Performance of matching and sorting (n=96): time 0.02797/0.2165, allocations: 7.09 MB / 0.6795 GB, free: 13.07 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.017e-05/0.2166, allocations: 115.8 kB / 0.6796 GB, free: 12.93 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001612/0.2182, allocations: 1.083 MB / 0.6807 GB, free: 11.83 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001148/0.2183, allocations: 45.7 kB / 0.6807 GB, free: 11.78 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003976/0.2187, allocations: 0.4975 MB / 0.6812 GB, free: 11.28 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003691/0.2191, allocations: 364.9 kB / 0.6815 GB, free: 10.92 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004923/0.2196, allocations: 295.5 kB / 0.6818 GB, free: 10.62 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.2197, allocations: 301.1 kB / 0.6821 GB, free: 10.33 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001578/0.2213, allocations: 0.7613 MB / 0.6829 GB, free: 9.566 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001746/0.2231, allocations: 0.9381 MB / 0.6838 GB, free: 8.59 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02243/0.2455, allocations: 5.571 MB / 0.6892 GB, free: 2.934 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/0.2455, allocations: 0 / 0.6892 GB, free: 2.934 MB / 494.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01333/0.2589, allocations: 4.34 MB / 0.6935 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.099e-05/0.2589, allocations: 59.39 kB / 0.6935 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.351e-05/0.259, allocations: 4 kB / 0.6935 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005382/0.2644, allocations: 1.516 MB / 0.695 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001294/0.2657, allocations: 295.6 kB / 0.6953 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01948/0.2851, allocations: 8.278 MB / 0.7034 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00162/0.2868, allocations: 203 kB / 0.7036 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001278/0.2869, allocations: 55.97 kB / 0.7036 GB, free: 3.996 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.0005622/0.2875, allocations: 314.5 kB / 0.7039 GB, free: 3.676 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002027/0.2877, allocations: 139.1 kB / 0.704 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01276/0.3005, allocations: 3.865 MB / 0.7078 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.064e-05/0.3005, allocations: 12 kB / 0.7078 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.3005, allocations: 4 kB / 0.7078 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.749e-05/0.3005, allocations: 7.969 kB / 0.7078 GB, free: 15.62 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.0144/0.3149, allocations: 5.467 MB / 0.7132 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.315, allocations: 4.031 kB / 0.7132 GB, free: 10.04 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005124/0.3155, allocations: 103.8 kB / 0.7133 GB, free: 9.934 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005477/0.321, allocations: 1.598 MB / 0.7148 GB, free: 8.328 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-05/0.3211, allocations: 20 kB / 0.7149 GB, free: 8.309 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02029/0.3413, allocations: 9.635 MB / 0.7243 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3414, allocations: 0 / 0.7243 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01413/0.3555, allocations: 4.743 MB / 0.7289 GB, free: 9.609 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002942/0.3558, allocations: 236 kB / 0.7291 GB, free: 9.359 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001529/0.356, allocations: 16 kB / 0.7291 GB, free: 9.344 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.357, allocations: 107.9 kB / 0.7292 GB, free: 9.238 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005044/0.3575, allocations: 200.7 kB / 0.7294 GB, free: 9.039 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.579e-05/0.3576, allocations: 20 kB / 0.7295 GB, free: 9.02 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00105/0.3587, allocations: 0.7313 MB / 0.7302 GB, free: 8.281 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3587, allocations: 0 / 0.7302 GB, free: 8.281 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001214/0.3599, allocations: 479.6 kB / 0.7306 GB, free: 7.812 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.01457/0.3745, allocations: 5.316 MB / 0.7358 GB, free: 2.445 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006044/0.3805, allocations: 2.509 MB / 0.7383 GB, free: 15.9 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.3806, allocations: 192 / 0.7383 GB, free: 15.9 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004164/0.3847, allocations: 1.593 MB / 0.7398 GB, free: 14.26 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007081/0.3854, allocations: 119.1 kB / 0.7399 GB, free: 14.14 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03768/0.4231, allocations: 16.05 MB / 0.7556 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008356/0.424, allocations: 1.12 MB / 0.7567 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0004873/0.4245, allocations: 120 kB / 0.7568 GB, free: 12.6 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006738/0.4252, allocations: 471.3 kB / 0.7573 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of SimCode: time 7.12e-07/0.4252, allocations: 0 / 0.7573 GB, free: 12.14 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3112/0.7365, allocations: 34.21 MB / 0.7907 GB, free: 112 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.21/14.94, allocations: 9.734 kB / 0.7907 GB, free: 112 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)