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.006972/0.006972, allocations: 99.56 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.379/1.379, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.001642/0.001642, allocations: 196.4 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5536/0.5536, allocations: 91.9 MB / 431.8 MB, free: 9.176 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 79.88 kB / 0.5724 GB, free: 33.53 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.1505, allocations: 71.28 MB / 0.642 GB, free: 3.984 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.ThirdOrder_AVRII): time 0.01924/0.1697, allocations: 21.74 MB / 0.6632 GB, free: 14.16 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.01229/0.1821, allocations: 4.853 MB / 0.6679 GB, free: 9.281 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005316/0.1875, allocations: 44 kB / 0.668 GB, free: 9.238 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003441/0.1909, allocations: 0.8789 MB / 0.6688 GB, free: 8.352 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009019/0.2, allocations: 2.28 MB / 0.6711 GB, free: 6.062 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006142/0.2062, allocations: 2.059 MB / 0.6731 GB, free: 4.035 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.00998/0.2162, allocations: 5.701 MB / 0.6787 GB, free: 14.31 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003353/0.2196, allocations: 1.325 MB / 0.6799 GB, free: 12.93 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004656/0.2242, allocations: 2.337 MB / 0.6822 GB, free: 10.59 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004702/0.229, allocations: 2.928 MB / 0.6851 GB, free: 7.645 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002135/0.2311, allocations: 436 kB / 0.6855 GB, free: 7.219 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002767/0.2339, allocations: 0.578 MB / 0.6861 GB, free: 6.641 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002224/0.2362, allocations: 1.151 MB / 0.6872 GB, free: 5.484 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00492/0.2411, allocations: 2.61 MB / 0.6897 GB, free: 2.859 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01149/0.2526, allocations: 6.239 MB / 0.6958 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.2527, allocations: 3.938 kB / 0.6958 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.074e-06/0.2527, allocations: 0 / 0.6958 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0002976/0.253, allocations: 0 / 0.6958 GB, free: 12.59 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: 892 * Number of variables: 892 Notification: Performance of Generate backend data structure: time 0.03527/0.2883, allocations: 9.318 MB / 0.7049 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.744e-05/0.2883, allocations: 12.03 kB / 0.7049 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001633/0.29, allocations: 488.8 kB / 0.7054 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02796/0.318, allocations: 4.039 MB / 0.7094 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008208/0.3262, allocations: 2.693 MB / 0.712 GB, free: 11.86 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001291/0.3276, allocations: 0.9573 MB / 0.7129 GB, free: 10.76 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001864/0.3294, allocations: 344 kB / 0.7133 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01321/0.3427, allocations: 4.727 MB / 0.7179 GB, free: 5.668 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.061e-05/0.3428, allocations: 0 / 0.7179 GB, free: 5.668 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004187/0.3432, allocations: 140 kB / 0.718 GB, free: 5.531 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.52e-05/0.3433, allocations: 87.94 kB / 0.7181 GB, free: 5.445 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009412/0.3527, allocations: 4.244 MB / 0.7222 GB, free: 1.195 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.03936/0.3921, allocations: 18.22 MB / 0.74 GB, free: 13.8 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0141/0.4062, allocations: 4.996 MB / 0.7449 GB, free: 8.711 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006885/0.4132, allocations: 2.783 MB / 0.7476 GB, free: 5.914 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008137/0.414, allocations: 70.84 kB / 0.7477 GB, free: 5.844 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008623/0.4227, allocations: 3.169 MB / 0.7508 GB, free: 2.633 MB / 0.545 GB Notification: Performance of pre-optimization done (n=382): time 9.988e-06/0.4227, allocations: 0 / 0.7508 GB, free: 2.633 MB / 0.545 GB Notification: Performance of matching and sorting (n=382): time 0.6327/1.055, allocations: 68.22 MB / 0.8174 GB, free: 82.77 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.374e-05/1.056, allocations: 149.8 kB / 0.8175 GB, free: 82.59 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003911/1.059, allocations: 3.231 MB / 0.8207 GB, free: 80.22 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008405/1.06, allocations: 87.95 kB / 0.8208 GB, free: 80.18 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001069/1.061, allocations: 2.003 MB / 0.8227 GB, free: 78.99 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001391/1.063, allocations: 1.374 MB / 0.8241 GB, free: 77.82 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001319/1.064, allocations: 0.6704 MB / 0.8247 GB, free: 77.14 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.032e-05/1.064, allocations: 301.1 kB / 0.825 GB, free: 76.84 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004808/1.069, allocations: 2.585 MB / 0.8275 GB, free: 74.25 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005054/1.074, allocations: 3.201 MB / 0.8307 GB, free: 70.82 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06266/1.137, allocations: 18.75 MB / 0.849 GB, free: 51.82 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.376e-05/1.137, allocations: 7.984 kB / 0.849 GB, free: 51.81 MB / 0.5606 GB Notification: Performance of matching and sorting (n=534) (initialization): time 0.0506/1.187, allocations: 16.95 MB / 0.8655 GB, free: 34.82 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.901e-05/1.187, allocations: 71.41 kB / 0.8656 GB, free: 34.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.428e-05/1.188, allocations: 16 kB / 0.8656 GB, free: 34.72 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02399/1.212, allocations: 7.229 MB / 0.8727 GB, free: 27.48 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003269/1.215, allocations: 0.6631 MB / 0.8733 GB, free: 26.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08189/1.297, allocations: 33.75 MB / 0.9063 GB, free: 8.957 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006149/1.303, allocations: 0.6313 MB / 0.9069 GB, free: 8.406 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005653/1.304, allocations: 152 kB / 0.9071 GB, free: 8.258 MB / 0.5762 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.001925/1.305, allocations: 0.6684 MB / 0.9077 GB, free: 7.582 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001057/1.307, allocations: 484.8 kB / 0.9082 GB, free: 7.105 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05581/1.362, allocations: 16.83 MB / 0.9246 GB, free: 6.207 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.419e-05/1.362, allocations: 36 kB / 0.9246 GB, free: 6.172 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001276/1.363, allocations: 31.94 kB / 0.9247 GB, free: 6.141 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001253/1.363, allocations: 20.73 kB / 0.9247 GB, free: 6.121 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.07136/1.434, allocations: 21.83 MB / 0.946 GB, free: 272 kB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-05/1.434, allocations: 0 / 0.946 GB, free: 272 kB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002644/1.437, allocations: 387.5 kB / 0.9464 GB, free: 15.89 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02749/1.464, allocations: 7.381 MB / 0.9536 GB, free: 8.488 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001151/1.466, allocations: 71.98 kB / 0.9537 GB, free: 8.418 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0904/1.556, allocations: 31.84 MB / 0.9847 GB, free: 8.309 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/1.556, allocations: 4 kB / 0.9847 GB, free: 8.305 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0684/1.624, allocations: 20.23 MB / 1.005 GB, free: 3.996 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001798/1.626, allocations: 0.5781 MB / 1.005 GB, free: 3.449 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001954/1.628, allocations: 64 kB / 1.005 GB, free: 3.387 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005826/1.634, allocations: 374.3 kB / 1.005 GB, free: 3.023 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003753/1.638, allocations: 0.7922 MB / 1.006 GB, free: 2.23 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008867/1.639, allocations: 99.97 kB / 1.006 GB, free: 2.133 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.004582/1.643, allocations: 2.109 MB / 1.008 GB, free: 20 kB / 0.67 GB Notification: Performance of sort global known variables: time 2.365e-06/1.643, allocations: 0 / 1.008 GB, free: 20 kB / 0.67 GB Notification: Performance of remove unused functions: time 0.008194/1.652, allocations: 1.801 MB / 1.01 GB, free: 14.28 MB / 0.6856 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.06924/1.721, allocations: 20.9 MB / 1.031 GB, free: 9.289 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.4378/2.159, allocations: 9.284 MB / 1.04 GB, free: 241.8 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 1.184e-05/2.159, allocations: 2.5 kB / 1.04 GB, free: 241.8 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.0225/2.181, allocations: 6.202 MB / 1.046 GB, free: 241.1 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003822/2.185, allocations: 385.4 kB / 1.046 GB, free: 241.1 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1496/2.335, allocations: 58.22 MB / 1.103 GB, free: 208.4 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001746/2.337, allocations: 2.439 MB / 1.105 GB, free: 205.9 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001674/2.338, allocations: 375.1 kB / 1.106 GB, free: 205.5 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002078/2.34, allocations: 2.018 MB / 1.108 GB, free: 203.5 MB / 0.7012 GB Notification: Performance of SimCode: time 8.12e-07/2.34, allocations: 1.422 kB / 1.108 GB, free: 203.5 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1849/2.525, allocations: 129.1 MB / 1.234 GB, free: 74.62 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.93/25.45, allocations: 12 kB / 1.234 GB, free: 74.61 MB / 0.7012 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)