Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_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.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_ThirdOrder_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.001741/0.001741, allocations: 108 kB / 15.61 MB, free: 144 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.542/1.542, allocations: 222.9 MB / 239.3 MB, free: 4.633 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.001957/0.001957, allocations: 184.4 kB / 289.5 MB, free: 2.359 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5708/0.5708, allocations: 91.9 MB / 431.6 MB, free: 9.281 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002022/0.002022, allocations: 87.8 kB / 0.502 GB, free: 7.656 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5024/0.5045, allocations: 71.26 MB / 0.5716 GB, free: 36.68 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII): time 0.01783/0.5224, allocations: 21.73 MB / 0.5928 GB, free: 21.61 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01428/0.5367, allocations: 4.855 MB / 0.5975 GB, free: 18.1 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006017/0.5428, allocations: 47.19 kB / 0.5976 GB, free: 18.1 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003964/0.5469, allocations: 0.884 MB / 0.5984 GB, free: 17.62 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01049/0.5574, allocations: 2.03 MB / 0.6004 GB, free: 16.18 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006857/0.5642, allocations: 2.06 MB / 0.6024 GB, free: 15.1 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01244/0.5767, allocations: 5.662 MB / 0.608 GB, free: 12.19 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004393/0.5811, allocations: 1.324 MB / 0.6093 GB, free: 11.55 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006325/0.5875, allocations: 2.31 MB / 0.6115 GB, free: 10.36 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007126/0.5946, allocations: 2.943 MB / 0.6144 GB, free: 8.863 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003045/0.5977, allocations: 436.7 kB / 0.6148 GB, free: 8.863 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004899/0.6026, allocations: 0.5741 MB / 0.6154 GB, free: 8.824 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002733/0.6053, allocations: 1.149 MB / 0.6165 GB, free: 8.039 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009276/0.6146, allocations: 2.611 MB / 0.619 GB, free: 6.281 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01535/0.63, allocations: 6.155 MB / 0.6251 GB, free: 3.402 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.184e-05/0.6301, allocations: 0 / 0.6251 GB, free: 3.402 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.747e-06/0.6301, allocations: 1.375 kB / 0.6251 GB, free: 3.402 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003952/0.6305, allocations: 0 / 0.6251 GB, free: 3.402 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: 892 * Number of variables: 892 Notification: Performance of Generate backend data structure: time 0.04569/0.6762, allocations: 9.157 MB / 0.634 GB, free: 14.6 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.715e-05/0.6763, allocations: 12.03 kB / 0.634 GB, free: 14.59 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002936/0.6792, allocations: 488.8 kB / 0.6345 GB, free: 14.1 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02872/0.708, allocations: 4.005 MB / 0.6384 GB, free: 10.09 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009188/0.7172, allocations: 2.647 MB / 0.641 GB, free: 7.355 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001545/0.7188, allocations: 0.9612 MB / 0.6419 GB, free: 6.258 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002506/0.7213, allocations: 351.9 kB / 0.6422 GB, free: 5.914 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01737/0.7387, allocations: 4.723 MB / 0.6469 GB, free: 1.16 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001349/0.7389, allocations: 0 / 0.6469 GB, free: 1.16 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001474/0.7404, allocations: 144 kB / 0.647 GB, free: 1.02 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.675e-05/0.7405, allocations: 84 kB / 0.6471 GB, free: 0.9375 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01267/0.7532, allocations: 4.24 MB / 0.6512 GB, free: 12.69 MB / 462.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.04455/0.7978, allocations: 18.32 MB / 0.6691 GB, free: 9.195 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01371/0.8115, allocations: 4.996 MB / 0.674 GB, free: 4.121 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006482/0.818, allocations: 2.783 MB / 0.6767 GB, free: 1.328 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006833/0.8187, allocations: 74.91 kB / 0.6768 GB, free: 1.254 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007692/0.8265, allocations: 3.169 MB / 0.6799 GB, free: 14.04 MB / 494.1 MB Notification: Performance of pre-optimization done (n=382): time 1.02e-05/0.8265, allocations: 0 / 0.6799 GB, free: 14.04 MB / 494.1 MB Notification: Performance of matching and sorting (n=382): time 0.325/1.152, allocations: 68.21 MB / 0.7465 GB, free: 9.641 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00023/1.152, allocations: 141.8 kB / 0.7466 GB, free: 9.477 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01059/1.163, allocations: 3.222 MB / 0.7497 GB, free: 6.234 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001662/1.164, allocations: 93.7 kB / 0.7498 GB, free: 6.137 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002543/1.167, allocations: 1.963 MB / 0.7518 GB, free: 4.16 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.003374/1.17, allocations: 1.317 MB / 0.753 GB, free: 2.824 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005789/1.176, allocations: 0.6703 MB / 0.7537 GB, free: 2.141 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001988/1.176, allocations: 309 kB / 0.754 GB, free: 1.836 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008308/1.185, allocations: 2.573 MB / 0.7565 GB, free: 15.25 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008894/1.194, allocations: 3.205 MB / 0.7596 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.4638/1.657, allocations: 18.81 MB / 0.778 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.177e-05/1.657, allocations: 5.125 kB / 0.778 GB, free: 154.2 MB / 0.5606 GB Notification: Performance of matching and sorting (n=534) (initialization): time 0.06189/1.719, allocations: 16.93 MB / 0.7945 GB, free: 152.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001009/1.719, allocations: 64.58 kB / 0.7946 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-05/1.72, allocations: 13.53 kB / 0.7946 GB, free: 152.5 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02882/1.748, allocations: 7.242 MB / 0.8017 GB, free: 151.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004343/1.753, allocations: 0.6649 MB / 0.8023 GB, free: 151.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08482/1.838, allocations: 33.76 MB / 0.8353 GB, free: 133.1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007186/1.845, allocations: 0.6141 MB / 0.8359 GB, free: 132.6 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006914/1.846, allocations: 156 kB / 0.8361 GB, free: 132.5 MB / 0.5606 GB Warning: Assuming fixed start value for the following 4 variables: order3_1.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 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 (398): * Single equations (assignments): 395 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(92,45)} Notification: Performance of prepare postOptimizeDAE: time 0.00241/1.848, allocations: 0.6661 MB / 0.8367 GB, free: 131.8 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001331/1.849, allocations: 458.4 kB / 0.8371 GB, free: 131.3 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05224/1.902, allocations: 16.84 MB / 0.8536 GB, free: 114.4 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.067e-05/1.902, allocations: 36 kB / 0.8536 GB, free: 114.4 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.413e-05/1.902, allocations: 28 kB / 0.8537 GB, free: 114.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000186/1.902, allocations: 31.91 kB / 0.8537 GB, free: 114.3 MB / 0.5606 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.06295/1.965, allocations: 21.82 MB / 0.875 GB, free: 92.48 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-05/1.965, allocations: 7.875 kB / 0.875 GB, free: 92.47 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002659/1.968, allocations: 391.5 kB / 0.8754 GB, free: 92.09 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02542/1.993, allocations: 7.39 MB / 0.8826 GB, free: 84.68 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001642/1.995, allocations: 67.98 kB / 0.8827 GB, free: 84.62 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08659/2.082, allocations: 31.84 MB / 0.9137 GB, free: 52.48 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.592e-06/2.082, allocations: 0 / 0.9137 GB, free: 52.48 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06978/2.151, allocations: 20.19 MB / 0.9335 GB, free: 32.2 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002944/2.154, allocations: 0.5532 MB / 0.934 GB, free: 31.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003565/2.158, allocations: 68 kB / 0.9341 GB, free: 31.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008057/2.166, allocations: 375.6 kB / 0.9344 GB, free: 31.19 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006192/2.172, allocations: 0.7805 MB / 0.9352 GB, free: 30.41 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001422/2.174, allocations: 96.08 kB / 0.9353 GB, free: 30.31 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.005333/2.179, allocations: 2.117 MB / 0.9374 GB, free: 28.19 MB / 0.5606 GB Notification: Performance of sort global known variables: time 6.12e-07/2.179, allocations: 0 / 0.9374 GB, free: 28.19 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01029/2.19, allocations: 1.794 MB / 0.9391 GB, free: 26.39 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order3.delta,order3.w,order3.e1q,order3_1.delta,order3_1.w,order3_1.e1q,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 (246): * Single equations (assignments): 243 * 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 {(100,36,5.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.06717/2.257, allocations: 20.87 MB / 0.9595 GB, free: 5.438 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.03503/2.292, allocations: 9.412 MB / 0.9687 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.193e-05/2.292, allocations: 0 / 0.9687 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0235/2.315, allocations: 6.191 MB / 0.9747 GB, free: 5.742 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008105/2.324, allocations: 383.7 kB / 0.9751 GB, free: 5.363 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5247/2.848, allocations: 67.64 MB / 1.041 GB, free: 174.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003803/2.852, allocations: 2.447 MB / 1.044 GB, free: 174 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.002771/2.855, allocations: 379.9 kB / 1.044 GB, free: 174 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003624/2.859, allocations: 2.015 MB / 1.046 GB, free: 172.3 MB / 0.5919 GB Notification: Performance of SimCode: time 1.012e-06/2.859, allocations: 0 / 1.046 GB, free: 172.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2159/3.075, allocations: 127.7 MB / 1.171 GB, free: 46.34 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.52/20.6, allocations: 7.953 kB / 1.171 GB, free: 46.34 MB / 0.5919 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.sim & python3 -m fmpy simulate --output-file OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_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_ThirdOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII.pipe 2>&1)