Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.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.TwoArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_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.005784/0.005784, allocations: 103.7 kB / 15.74 MB, free: 6.449 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.295/1.295, allocations: 222.9 MB / 239.4 MB, free: 4.496 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.00147/0.00147, allocations: 188.5 kB / 289.7 MB, free: 2.211 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4851/0.4851, allocations: 91.9 MB / 431.8 MB, free: 9.137 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 76.61 kB / 0.5724 GB, free: 33.64 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1146, allocations: 71.29 MB / 0.642 GB, free: 3.941 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII): time 0.01841/0.133, allocations: 21.83 MB / 0.6633 GB, free: 14.02 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01064/0.1437, allocations: 4.857 MB / 0.6681 GB, free: 9.141 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003711/0.1475, allocations: 47.94 kB / 0.6681 GB, free: 9.094 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002553/0.15, allocations: 0.8789 MB / 0.669 GB, free: 8.207 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007193/0.1573, allocations: 2.279 MB / 0.6712 GB, free: 5.918 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005225/0.1625, allocations: 2.062 MB / 0.6732 GB, free: 3.887 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.008117/0.1707, allocations: 5.712 MB / 0.6788 GB, free: 14.15 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002497/0.1732, allocations: 1.329 MB / 0.6801 GB, free: 12.77 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003528/0.1767, allocations: 2.322 MB / 0.6823 GB, free: 10.44 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004063/0.1808, allocations: 2.939 MB / 0.6852 GB, free: 7.484 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001492/0.1823, allocations: 436 kB / 0.6856 GB, free: 7.059 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002047/0.1844, allocations: 0.5741 MB / 0.6862 GB, free: 6.484 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001192/0.1856, allocations: 1.143 MB / 0.6873 GB, free: 5.336 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002798/0.1884, allocations: 2.614 MB / 0.6899 GB, free: 2.707 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006769/0.1952, allocations: 6.246 MB / 0.696 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1952, allocations: 0 / 0.696 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.703e-06/0.1952, allocations: 0 / 0.696 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001705/0.1954, allocations: 0 / 0.696 GB, free: 12.43 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 893 * Number of variables: 893 Notification: Performance of Generate backend data structure: time 0.02906/0.2245, allocations: 9.31 MB / 0.705 GB, free: 3.023 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.2245, allocations: 12.02 kB / 0.7051 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006047/0.2251, allocations: 488.8 kB / 0.7055 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02574/0.2509, allocations: 4.043 MB / 0.7095 GB, free: 14.47 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005713/0.2566, allocations: 2.685 MB / 0.7121 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001009/0.2577, allocations: 0.9573 MB / 0.713 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001168/0.2589, allocations: 352 kB / 0.7134 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009717/0.2686, allocations: 4.727 MB / 0.718 GB, free: 5.512 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.803e-05/0.2687, allocations: 0 / 0.718 GB, free: 5.512 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000364/0.2691, allocations: 140 kB / 0.7181 GB, free: 5.375 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.757e-05/0.2691, allocations: 84 kB / 0.7182 GB, free: 5.293 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008454/0.2776, allocations: 4.248 MB / 0.7223 GB, free: 1.039 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 preOpt removeSimpleEquations (simulation): time 0.03303/0.3106, allocations: 18.25 MB / 0.7402 GB, free: 13.61 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01216/0.3228, allocations: 5.004 MB / 0.7451 GB, free: 8.512 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006048/0.3289, allocations: 2.783 MB / 0.7478 GB, free: 5.719 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005164/0.3295, allocations: 66.83 kB / 0.7478 GB, free: 5.656 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006599/0.3361, allocations: 3.177 MB / 0.7509 GB, free: 2.438 MB / 0.545 GB Notification: Performance of pre-optimization done (n=383): time 5.49e-06/0.3361, allocations: 0 / 0.7509 GB, free: 2.438 MB / 0.545 GB Notification: Performance of matching and sorting (n=383): time 0.5356/0.8717, allocations: 68.06 MB / 0.8174 GB, free: 82.74 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.135e-05/0.8719, allocations: 148.9 kB / 0.8175 GB, free: 82.57 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004422/0.8763, allocations: 3.219 MB / 0.8207 GB, free: 80.21 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009493/0.8773, allocations: 87.64 kB / 0.8208 GB, free: 80.16 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00113/0.8784, allocations: 1.996 MB / 0.8227 GB, free: 78.94 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001735/0.8801, allocations: 1.384 MB / 0.8241 GB, free: 77.76 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001334/0.8815, allocations: 0.6706 MB / 0.8247 GB, free: 77.08 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.82e-05/0.8815, allocations: 309.1 kB / 0.825 GB, free: 76.77 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004804/0.8864, allocations: 2.581 MB / 0.8275 GB, free: 74.18 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005185/0.8916, allocations: 3.21 MB / 0.8307 GB, free: 70.75 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06218/0.9538, allocations: 18.79 MB / 0.849 GB, free: 51.71 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.471e-05/0.9538, allocations: 4 kB / 0.849 GB, free: 51.71 MB / 0.5606 GB Notification: Performance of matching and sorting (n=538) (initialization): time 0.0499/1.004, allocations: 17.26 MB / 0.8659 GB, free: 34.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.134e-05/1.004, allocations: 67.41 kB / 0.866 GB, free: 34.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.236e-05/1.004, allocations: 12 kB / 0.866 GB, free: 34.31 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02297/1.027, allocations: 7.157 MB / 0.873 GB, free: 27.14 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003225/1.03, allocations: 0.667 MB / 0.8736 GB, free: 26.48 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07756/1.108, allocations: 33.33 MB / 0.9062 GB, free: 9.004 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005613/1.113, allocations: 0.6374 MB / 0.9068 GB, free: 8.449 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007928/1.114, allocations: 151.8 kB / 0.9069 GB, free: 8.305 MB / 0.5762 GB Warning: Assuming fixed start value for the following 5 variables: order4.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3.e1q:VARIABLE(start = order3.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (403): * Single equations (assignments): 400 * 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 {(92,44,5.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001916/1.116, allocations: 0.6694 MB / 0.9076 GB, free: 7.633 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001109/1.117, allocations: 481.4 kB / 0.908 GB, free: 7.16 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05359/1.171, allocations: 16.85 MB / 0.9245 GB, free: 6.246 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.644e-05/1.171, allocations: 36 kB / 0.9245 GB, free: 6.211 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.855e-05/1.171, allocations: 31.94 kB / 0.9246 GB, free: 6.18 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.532e-05/1.171, allocations: 21.67 kB / 0.9246 GB, free: 6.16 MB / 0.5919 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.05985/1.231, allocations: 21.84 MB / 0.9459 GB, free: 300 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.296e-05/1.231, allocations: 0 / 0.9459 GB, free: 300 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002263/1.233, allocations: 387.5 kB / 0.9463 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02473/1.258, allocations: 7.344 MB / 0.9534 GB, free: 8.547 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008307/1.259, allocations: 75.92 kB / 0.9535 GB, free: 8.473 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07635/1.335, allocations: 31.84 MB / 0.9846 GB, free: 8.359 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/1.335, allocations: 2.156 kB / 0.9846 GB, free: 8.359 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06031/1.396, allocations: 20.23 MB / 1.004 GB, free: 4.047 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001383/1.397, allocations: 0.5779 MB / 1.005 GB, free: 3.5 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008803/1.398, allocations: 71.94 kB / 1.005 GB, free: 3.43 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004269/1.402, allocations: 375.6 kB / 1.005 GB, free: 3.062 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002706/1.405, allocations: 0.7805 MB / 1.006 GB, free: 2.281 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00032/1.405, allocations: 96.78 kB / 1.006 GB, free: 2.188 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.002807/1.408, allocations: 2.113 MB / 1.008 GB, free: 72 kB / 0.67 GB Notification: Performance of sort global known variables: time 3.21e-07/1.408, allocations: 0 / 1.008 GB, free: 72 kB / 0.67 GB Notification: Performance of remove unused functions: time 0.004746/1.413, allocations: 1.804 MB / 1.01 GB, free: 14.32 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order3.delta,order3.w,order3.e1q,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 (247): * Single equations (assignments): 244 * 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 {(98,38,5.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.06102/1.474, allocations: 20.89 MB / 1.03 GB, free: 9.336 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.3047/1.779, allocations: 9.167 MB / 1.039 GB, free: 241.9 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 7.874e-06/1.779, allocations: 2.062 kB / 1.039 GB, free: 241.9 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.01985/1.799, allocations: 6.176 MB / 1.045 GB, free: 241.2 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003348/1.802, allocations: 390.6 kB / 1.046 GB, free: 241.2 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1423/1.944, allocations: 58.88 MB / 1.103 GB, free: 207.8 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001505/1.946, allocations: 2.444 MB / 1.106 GB, free: 205.4 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001445/1.947, allocations: 375.1 kB / 1.106 GB, free: 205 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001841/1.949, allocations: 1.983 MB / 1.108 GB, free: 203 MB / 0.7012 GB Notification: Performance of SimCode: time 8.31e-07/1.949, allocations: 0 / 1.108 GB, free: 203 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1678/2.117, allocations: 125.9 MB / 1.231 GB, free: 77.37 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.86/22.97, allocations: 15.45 kB / 1.231 GB, free: 77.36 MB / 0.7012 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.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_TwoArea_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe 2>&1)