Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_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.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_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.005828/0.005828, allocations: 99.81 kB / 15.73 MB, free: 6.062 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.354/1.354, allocations: 222.9 MB / 239.4 MB, free: 4.531 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.001616/0.001616, allocations: 196.4 kB / 289.7 MB, free: 2.25 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5151/0.5151, allocations: 91.9 MB / 431.8 MB, free: 9.145 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 73.33 kB / 0.5723 GB, free: 33.59 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1453/0.1467, allocations: 71.29 MB / 0.6419 GB, free: 4.066 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII): time 0.007751/0.1545, allocations: 6.665 MB / 0.6484 GB, free: 13.37 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.00465/0.1592, allocations: 1.994 MB / 0.6503 GB, free: 11.38 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000541/0.1598, allocations: 8 kB / 0.6503 GB, free: 11.37 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007099/0.1605, allocations: 241.9 kB / 0.6506 GB, free: 11.13 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002019/0.1626, allocations: 0.875 MB / 0.6514 GB, free: 10.25 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001293/0.1639, allocations: 0.6264 MB / 0.652 GB, free: 9.633 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001563/0.1654, allocations: 1.647 MB / 0.6536 GB, free: 7.98 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004609/0.1659, allocations: 334.3 kB / 0.654 GB, free: 7.645 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007537/0.1667, allocations: 0.6808 MB / 0.6546 GB, free: 6.961 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008917/0.1676, allocations: 0.8557 MB / 0.6555 GB, free: 6.102 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001793/0.1678, allocations: 128 kB / 0.6556 GB, free: 5.977 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004685/0.1682, allocations: 271.9 kB / 0.6558 GB, free: 5.711 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003024/0.1685, allocations: 338.6 kB / 0.6562 GB, free: 5.379 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000583/0.1691, allocations: 0.6875 MB / 0.6568 GB, free: 4.688 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001718/0.1709, allocations: 1.719 MB / 0.6585 GB, free: 2.961 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1709, allocations: 0 / 0.6585 GB, free: 2.961 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.1709, allocations: 0 / 0.6585 GB, free: 2.961 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.513e-05/0.1709, allocations: 0 / 0.6585 GB, free: 2.961 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.008894/0.1798, allocations: 2.796 MB / 0.6612 GB, free: 96 kB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.1799, allocations: 8.031 kB / 0.6613 GB, free: 88 kB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001843/0.18, allocations: 126.8 kB / 0.6614 GB, free: 15.95 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004939/0.185, allocations: 0.7795 MB / 0.6621 GB, free: 15.17 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001543/0.1866, allocations: 0.9266 MB / 0.663 GB, free: 14.19 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002955/0.1869, allocations: 260.2 kB / 0.6633 GB, free: 13.9 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000171/0.187, allocations: 87.95 kB / 0.6634 GB, free: 13.82 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002167/0.1892, allocations: 1.102 MB / 0.6644 GB, free: 12.7 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.1892, allocations: 0 / 0.6644 GB, free: 12.7 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.637e-05/0.1893, allocations: 32 kB / 0.6645 GB, free: 12.67 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.1894, allocations: 16 kB / 0.6645 GB, free: 12.65 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002032/0.1914, allocations: 0.9955 MB / 0.6655 GB, free: 11.66 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.006386/0.1978, allocations: 3.879 MB / 0.6693 GB, free: 7.594 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007428/0.2052, allocations: 2.376 MB / 0.6716 GB, free: 5.121 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001389/0.2067, allocations: 0.6879 MB / 0.6722 GB, free: 4.43 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.99e-05/0.2068, allocations: 20.97 kB / 0.6723 GB, free: 4.41 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001634/0.2084, allocations: 0.8255 MB / 0.6731 GB, free: 3.566 MB / 478.1 MB Notification: Performance of pre-optimization done (n=97): time 2.695e-06/0.2084, allocations: 0 / 0.6731 GB, free: 3.566 MB / 478.1 MB Notification: Performance of matching and sorting (n=97): time 0.029/0.2374, allocations: 7.234 MB / 0.6801 GB, free: 12.27 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/0.2376, allocations: 115.8 kB / 0.6802 GB, free: 12.13 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001909/0.2395, allocations: 1.127 MB / 0.6813 GB, free: 10.99 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002244/0.2397, allocations: 45.7 kB / 0.6814 GB, free: 10.94 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000389/0.2401, allocations: 0.5015 MB / 0.6819 GB, free: 10.43 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000408/0.2406, allocations: 376.8 kB / 0.6822 GB, free: 10.06 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005053/0.2411, allocations: 291.5 kB / 0.6825 GB, free: 9.773 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.2412, allocations: 309.1 kB / 0.6828 GB, free: 9.469 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001652/0.2428, allocations: 0.7769 MB / 0.6836 GB, free: 8.691 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001799/0.2447, allocations: 0.946 MB / 0.6845 GB, free: 7.707 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0246/0.2693, allocations: 5.798 MB / 0.6902 GB, free: 1.824 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.028e-05/0.2693, allocations: 7.938 kB / 0.6902 GB, free: 1.816 MB / 494.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.01395/0.2833, allocations: 4.454 MB / 0.6945 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.629e-05/0.2834, allocations: 63.41 kB / 0.6946 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.713e-05/0.2834, allocations: 4 kB / 0.6946 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006388/0.2898, allocations: 1.639 MB / 0.6962 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001491/0.2913, allocations: 287.5 kB / 0.6965 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02084/0.3122, allocations: 8.613 MB / 0.7049 GB, free: 2.562 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002043/0.3143, allocations: 211.2 kB / 0.7051 GB, free: 2.355 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001247/0.3144, allocations: 55.97 kB / 0.7051 GB, free: 2.301 MB / 0.4981 GB Warning: Assuming fixed start value for the following 5 variables: order5.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 order5.delta:VARIABLE(flow=false start = order5.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order5.e1q:VARIABLE(start = order5.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 (167): * Single equations (assignments): 164 * 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.0006502/0.3151, allocations: 316.3 kB / 0.7054 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002348/0.3153, allocations: 131.2 kB / 0.7055 GB, free: 1.844 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01295/0.3283, allocations: 3.893 MB / 0.7093 GB, free: 13.93 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.551e-05/0.3283, allocations: 8 kB / 0.7094 GB, free: 13.92 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.743e-05/0.3283, allocations: 8 kB / 0.7094 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.831e-05/0.3284, allocations: 7.922 kB / 0.7094 GB, free: 13.9 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.0151/0.3435, allocations: 5.522 MB / 0.7148 GB, free: 8.266 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.684e-06/0.3435, allocations: 0 / 0.7148 GB, free: 8.266 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006311/0.3441, allocations: 103.8 kB / 0.7149 GB, free: 8.164 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005597/0.3498, allocations: 1.584 MB / 0.7164 GB, free: 6.574 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001185/0.3499, allocations: 31.92 kB / 0.7164 GB, free: 6.543 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02072/0.3706, allocations: 9.667 MB / 0.7259 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.3707, allocations: 0 / 0.7259 GB, free: 12.59 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0148/0.3855, allocations: 4.79 MB / 0.7306 GB, free: 7.766 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005642/0.3861, allocations: 232 kB / 0.7308 GB, free: 7.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001896/0.3863, allocations: 19.94 kB / 0.7308 GB, free: 7.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001196/0.3875, allocations: 111.9 kB / 0.7309 GB, free: 7.391 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006187/0.3881, allocations: 196.7 kB / 0.7311 GB, free: 7.195 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.72e-05/0.3882, allocations: 24 kB / 0.7311 GB, free: 7.172 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001302/0.3895, allocations: 0.7553 MB / 0.7319 GB, free: 6.41 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3895, allocations: 0 / 0.7319 GB, free: 6.41 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001569/0.3911, allocations: 487.7 kB / 0.7323 GB, free: 5.934 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order2.delta,order2.w,order5.delta,order5.w,order5.e1q,order5.e2q,order5.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 (65): * Single equations (assignments): 62 * 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 {(18,14,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01518/0.4063, allocations: 5.389 MB / 0.7376 GB, free: 0.4961 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007082/0.4134, allocations: 2.597 MB / 0.7401 GB, free: 13.86 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.4134, allocations: 0 / 0.7401 GB, free: 13.86 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.004375/0.4178, allocations: 1.587 MB / 0.7417 GB, free: 12.23 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001309/0.4191, allocations: 131.7 kB / 0.7418 GB, free: 12.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04189/0.461, allocations: 16.55 MB / 0.758 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009989/0.4621, allocations: 1.128 MB / 0.7591 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0006294/0.4627, allocations: 124.1 kB / 0.7592 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008421/0.4636, allocations: 479.3 kB / 0.7596 GB, free: 9.582 MB / 0.5606 GB Notification: Performance of SimCode: time 1.482e-06/0.4636, allocations: 0 / 0.7596 GB, free: 9.582 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.435/0.8986, allocations: 35.15 MB / 0.7939 GB, free: 109.1 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.81/15.71, allocations: 1.891 kB / 0.794 GB, free: 109.1 MB / 0.5606 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_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_FifthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe 2>&1)