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.001565/0.001565, allocations: 108 kB / 15.61 MB, free: 152 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.742/1.742, allocations: 222.9 MB / 239.3 MB, free: 4.637 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.00213/0.00213, allocations: 192.5 kB / 289.6 MB, free: 2.355 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.7549/0.7549, allocations: 91.9 MB / 431.6 MB, free: 9.277 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001864, allocations: 75.89 kB / 0.502 GB, free: 7.66 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6159/0.6178, allocations: 71.27 MB / 0.5716 GB, free: 36.68 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.009313/0.6272, allocations: 6.566 MB / 0.578 GB, free: 32.89 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004959/0.6322, allocations: 1.965 MB / 0.5799 GB, free: 31.5 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007545/0.633, allocations: 18.56 kB / 0.5799 GB, free: 31.5 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009652/0.634, allocations: 237.5 kB / 0.5801 GB, free: 31.37 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002113/0.6362, allocations: 0.801 MB / 0.5809 GB, free: 30.85 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001533/0.6377, allocations: 0.6296 MB / 0.5815 GB, free: 30.54 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002072/0.6398, allocations: 1.579 MB / 0.5831 GB, free: 29.76 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005358/0.6403, allocations: 325.5 kB / 0.5834 GB, free: 29.62 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001198/0.6415, allocations: 0.6467 MB / 0.584 GB, free: 29.31 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001052/0.6426, allocations: 0.8241 MB / 0.5848 GB, free: 28.91 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000217/0.6429, allocations: 121 kB / 0.585 GB, free: 28.91 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005541/0.6434, allocations: 265.1 kB / 0.5852 GB, free: 28.86 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002741/0.6437, allocations: 328.3 kB / 0.5855 GB, free: 28.65 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007891/0.6445, allocations: 0.6665 MB / 0.5862 GB, free: 28.2 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001922/0.6464, allocations: 1.634 MB / 0.5878 GB, free: 27.46 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.6465, allocations: 0 / 0.5878 GB, free: 27.46 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.976e-06/0.6465, allocations: 0 / 0.5878 GB, free: 27.46 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.951e-05/0.6465, allocations: 0 / 0.5878 GB, free: 27.46 MB / 430.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.01027/0.6568, allocations: 2.695 MB / 0.5904 GB, free: 26.19 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.009e-05/0.6569, allocations: 7.281 kB / 0.5904 GB, free: 26.19 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001856/0.6571, allocations: 128.4 kB / 0.5905 GB, free: 26.09 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005559/0.6626, allocations: 0.7796 MB / 0.5913 GB, free: 25.93 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001598/0.6642, allocations: 0.879 MB / 0.5921 GB, free: 25.34 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004664/0.6647, allocations: 257.5 kB / 0.5924 GB, free: 25.12 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000184/0.6649, allocations: 89.56 kB / 0.5925 GB, free: 25.09 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00245/0.6674, allocations: 1.09 MB / 0.5935 GB, free: 24.67 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.085e-05/0.6674, allocations: 0 / 0.5935 GB, free: 24.67 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001014/0.6675, allocations: 31.09 kB / 0.5936 GB, free: 24.64 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.569e-05/0.6676, allocations: 18.31 kB / 0.5936 GB, free: 24.64 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002639/0.6702, allocations: 0.9881 MB / 0.5946 GB, free: 24.31 MB / 430.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.008128/0.6784, allocations: 3.853 MB / 0.5983 GB, free: 22.1 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008684/0.6871, allocations: 2.366 MB / 0.6006 GB, free: 21.27 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001634/0.6887, allocations: 0.6764 MB / 0.6013 GB, free: 21 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001056/0.6888, allocations: 20.09 kB / 0.6013 GB, free: 21 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001908/0.6908, allocations: 0.8176 MB / 0.6021 GB, free: 20.68 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 4.518e-06/0.6908, allocations: 4 kB / 0.6021 GB, free: 20.68 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.03352/0.7243, allocations: 7.081 MB / 0.609 GB, free: 19.29 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.342e-05/0.7244, allocations: 118.4 kB / 0.6091 GB, free: 19.16 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002644/0.7271, allocations: 1.082 MB / 0.6102 GB, free: 18.71 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002293/0.7273, allocations: 42.47 kB / 0.6102 GB, free: 18.67 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000519/0.7279, allocations: 497.9 kB / 0.6107 GB, free: 18.28 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005078/0.7284, allocations: 356.9 kB / 0.611 GB, free: 18 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006431/0.729, allocations: 287.3 kB / 0.6113 GB, free: 17.87 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.398e-05/0.7291, allocations: 305.2 kB / 0.6116 GB, free: 17.57 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001887/0.731, allocations: 0.7642 MB / 0.6124 GB, free: 17.29 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001851/0.7329, allocations: 0.9428 MB / 0.6133 GB, free: 16.78 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02498/0.7579, allocations: 5.59 MB / 0.6187 GB, free: 13.73 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-05/0.7581, allocations: 0 / 0.6187 GB, free: 13.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01327/0.7714, allocations: 4.332 MB / 0.623 GB, free: 9.375 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.074e-05/0.7715, allocations: 63.39 kB / 0.623 GB, free: 9.301 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/0.7715, allocations: 4 kB / 0.623 GB, free: 9.297 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005326/0.7768, allocations: 1.509 MB / 0.6245 GB, free: 7.785 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001464/0.7783, allocations: 299.6 kB / 0.6248 GB, free: 7.492 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02082/0.7991, allocations: 8.28 MB / 0.6329 GB, free: 15.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003035/0.8023, allocations: 202.8 kB / 0.6331 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005757/0.8029, allocations: 55.97 kB / 0.6331 GB, free: 14.8 MB / 446.1 MB 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.001564/0.8045, allocations: 300.3 kB / 0.6334 GB, free: 14.49 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006808/0.8052, allocations: 138.3 kB / 0.6335 GB, free: 14.36 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01463/0.8198, allocations: 3.869 MB / 0.6373 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-05/0.82, allocations: 8 kB / 0.6373 GB, free: 10.45 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-05/0.82, allocations: 11.94 kB / 0.6373 GB, free: 10.44 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.399e-05/0.8201, allocations: 3.984 kB / 0.6373 GB, free: 10.43 MB / 446.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 postOpt removeSimpleEquations (simulation): time 0.01819/0.8383, allocations: 5.461 MB / 0.6427 GB, free: 4.859 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.526e-05/0.8384, allocations: 0 / 0.6427 GB, free: 4.859 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006909/0.8391, allocations: 107.9 kB / 0.6428 GB, free: 4.754 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006556/0.8457, allocations: 1.594 MB / 0.6443 GB, free: 3.152 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002218/0.8459, allocations: 23.98 kB / 0.6444 GB, free: 3.129 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02452/0.8705, allocations: 9.638 MB / 0.6538 GB, free: 9.199 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.196e-05/0.8705, allocations: 4 kB / 0.6538 GB, free: 9.195 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01671/0.8873, allocations: 4.729 MB / 0.6584 GB, free: 4.434 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007526/0.8881, allocations: 219.3 kB / 0.6586 GB, free: 4.199 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004654/0.8886, allocations: 20.09 kB / 0.6586 GB, free: 4.18 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001805/0.8904, allocations: 111.8 kB / 0.6587 GB, free: 4.07 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009131/0.8913, allocations: 192.7 kB / 0.6589 GB, free: 3.879 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000142/0.8915, allocations: 31.98 kB / 0.6589 GB, free: 3.848 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002116/0.8936, allocations: 0.7312 MB / 0.6597 GB, free: 3.109 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.8937, allocations: 0 / 0.6597 GB, free: 3.109 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002815/0.8965, allocations: 467.5 kB / 0.6601 GB, free: 2.652 MB / 462.1 MB 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.01756/0.9141, allocations: 5.325 MB / 0.6653 GB, free: 13.28 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008655/0.9228, allocations: 2.529 MB / 0.6678 GB, free: 10.72 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.798e-06/0.9228, allocations: 4 kB / 0.6678 GB, free: 10.71 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005494/0.9283, allocations: 1.594 MB / 0.6693 GB, free: 9.078 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002136/0.9305, allocations: 129.7 kB / 0.6695 GB, free: 8.961 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05021/0.9808, allocations: 16.75 MB / 0.6858 GB, free: 7.75 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001122/0.982, allocations: 1.124 MB / 0.6869 GB, free: 6.598 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0009414/0.983, allocations: 124 kB / 0.687 GB, free: 6.473 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009163/0.9839, allocations: 471.3 kB / 0.6875 GB, free: 6.016 MB / 494.1 MB Notification: Performance of SimCode: time 8.72e-07/0.9839, allocations: 0 / 0.6875 GB, free: 6.016 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1099/1.094, allocations: 33.79 MB / 0.7205 GB, free: 4.402 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.66/15.75, allocations: 8.672 kB / 0.7205 GB, free: 4.395 MB / 0.5137 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)