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.001452/0.001452, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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 / 238.9 MB, free: 4.734 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.001707/0.001707, allocations: 184.5 kB / 289.1 MB, free: 2.484 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5666/0.5666, allocations: 91.89 MB / 431.2 MB, free: 9.41 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001618, allocations: 75.88 kB / 0.5013 GB, free: 8.031 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3803/0.3819, allocations: 71.27 MB / 0.5709 GB, free: 36.68 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII): time 0.01518/0.3971, allocations: 23.39 MB / 0.5938 GB, free: 20.48 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01077/0.408, allocations: 5.143 MB / 0.5988 GB, free: 16.75 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006534/0.4145, allocations: 50.78 kB / 0.5988 GB, free: 16.75 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003807/0.4184, allocations: 0.6795 MB / 0.5995 GB, free: 16.48 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008214/0.4267, allocations: 1.741 MB / 0.6012 GB, free: 15.25 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005548/0.4322, allocations: 1.907 MB / 0.603 GB, free: 14.16 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.008774/0.441, allocations: 5.437 MB / 0.6084 GB, free: 11.41 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002233/0.4433, allocations: 1.143 MB / 0.6095 GB, free: 10.83 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004018/0.4473, allocations: 2.162 MB / 0.6116 GB, free: 9.77 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004789/0.4521, allocations: 2.809 MB / 0.6143 GB, free: 8.402 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001496/0.4536, allocations: 286 kB / 0.6146 GB, free: 8.402 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002396/0.456, allocations: 426.7 kB / 0.615 GB, free: 8.359 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001182/0.4572, allocations: 0.9992 MB / 0.616 GB, free: 7.723 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006998/0.4643, allocations: 2.46 MB / 0.6184 GB, free: 6.129 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01332/0.4776, allocations: 5.986 MB / 0.6242 GB, free: 3.359 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.4777, allocations: 0 / 0.6242 GB, free: 3.359 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.4777, allocations: 0 / 0.6242 GB, free: 3.359 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003077/0.478, allocations: 0 / 0.6242 GB, free: 3.359 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: 893 * Number of variables: 893 Notification: Performance of Generate backend data structure: time 0.04062/0.5187, allocations: 9.149 MB / 0.6332 GB, free: 14.9 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.594e-05/0.5188, allocations: 12.02 kB / 0.6332 GB, free: 14.89 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001831/0.5206, allocations: 496.8 kB / 0.6337 GB, free: 14.39 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04369/0.5643, allocations: 4.005 MB / 0.6376 GB, free: 10.38 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009512/0.5739, allocations: 2.65 MB / 0.6402 GB, free: 7.641 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001163/0.5751, allocations: 0.9573 MB / 0.6411 GB, free: 6.547 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001919/0.577, allocations: 348 kB / 0.6414 GB, free: 6.207 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01479/0.5918, allocations: 4.727 MB / 0.646 GB, free: 1.449 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001163/0.592, allocations: 0 / 0.646 GB, free: 1.449 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001103/0.5931, allocations: 140 kB / 0.6462 GB, free: 1.312 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.545e-05/0.5932, allocations: 84 kB / 0.6462 GB, free: 1.23 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01119/0.6044, allocations: 4.244 MB / 0.6504 GB, free: 12.98 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.04217/0.6466, allocations: 18.36 MB / 0.6683 GB, free: 9.445 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01346/0.6601, allocations: 5.004 MB / 0.6732 GB, free: 4.363 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006495/0.6666, allocations: 2.787 MB / 0.6759 GB, free: 1.566 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007704/0.6674, allocations: 66.91 kB / 0.676 GB, free: 1.5 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007628/0.675, allocations: 3.179 MB / 0.6791 GB, free: 14.28 MB / 494.1 MB Notification: Performance of pre-optimization done (n=383): time 6.833e-06/0.6751, allocations: 0 / 0.6791 GB, free: 14.28 MB / 494.1 MB Notification: Performance of matching and sorting (n=383): time 0.3091/0.9842, allocations: 68.04 MB / 0.7455 GB, free: 10.04 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001183/0.9844, allocations: 149.8 kB / 0.7457 GB, free: 9.871 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006042/0.9904, allocations: 3.21 MB / 0.7488 GB, free: 6.641 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001382/0.9918, allocations: 93.7 kB / 0.7489 GB, free: 6.543 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001837/0.9937, allocations: 1.97 MB / 0.7508 GB, free: 4.559 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002622/0.9963, allocations: 1.305 MB / 0.7521 GB, free: 3.234 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001773/0.9981, allocations: 0.6782 MB / 0.7528 GB, free: 2.543 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.9982, allocations: 309.1 kB / 0.7531 GB, free: 2.238 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00599/1.004, allocations: 2.585 MB / 0.7556 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007116/1.011, allocations: 3.209 MB / 0.7587 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3845/1.396, allocations: 18.78 MB / 0.7771 GB, free: 154.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.598e-05/1.396, allocations: 5.625 kB / 0.7771 GB, free: 154.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=538) (initialization): time 0.06921/1.465, allocations: 17.25 MB / 0.7939 GB, free: 152.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001056/1.465, allocations: 65.16 kB / 0.794 GB, free: 152.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.448e-05/1.465, allocations: 14.75 kB / 0.794 GB, free: 152.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03125/1.497, allocations: 7.15 MB / 0.801 GB, free: 151.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004816/1.502, allocations: 0.6729 MB / 0.8016 GB, free: 151.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09773/1.599, allocations: 30.63 MB / 0.8315 GB, free: 136.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008359/1.608, allocations: 0.6192 MB / 0.8321 GB, free: 135.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001716/1.61, allocations: 156 kB / 0.8323 GB, free: 135.7 MB / 0.5606 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.004904/1.615, allocations: 0.6632 MB / 0.8329 GB, free: 135 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002815/1.617, allocations: 462.3 kB / 0.8334 GB, free: 134.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05981/1.677, allocations: 16.84 MB / 0.8498 GB, free: 117.7 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.829e-05/1.677, allocations: 40 kB / 0.8499 GB, free: 117.6 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.295e-05/1.677, allocations: 28 kB / 0.8499 GB, free: 117.6 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001382/1.677, allocations: 21 kB / 0.8499 GB, free: 117.6 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.06751/1.745, allocations: 21.85 MB / 0.8712 GB, free: 95.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.161e-05/1.745, allocations: 3.938 kB / 0.8713 GB, free: 95.68 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002663/1.748, allocations: 391.5 kB / 0.8716 GB, free: 95.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02594/1.774, allocations: 7.342 MB / 0.8788 GB, free: 87.95 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001413/1.775, allocations: 79.98 kB / 0.8789 GB, free: 87.87 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1055/1.881, allocations: 28.94 MB / 0.9071 GB, free: 58.64 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/1.881, allocations: 2.078 kB / 0.9071 GB, free: 58.64 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0704/1.951, allocations: 20.2 MB / 0.9269 GB, free: 38.36 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002161/1.953, allocations: 0.557 MB / 0.9274 GB, free: 37.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002702/1.956, allocations: 68 kB / 0.9275 GB, free: 37.71 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006772/1.963, allocations: 379.5 kB / 0.9278 GB, free: 37.34 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.004702/1.968, allocations: 0.7608 MB / 0.9286 GB, free: 36.57 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001266/1.969, allocations: 95.92 kB / 0.9287 GB, free: 36.48 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004783/1.974, allocations: 2.105 MB / 0.9307 GB, free: 34.37 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.01e-07/1.974, allocations: 0 / 0.9307 GB, free: 34.37 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01057/1.984, allocations: 1.805 MB / 0.9325 GB, free: 32.57 MB / 0.5606 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.06753/2.052, allocations: 20.86 MB / 0.9529 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02807/2.08, allocations: 9.151 MB / 0.9618 GB, free: 2.402 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/2.08, allocations: 0 / 0.9618 GB, free: 2.402 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.02203/2.102, allocations: 6.147 MB / 0.9678 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007634/2.11, allocations: 383.5 kB / 0.9682 GB, free: 11.84 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5047/2.615, allocations: 70.05 MB / 1.037 GB, free: 176.7 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00206/2.617, allocations: 2.442 MB / 1.039 GB, free: 175.9 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.002046/2.619, allocations: 375.3 kB / 1.039 GB, free: 175.8 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002392/2.621, allocations: 1.968 MB / 1.041 GB, free: 174.2 MB / 0.5919 GB Notification: Performance of SimCode: time 1.423e-06/2.621, allocations: 3.938 kB / 1.041 GB, free: 174.2 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1832/2.804, allocations: 117 MB / 1.155 GB, free: 61.34 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001809/2.805, allocations: 239.7 kB / 1.156 GB, free: 61.08 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.261/9.066, allocations: 3.719 kB / 1.156 GB, free: 61.08 MB / 0.5919 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoArea_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe 2>&1)