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.004528/0.004528, allocations: 99.72 kB / 15.73 MB, free: 6.48 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.315/1.315, allocations: 222.9 MB / 239.4 MB, free: 4.52 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.00142/0.00142, allocations: 192.5 kB / 289.7 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4944/0.4944, allocations: 91.97 MB / 431.8 MB, free: 9.086 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002119/0.002119, allocations: 75.03 kB / 0.5724 GB, free: 33.52 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1037, allocations: 71.3 MB / 0.6421 GB, free: 3.867 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII): time 0.02061/0.1244, allocations: 21.84 MB / 0.6634 GB, free: 13.95 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01027/0.1347, allocations: 4.857 MB / 0.6681 GB, free: 9.066 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003174/0.1379, allocations: 40 kB / 0.6682 GB, free: 9.027 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002718/0.1406, allocations: 0.8828 MB / 0.6691 GB, free: 8.137 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006784/0.1474, allocations: 2.035 MB / 0.671 GB, free: 6.09 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005379/0.1528, allocations: 2.067 MB / 0.6731 GB, free: 4.055 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.008033/0.1609, allocations: 5.712 MB / 0.6786 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002426/0.1633, allocations: 1.314 MB / 0.6799 GB, free: 12.95 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003351/0.1667, allocations: 2.326 MB / 0.6822 GB, free: 10.62 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004025/0.1707, allocations: 2.932 MB / 0.6851 GB, free: 7.672 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001446/0.1722, allocations: 436 kB / 0.6855 GB, free: 7.246 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001938/0.1741, allocations: 0.5741 MB / 0.686 GB, free: 6.672 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001711/0.1758, allocations: 1.147 MB / 0.6871 GB, free: 5.52 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003738/0.1796, allocations: 2.614 MB / 0.6897 GB, free: 2.891 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008312/0.1879, allocations: 6.239 MB / 0.6958 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1879, allocations: 0 / 0.6958 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.272e-06/0.1879, allocations: 0 / 0.6958 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001982/0.1881, allocations: 0 / 0.6958 GB, free: 12.62 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.03078/0.2189, allocations: 9.318 MB / 0.7049 GB, free: 3.203 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.219, allocations: 16.03 kB / 0.7049 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005952/0.2196, allocations: 488.8 kB / 0.7054 GB, free: 2.699 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02573/0.2453, allocations: 4.039 MB / 0.7093 GB, free: 14.65 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005106/0.2505, allocations: 2.677 MB / 0.7119 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009626/0.2514, allocations: 0.9612 MB / 0.7129 GB, free: 10.8 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006621/0.2521, allocations: 352 kB / 0.7132 GB, free: 10.46 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009601/0.2617, allocations: 4.731 MB / 0.7178 GB, free: 5.695 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.596e-05/0.2618, allocations: 4 kB / 0.7178 GB, free: 5.691 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003766/0.2622, allocations: 144 kB / 0.718 GB, free: 5.551 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.234e-05/0.2623, allocations: 84 kB / 0.718 GB, free: 5.469 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00889/0.2712, allocations: 4.24 MB / 0.7222 GB, free: 1.223 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.03315/0.3043, allocations: 18.26 MB / 0.74 GB, free: 13.79 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01315/0.3175, allocations: 4.996 MB / 0.7449 GB, free: 8.703 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006389/0.3239, allocations: 2.779 MB / 0.7476 GB, free: 5.914 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006743/0.3246, allocations: 78.89 kB / 0.7477 GB, free: 5.836 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007545/0.3322, allocations: 3.169 MB / 0.7508 GB, free: 2.625 MB / 0.545 GB Notification: Performance of pre-optimization done (n=383): time 6.342e-06/0.3322, allocations: 0 / 0.7508 GB, free: 2.625 MB / 0.545 GB Notification: Performance of matching and sorting (n=383): time 0.5312/0.8634, allocations: 68.06 MB / 0.8172 GB, free: 84.3 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.099e-05/0.8635, allocations: 143.8 kB / 0.8174 GB, free: 84.13 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003348/0.8669, allocations: 3.224 MB / 0.8205 GB, free: 81.76 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0006777/0.8676, allocations: 91.58 kB / 0.8206 GB, free: 81.72 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009137/0.8685, allocations: 1.996 MB / 0.8226 GB, free: 80.49 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001147/0.8696, allocations: 1.384 MB / 0.8239 GB, free: 79.13 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001163/0.8708, allocations: 0.6745 MB / 0.8246 GB, free: 78.44 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.613e-05/0.8709, allocations: 301.1 kB / 0.8249 GB, free: 78.14 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004706/0.8756, allocations: 2.581 MB / 0.8274 GB, free: 75.55 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004874/0.8805, allocations: 3.219 MB / 0.8305 GB, free: 72.11 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06238/0.9428, allocations: 18.78 MB / 0.8489 GB, free: 53.08 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.579e-05/0.9429, allocations: 4 kB / 0.8489 GB, free: 53.08 MB / 0.5606 GB Notification: Performance of matching and sorting (n=538) (initialization): time 0.05147/0.9944, allocations: 17.28 MB / 0.8657 GB, free: 35.76 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.546e-05/0.9945, allocations: 67.39 kB / 0.8658 GB, free: 35.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.72e-05/0.9945, allocations: 15.62 kB / 0.8658 GB, free: 35.67 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02316/1.018, allocations: 7.153 MB / 0.8728 GB, free: 28.51 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003014/1.021, allocations: 0.6709 MB / 0.8735 GB, free: 27.84 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07728/1.098, allocations: 33.32 MB / 0.906 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005581/1.104, allocations: 0.6299 MB / 0.9066 GB, free: 9.711 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004994/1.104, allocations: 151.8 kB / 0.9068 GB, free: 9.566 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.001684/1.106, allocations: 0.6784 MB / 0.9074 GB, free: 8.875 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008785/1.107, allocations: 485.9 kB / 0.9079 GB, free: 8.398 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0567/1.163, allocations: 16.84 MB / 0.9243 GB, free: 7.488 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.599e-05/1.164, allocations: 40 kB / 0.9244 GB, free: 7.449 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.082e-05/1.164, allocations: 31.94 kB / 0.9244 GB, free: 7.418 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-05/1.164, allocations: 18.09 kB / 0.9244 GB, free: 7.402 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.06407/1.228, allocations: 21.83 MB / 0.9457 GB, free: 1.48 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.019e-05/1.228, allocations: 1.859 kB / 0.9457 GB, free: 1.48 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002303/1.23, allocations: 387.5 kB / 0.9461 GB, free: 1.102 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02714/1.257, allocations: 7.348 MB / 0.9533 GB, free: 9.742 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007845/1.258, allocations: 75.92 kB / 0.9534 GB, free: 9.668 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08333/1.341, allocations: 31.84 MB / 0.9845 GB, free: 9.531 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/1.341, allocations: 0 / 0.9845 GB, free: 9.531 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06585/1.407, allocations: 20.23 MB / 1.004 GB, free: 5.215 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001282/1.409, allocations: 0.5752 MB / 1.005 GB, free: 4.617 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009156/1.41, allocations: 71.94 kB / 1.005 GB, free: 4.547 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00424/1.414, allocations: 375.6 kB / 1.005 GB, free: 4.18 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003046/1.417, allocations: 0.7844 MB / 1.006 GB, free: 3.395 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003525/1.417, allocations: 99.92 kB / 1.006 GB, free: 3.297 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.003076/1.42, allocations: 2.105 MB / 1.008 GB, free: 1.188 MB / 0.67 GB Notification: Performance of sort global known variables: time 2.21e-07/1.42, allocations: 0 / 1.008 GB, free: 1.188 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.004931/1.425, allocations: 1.803 MB / 1.01 GB, free: 15.38 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.06538/1.491, allocations: 20.9 MB / 1.03 GB, free: 10.39 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.02776/1.518, allocations: 9.171 MB / 1.039 GB, free: 1.172 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/1.518, allocations: 0 / 1.039 GB, free: 1.172 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.2636/1.782, allocations: 6.178 MB / 1.045 GB, free: 243.6 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003019/1.785, allocations: 386.3 kB / 1.046 GB, free: 243.6 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1394/1.925, allocations: 58.87 MB / 1.103 GB, free: 211.4 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001334/1.926, allocations: 2.443 MB / 1.106 GB, free: 208.9 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001349/1.927, allocations: 375.1 kB / 1.106 GB, free: 208.5 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001728/1.929, allocations: 1.979 MB / 1.108 GB, free: 206.5 MB / 0.7012 GB Notification: Performance of SimCode: time 5.51e-07/1.929, allocations: 0 / 1.108 GB, free: 206.5 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1525/2.082, allocations: 125.9 MB / 1.231 GB, free: 80.88 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.55/22.63, allocations: 16.67 kB / 1.231 GB, free: 80.87 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)