Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.TwoAreaOld.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_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.007216/0.007216, allocations: 97.58 kB / 15.73 MB, free: 5.988 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.245/1.245, allocations: 222.9 MB / 239.4 MB, free: 4.566 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.001212/0.001212, allocations: 184.5 kB / 289.7 MB, free: 2.281 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4653/0.4653, allocations: 91.9 MB / 431.8 MB, free: 9.195 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 83.92 kB / 0.5723 GB, free: 33.69 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1141, allocations: 71.28 MB / 0.6419 GB, free: 4.105 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII): time 0.006245/0.1204, allocations: 6.718 MB / 0.6484 GB, free: 13.36 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.003493/0.1239, allocations: 2.017 MB / 0.6504 GB, free: 11.33 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004488/0.1244, allocations: 12 kB / 0.6504 GB, free: 11.32 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005889/0.125, allocations: 241.9 kB / 0.6506 GB, free: 11.08 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001705/0.1267, allocations: 0.8721 MB / 0.6515 GB, free: 10.21 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001144/0.1279, allocations: 0.6423 MB / 0.6521 GB, free: 9.574 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001403/0.1293, allocations: 1.679 MB / 0.6538 GB, free: 7.891 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004056/0.1297, allocations: 330.5 kB / 0.6541 GB, free: 7.559 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006906/0.1304, allocations: 0.6847 MB / 0.6547 GB, free: 6.871 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008079/0.1312, allocations: 0.8868 MB / 0.6556 GB, free: 5.98 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001888/0.1314, allocations: 132 kB / 0.6557 GB, free: 5.852 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004367/0.1319, allocations: 263.9 kB / 0.656 GB, free: 5.594 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002607/0.1321, allocations: 350.5 kB / 0.6563 GB, free: 5.25 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005044/0.1326, allocations: 0.6991 MB / 0.657 GB, free: 4.547 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001495/0.1341, allocations: 1.739 MB / 0.6587 GB, free: 2.801 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1342, allocations: 0 / 0.6587 GB, free: 2.801 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1342, allocations: 0 / 0.6587 GB, free: 2.801 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.916e-05/0.1342, allocations: 0 / 0.6587 GB, free: 2.801 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.008276/0.1425, allocations: 2.831 MB / 0.6615 GB, free: 15.9 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.1425, allocations: 12.03 kB / 0.6615 GB, free: 15.89 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001364/0.1427, allocations: 122.7 kB / 0.6616 GB, free: 15.76 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004712/0.1474, allocations: 0.7874 MB / 0.6624 GB, free: 14.97 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00143/0.1488, allocations: 0.9345 MB / 0.6633 GB, free: 13.98 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002526/0.1491, allocations: 260.1 kB / 0.6635 GB, free: 13.69 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001574/0.1493, allocations: 91.89 kB / 0.6636 GB, free: 13.6 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00198/0.1512, allocations: 1.11 MB / 0.6647 GB, free: 12.48 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.812e-05/0.1513, allocations: 4 kB / 0.6647 GB, free: 12.47 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.739e-05/0.1514, allocations: 31.98 kB / 0.6647 GB, free: 12.44 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.698e-05/0.1514, allocations: 20 kB / 0.6648 GB, free: 12.42 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001893/0.1533, allocations: 1.003 MB / 0.6657 GB, free: 11.42 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.005922/0.1592, allocations: 3.903 MB / 0.6695 GB, free: 7.336 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00695/0.1662, allocations: 2.399 MB / 0.6719 GB, free: 4.84 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00131/0.1675, allocations: 0.6995 MB / 0.6726 GB, free: 4.137 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001087/0.1676, allocations: 20.92 kB / 0.6726 GB, free: 4.117 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001506/0.1692, allocations: 0.8354 MB / 0.6734 GB, free: 3.266 MB / 478.1 MB Notification: Performance of pre-optimization done (n=98): time 2.755e-06/0.1692, allocations: 0 / 0.6734 GB, free: 3.266 MB / 478.1 MB Notification: Performance of matching and sorting (n=98): time 0.02671/0.1959, allocations: 7.09 MB / 0.6803 GB, free: 12.11 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.341e-05/0.196, allocations: 119.8 kB / 0.6804 GB, free: 11.97 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001516/0.1975, allocations: 1.139 MB / 0.6816 GB, free: 10.82 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001493/0.1977, allocations: 49.64 kB / 0.6816 GB, free: 10.76 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003251/0.198, allocations: 0.5054 MB / 0.6821 GB, free: 10.25 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003254/0.1983, allocations: 384.8 kB / 0.6825 GB, free: 9.871 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004792/0.1988, allocations: 295.5 kB / 0.6827 GB, free: 9.578 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.854e-05/0.1989, allocations: 301.1 kB / 0.683 GB, free: 9.281 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001558/0.2005, allocations: 0.8043 MB / 0.6838 GB, free: 8.477 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001652/0.2021, allocations: 0.9655 MB / 0.6848 GB, free: 7.473 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02341/0.2256, allocations: 5.926 MB / 0.6905 GB, free: 1.461 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.858e-06/0.2256, allocations: 4 kB / 0.6905 GB, free: 1.457 MB / 494.1 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.01316/0.2388, allocations: 4.517 MB / 0.695 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.963e-05/0.2389, allocations: 55.41 kB / 0.695 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.611e-05/0.2389, allocations: 4 kB / 0.695 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005916/0.2448, allocations: 1.658 MB / 0.6966 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001441/0.2463, allocations: 299.6 kB / 0.6969 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01928/0.2656, allocations: 8.628 MB / 0.7053 GB, free: 2.105 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001887/0.2675, allocations: 215.1 kB / 0.7056 GB, free: 1.895 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001439/0.2677, allocations: 59.97 kB / 0.7056 GB, free: 1.836 MB / 0.4981 GB Warning: Assuming fixed start value for the following 4 variables: order6.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.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 order6.delta:VARIABLE(flow=false start = order6.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 (171): * Single equations (assignments): 168 * 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 {(20,14,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005676/0.2682, allocations: 306.7 kB / 0.7059 GB, free: 1.52 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002029/0.2684, allocations: 131.2 kB / 0.706 GB, free: 1.391 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01179/0.2802, allocations: 3.928 MB / 0.7099 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.128e-05/0.2803, allocations: 12 kB / 0.7099 GB, free: 13.42 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.455e-06/0.2803, allocations: 4 kB / 0.7099 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/0.2803, allocations: 7.984 kB / 0.7099 GB, free: 13.41 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.01365/0.294, allocations: 5.55 MB / 0.7153 GB, free: 7.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.342e-06/0.294, allocations: 0 / 0.7153 GB, free: 7.75 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006222/0.2946, allocations: 99.89 kB / 0.7154 GB, free: 7.652 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005241/0.2999, allocations: 1.603 MB / 0.717 GB, free: 6.043 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001244/0.3, allocations: 23.98 kB / 0.717 GB, free: 6.02 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01891/0.3189, allocations: 9.635 MB / 0.7264 GB, free: 12.09 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.319, allocations: 4.234 kB / 0.7264 GB, free: 12.09 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01364/0.3326, allocations: 4.818 MB / 0.7311 GB, free: 7.242 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004917/0.3331, allocations: 232 kB / 0.7313 GB, free: 6.996 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001644/0.3333, allocations: 20 kB / 0.7313 GB, free: 6.977 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001186/0.3345, allocations: 115.9 kB / 0.7315 GB, free: 6.863 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005715/0.3351, allocations: 196.7 kB / 0.7316 GB, free: 6.672 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.658e-05/0.3352, allocations: 24 kB / 0.7317 GB, free: 6.648 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001074/0.3363, allocations: 0.7713 MB / 0.7324 GB, free: 5.871 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3363, allocations: 4 kB / 0.7324 GB, free: 5.867 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.00134/0.3376, allocations: 499.5 kB / 0.7329 GB, free: 5.379 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (order2.delta,order2.w,order6.delta,order6.w,order6.e1q,order6.e1d,order6.e2q,order6.e2d,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 (66): * Single equations (assignments): 63 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01392/0.3515, allocations: 5.395 MB / 0.7382 GB, free: 15.93 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006369/0.3579, allocations: 2.632 MB / 0.7407 GB, free: 13.26 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.358, allocations: 0.75 kB / 0.7407 GB, free: 13.26 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004073/0.362, allocations: 1.626 MB / 0.7423 GB, free: 11.6 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009381/0.363, allocations: 115.7 kB / 0.7424 GB, free: 11.48 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03689/0.3999, allocations: 16.81 MB / 0.7589 GB, free: 10.45 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006214/0.4006, allocations: 1.132 MB / 0.76 GB, free: 9.281 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0005002/0.4011, allocations: 120.3 kB / 0.7601 GB, free: 9.16 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005893/0.4017, allocations: 495.3 kB / 0.7606 GB, free: 8.676 MB / 0.5606 GB Notification: Performance of SimCode: time 8.92e-07/0.4017, allocations: 0 / 0.7606 GB, free: 8.676 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3263/0.7279, allocations: 35.59 MB / 0.7953 GB, free: 107.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/14.13, allocations: 7.578 kB / 0.7953 GB, free: 107.3 MB / 0.5606 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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_TwoAreaOld_SixthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe 2>&1)