Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,fileNamePrefix="OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_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.001226/0.001227, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.261/1.261, allocations: 222.9 MB / 238.8 MB, free: 4.781 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.001406/0.001406, allocations: 200.4 kB / 289.1 MB, free: 2.52 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4558/0.4558, allocations: 78.52 MB / 417.8 MB, free: 3.316 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001598/0.001598, allocations: 79.88 kB / 496.9 MB, free: 6.707 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1154, allocations: 68.17 MB / 0.5518 GB, free: 2.492 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.2129/0.3283, allocations: 6.815 MB / 0.5584 GB, free: 36.36 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003342/0.3317, allocations: 1.99 MB / 0.5604 GB, free: 35.82 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004723/0.3322, allocations: 14.16 kB / 0.5604 GB, free: 35.82 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006003/0.3328, allocations: 186.1 kB / 0.5606 GB, free: 35.81 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001425/0.3343, allocations: 0.7063 MB / 0.5613 GB, free: 35.66 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009795/0.3353, allocations: 0.585 MB / 0.5618 GB, free: 35.58 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001065/0.3363, allocations: 1.493 MB / 0.5633 GB, free: 35.5 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003547/0.3367, allocations: 285.6 kB / 0.5636 GB, free: 35.45 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005281/0.3372, allocations: 0.5957 MB / 0.5641 GB, free: 35.31 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005848/0.3378, allocations: 0.7803 MB / 0.5649 GB, free: 35.12 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001294/0.338, allocations: 70.81 kB / 0.565 GB, free: 35.12 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003878/0.3384, allocations: 208.8 kB / 0.5652 GB, free: 35.11 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000206/0.3386, allocations: 282.5 kB / 0.5654 GB, free: 35.03 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003709/0.339, allocations: 0.6213 MB / 0.5661 GB, free: 34.78 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009645/0.3399, allocations: 1.589 MB / 0.5676 GB, free: 34.4 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3399, allocations: 0 / 0.5676 GB, free: 34.4 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3399, allocations: 1.031 kB / 0.5676 GB, free: 34.4 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.283e-05/0.34, allocations: 3.938 kB / 0.5676 GB, free: 34.4 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: 189 * Number of variables: 189 Notification: Performance of Generate backend data structure: time 0.007471/0.3474, allocations: 2.694 MB / 0.5702 GB, free: 33.42 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.3475, allocations: 8.531 kB / 0.5702 GB, free: 33.42 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001314/0.3476, allocations: 126.4 kB / 0.5704 GB, free: 33.38 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004492/0.3521, allocations: 0.778 MB / 0.5711 GB, free: 33.29 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001199/0.3533, allocations: 0.8896 MB / 0.572 GB, free: 32.87 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002075/0.3536, allocations: 260.1 kB / 0.5722 GB, free: 32.68 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000133/0.3537, allocations: 81.67 kB / 0.5723 GB, free: 32.68 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001793/0.3555, allocations: 1.086 MB / 0.5734 GB, free: 32.59 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.616e-05/0.3555, allocations: 0 / 0.5734 GB, free: 32.59 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.521e-05/0.3556, allocations: 35.06 kB / 0.5734 GB, free: 32.59 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.3556, allocations: 18.38 kB / 0.5734 GB, free: 32.59 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001719/0.3574, allocations: 0.9889 MB / 0.5744 GB, free: 32.57 MB / 430.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.005317/0.3627, allocations: 3.805 MB / 0.5781 GB, free: 30.8 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006554/0.3692, allocations: 2.374 MB / 0.5804 GB, free: 29.98 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001208/0.3705, allocations: 0.6725 MB / 0.5811 GB, free: 29.71 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001019/0.3706, allocations: 18.36 kB / 0.5811 GB, free: 29.71 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001453/0.372, allocations: 0.8163 MB / 0.5819 GB, free: 29.39 MB / 430.1 MB Notification: Performance of pre-optimization done (n=95): time 3.377e-06/0.3721, allocations: 5.531 kB / 0.5819 GB, free: 29.39 MB / 430.1 MB Notification: Performance of matching and sorting (n=95): time 0.02726/0.3993, allocations: 7.183 MB / 0.5889 GB, free: 28 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.519e-05/0.3994, allocations: 122.8 kB / 0.589 GB, free: 27.87 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001809/0.4012, allocations: 1.09 MB / 0.5901 GB, free: 27.42 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002313/0.4015, allocations: 45.86 kB / 0.5902 GB, free: 27.38 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000332/0.4018, allocations: 491.6 kB / 0.5906 GB, free: 26.99 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003392/0.4022, allocations: 351.2 kB / 0.591 GB, free: 26.72 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004866/0.4027, allocations: 283.7 kB / 0.5912 GB, free: 26.59 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.22e-05/0.4027, allocations: 302.5 kB / 0.5915 GB, free: 26.29 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001521/0.4042, allocations: 0.7635 MB / 0.5923 GB, free: 26 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001581/0.4058, allocations: 0.9287 MB / 0.5932 GB, free: 25.57 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02251/0.4283, allocations: 5.555 MB / 0.5986 GB, free: 23.85 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.455e-05/0.4284, allocations: 1.938 kB / 0.5986 GB, free: 23.85 MB / 430.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.0135/0.4419, allocations: 4.361 MB / 0.6029 GB, free: 22.66 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.439e-05/0.442, allocations: 64 kB / 0.6029 GB, free: 22.59 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.4421, allocations: 2.188 kB / 0.6029 GB, free: 22.59 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006079/0.4481, allocations: 1.581 MB / 0.6045 GB, free: 22.32 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001661/0.4498, allocations: 286.3 kB / 0.6047 GB, free: 22.26 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01696/0.4668, allocations: 7.839 MB / 0.6124 GB, free: 17.13 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001873/0.4687, allocations: 198.7 kB / 0.6126 GB, free: 16.94 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002437/0.469, allocations: 56.58 kB / 0.6126 GB, free: 16.88 MB / 430.1 MB Warning: Assuming fixed start value for the following 4 variables: order3.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 order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 (160): * Single equations (assignments): 157 * 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 {(19,14,24.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007227/0.4697, allocations: 306.7 kB / 0.6129 GB, free: 16.57 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003391/0.4701, allocations: 126.4 kB / 0.613 GB, free: 16.45 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01093/0.481, allocations: 3.865 MB / 0.6168 GB, free: 12.55 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.257e-05/0.481, allocations: 9 kB / 0.6168 GB, free: 12.54 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.922e-05/0.4811, allocations: 8 kB / 0.6168 GB, free: 12.53 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.386e-05/0.4811, allocations: 7.969 kB / 0.6168 GB, free: 12.52 MB / 430.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 postOpt removeSimpleEquations (simulation): time 0.01274/0.4938, allocations: 5.45 MB / 0.6222 GB, free: 6.965 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.4939, allocations: 0 / 0.6222 GB, free: 6.965 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005196/0.4944, allocations: 95.84 kB / 0.6223 GB, free: 6.871 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00479/0.4992, allocations: 1.608 MB / 0.6238 GB, free: 5.258 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001161/0.4993, allocations: 28.92 kB / 0.6239 GB, free: 5.23 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01748/0.5168, allocations: 8.794 MB / 0.6324 GB, free: 12.16 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.5168, allocations: 0 / 0.6324 GB, free: 12.16 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01462/0.5315, allocations: 4.73 MB / 0.6371 GB, free: 7.395 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005074/0.532, allocations: 219.3 kB / 0.6373 GB, free: 7.16 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003657/0.5324, allocations: 16 kB / 0.6373 GB, free: 7.145 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001324/0.5337, allocations: 120.7 kB / 0.6374 GB, free: 7.027 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006171/0.5344, allocations: 184.7 kB / 0.6376 GB, free: 6.844 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.5345, allocations: 28 kB / 0.6376 GB, free: 6.816 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001318/0.5358, allocations: 0.7276 MB / 0.6383 GB, free: 6.082 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5358, allocations: 0 / 0.6383 GB, free: 6.082 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001729/0.5376, allocations: 479.5 kB / 0.6388 GB, free: 5.613 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 9 (order2.delta,order2.w,order3.delta,order3.w,order3.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 (63): * Single equations (assignments): 60 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01435/0.5519, allocations: 5.31 MB / 0.644 GB, free: 264 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006382/0.5583, allocations: 2.52 MB / 0.6464 GB, free: 13.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.5584, allocations: 0 / 0.6464 GB, free: 13.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004184/0.5626, allocations: 1.591 MB / 0.648 GB, free: 12.07 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001379/0.564, allocations: 114.7 kB / 0.6481 GB, free: 11.96 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04041/0.6044, allocations: 17.14 MB / 0.6648 GB, free: 10.41 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008207/0.6053, allocations: 1.12 MB / 0.6659 GB, free: 9.266 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.000602/0.6059, allocations: 116 kB / 0.666 GB, free: 9.152 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007392/0.6066, allocations: 476.2 kB / 0.6665 GB, free: 8.688 MB / 478.1 MB Notification: Performance of SimCode: time 1.042e-06/0.6066, allocations: 0 / 0.6665 GB, free: 8.688 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05252/0.6592, allocations: 31.71 MB / 0.6974 GB, free: 9.395 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002243/0.6594, allocations: 247.2 kB / 0.6977 GB, free: 9.133 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.589/3.248, allocations: 4 kB / 0.6977 GB, free: 9.129 MB / 0.4981 GB (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_OpenIPSL_Examples_PSATSystems_TwoAreaOld_ThirdOrder_AVRII.fmu > OpenIPSL_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)