Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_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.001398/0.001398, allocations: 108 kB / 15.6 MB, free: 132 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.321/1.321, allocations: 222.9 MB / 239.3 MB, free: 4.559 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.001376/0.001376, allocations: 192.5 kB / 289.6 MB, free: 2.297 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5333/0.5333, allocations: 91.89 MB / 431.6 MB, free: 9.234 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001523, allocations: 83.88 kB / 0.502 GB, free: 7.598 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3587/0.3602, allocations: 71.27 MB / 0.5716 GB, free: 36.68 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.006314/0.3666, allocations: 6.58 MB / 0.578 GB, free: 32.87 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004257/0.3709, allocations: 1.963 MB / 0.5799 GB, free: 31.49 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008028/0.3717, allocations: 8.469 kB / 0.5799 GB, free: 31.49 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000726/0.3725, allocations: 243.3 kB / 0.5802 GB, free: 31.36 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001908/0.3744, allocations: 0.799 MB / 0.5809 GB, free: 30.84 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0012/0.3756, allocations: 0.6333 MB / 0.5816 GB, free: 30.52 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001445/0.3771, allocations: 1.572 MB / 0.5831 GB, free: 29.75 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000447/0.3775, allocations: 325.2 kB / 0.5834 GB, free: 29.61 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007351/0.3783, allocations: 0.6484 MB / 0.584 GB, free: 29.29 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000772/0.3791, allocations: 0.825 MB / 0.5848 GB, free: 28.9 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001765/0.3792, allocations: 119.2 kB / 0.585 GB, free: 28.9 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005069/0.3798, allocations: 259.6 kB / 0.5852 GB, free: 28.86 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002421/0.38, allocations: 331 kB / 0.5855 GB, free: 28.64 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000478/0.3805, allocations: 0.6688 MB / 0.5862 GB, free: 28.19 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001469/0.382, allocations: 1.635 MB / 0.5878 GB, free: 27.45 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.902e-06/0.382, allocations: 4 kB / 0.5878 GB, free: 27.45 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.382, allocations: 0 / 0.5878 GB, free: 27.45 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.421e-05/0.382, allocations: 1.281 kB / 0.5878 GB, free: 27.45 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.008648/0.3907, allocations: 2.682 MB / 0.5904 GB, free: 26.18 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.327e-05/0.3908, allocations: 13.47 kB / 0.5904 GB, free: 26.18 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001423/0.3909, allocations: 134.6 kB / 0.5905 GB, free: 26.08 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004981/0.3959, allocations: 0.7731 MB / 0.5913 GB, free: 25.92 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001501/0.3974, allocations: 0.8869 MB / 0.5922 GB, free: 25.32 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002621/0.3977, allocations: 256.2 kB / 0.5924 GB, free: 25.11 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001663/0.3979, allocations: 89.81 kB / 0.5925 GB, free: 25.07 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002004/0.3999, allocations: 1.089 MB / 0.5935 GB, free: 24.65 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.829e-05/0.3999, allocations: 0 / 0.5935 GB, free: 24.65 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.513e-05/0.4, allocations: 30.5 kB / 0.5936 GB, free: 24.63 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.372e-05/0.4, allocations: 18.88 kB / 0.5936 GB, free: 24.63 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001979/0.402, allocations: 0.9863 MB / 0.5946 GB, free: 24.3 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.007017/0.409, allocations: 3.853 MB / 0.5983 GB, free: 22.09 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007738/0.4168, allocations: 2.369 MB / 0.6006 GB, free: 21.25 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00142/0.4182, allocations: 0.6719 MB / 0.6013 GB, free: 20.99 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.7e-05/0.4183, allocations: 20.53 kB / 0.6013 GB, free: 20.98 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001706/0.4201, allocations: 0.8249 MB / 0.6021 GB, free: 20.66 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.467e-06/0.4201, allocations: 0 / 0.6021 GB, free: 20.66 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.0301/0.4502, allocations: 7.084 MB / 0.609 GB, free: 19.27 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.577e-05/0.4503, allocations: 118.3 kB / 0.6091 GB, free: 19.14 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001826/0.4521, allocations: 1.082 MB / 0.6102 GB, free: 18.69 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002818/0.4524, allocations: 43.19 kB / 0.6102 GB, free: 18.65 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003293/0.4527, allocations: 494 kB / 0.6107 GB, free: 18.26 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003733/0.4531, allocations: 360.1 kB / 0.6111 GB, free: 17.98 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005031/0.4536, allocations: 286.4 kB / 0.6113 GB, free: 17.85 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.387e-05/0.4537, allocations: 303 kB / 0.6116 GB, free: 17.55 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001618/0.4553, allocations: 0.7652 MB / 0.6124 GB, free: 17.24 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001664/0.457, allocations: 0.9421 MB / 0.6133 GB, free: 16.68 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0237/0.4807, allocations: 5.581 MB / 0.6187 GB, free: 13.7 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.498e-05/0.4808, allocations: 8 kB / 0.6187 GB, free: 13.69 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01226/0.493, allocations: 4.336 MB / 0.623 GB, free: 9.328 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.188e-05/0.4931, allocations: 55.41 kB / 0.623 GB, free: 9.262 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.635e-05/0.4932, allocations: 7.984 kB / 0.623 GB, free: 9.254 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005026/0.4982, allocations: 1.512 MB / 0.6245 GB, free: 7.738 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001458/0.4997, allocations: 303.6 kB / 0.6248 GB, free: 7.441 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01752/0.5172, allocations: 8.27 MB / 0.6329 GB, free: 15.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002147/0.5194, allocations: 198.8 kB / 0.6331 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000157/0.5196, allocations: 55.97 kB / 0.6331 GB, free: 14.76 MB / 446.1 MB Warning: Assuming fixed start value for the following 4 variables: order4.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 order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.e1q:VARIABLE(start = order4.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 (166): * Single equations (assignments): 163 * 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 {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006876/0.5203, allocations: 307 kB / 0.6334 GB, free: 14.45 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002742/0.5206, allocations: 134.3 kB / 0.6335 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01295/0.5335, allocations: 3.865 MB / 0.6373 GB, free: 10.42 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.892e-05/0.5336, allocations: 15.94 kB / 0.6373 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.386e-05/0.5336, allocations: 4 kB / 0.6373 GB, free: 10.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.704e-05/0.5336, allocations: 7.922 kB / 0.6373 GB, free: 10.39 MB / 446.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.01502/0.5487, allocations: 5.477 MB / 0.6427 GB, free: 4.809 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.47e-05/0.5487, allocations: 0 / 0.6427 GB, free: 4.809 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006663/0.5494, allocations: 95.89 kB / 0.6428 GB, free: 4.715 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005708/0.5551, allocations: 1.598 MB / 0.6443 GB, free: 3.109 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002083/0.5554, allocations: 16 kB / 0.6444 GB, free: 3.094 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02069/0.5761, allocations: 9.642 MB / 0.6538 GB, free: 9.16 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/0.5761, allocations: 3.938 kB / 0.6538 GB, free: 9.156 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01484/0.591, allocations: 4.729 MB / 0.6584 GB, free: 4.395 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006345/0.5916, allocations: 227.3 kB / 0.6586 GB, free: 4.152 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002204/0.5919, allocations: 20 kB / 0.6586 GB, free: 4.133 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001158/0.593, allocations: 107.9 kB / 0.6587 GB, free: 4.027 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006012/0.5937, allocations: 196.7 kB / 0.6589 GB, free: 3.832 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.35e-05/0.5937, allocations: 24 kB / 0.6589 GB, free: 3.809 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00106/0.5948, allocations: 0.7351 MB / 0.6597 GB, free: 3.066 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5948, allocations: 0 / 0.6597 GB, free: 3.066 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00143/0.5963, allocations: 471.5 kB / 0.6601 GB, free: 2.605 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,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 (64): * Single equations (assignments): 61 * 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 {(19,13,24.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.01477/0.611, allocations: 5.318 MB / 0.6653 GB, free: 13.24 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006838/0.6179, allocations: 2.54 MB / 0.6678 GB, free: 10.67 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.623e-06/0.618, allocations: 0 / 0.6678 GB, free: 10.67 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004455/0.6224, allocations: 1.586 MB / 0.6693 GB, free: 9.039 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001192/0.6237, allocations: 116.5 kB / 0.6695 GB, free: 8.922 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03975/0.6634, allocations: 16.76 MB / 0.6858 GB, free: 7.707 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007103/0.6642, allocations: 1.128 MB / 0.6869 GB, free: 6.551 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0006423/0.6648, allocations: 120.1 kB / 0.687 GB, free: 6.43 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006094/0.6655, allocations: 471.3 kB / 0.6875 GB, free: 5.973 MB / 494.1 MB Notification: Performance of SimCode: time 8.41e-07/0.6655, allocations: 0 / 0.6875 GB, free: 5.973 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06552/0.731, allocations: 33.78 MB / 0.7205 GB, free: 4.371 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/12.9, allocations: 9.641 kB / 0.7205 GB, free: 4.363 MB / 0.5137 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FourthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII.pipe 2>&1)