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.0008262/0.0008263, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.381/1.381, allocations: 223.3 MB / 239.4 MB, free: 5.496 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.000926/0.000926, allocations: 172.6 kB / 290.6 MB, free: 2.176 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5437/0.5437, allocations: 91.93 MB / 433.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004027/0.0004032, allocations: 8 kB / 0.5049 GB, free: 7.176 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.464/0.4644, allocations: 72.47 MB / 0.5756 GB, free: 36.72 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRII): time 0.005307/0.4697, allocations: 6.414 MB / 0.5819 GB, free: 32.39 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00425/0.474, allocations: 2.006 MB / 0.5839 GB, free: 30.97 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008908/0.4749, allocations: 12.31 kB / 0.5839 GB, free: 30.97 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000801/0.4758, allocations: 186.5 kB / 0.584 GB, free: 30.89 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002175/0.4779, allocations: 0.7076 MB / 0.5847 GB, free: 30.45 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001374/0.4793, allocations: 0.5855 MB / 0.5853 GB, free: 30.14 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00182/0.4812, allocations: 1.497 MB / 0.5868 GB, free: 29.42 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005744/0.4817, allocations: 280.3 kB / 0.587 GB, free: 29.3 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007877/0.4825, allocations: 0.568 MB / 0.5876 GB, free: 29.05 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007735/0.4833, allocations: 0.7447 MB / 0.5883 GB, free: 28.71 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001324/0.4835, allocations: 62.55 kB / 0.5884 GB, free: 28.71 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004952/0.484, allocations: 196.7 kB / 0.5886 GB, free: 28.66 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002422/0.4842, allocations: 256.7 kB / 0.5888 GB, free: 28.52 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005058/0.4847, allocations: 0.6252 MB / 0.5894 GB, free: 28.09 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001401/0.4861, allocations: 1.55 MB / 0.5909 GB, free: 27.52 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.4862, allocations: 0.9688 kB / 0.5909 GB, free: 27.52 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.4862, allocations: 0 / 0.5909 GB, free: 27.52 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.509e-05/0.4862, allocations: 0 / 0.5909 GB, free: 27.52 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.008906/0.4951, allocations: 2.494 MB / 0.5934 GB, free: 26.39 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.73e-05/0.4952, allocations: 9.562 kB / 0.5934 GB, free: 26.39 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000262/0.4954, allocations: 127.2 kB / 0.5935 GB, free: 26.3 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005096/0.5005, allocations: 0.7823 MB / 0.5943 GB, free: 26.15 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001636/0.5022, allocations: 0.8783 MB / 0.5951 GB, free: 25.56 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002888/0.5025, allocations: 273.4 kB / 0.5954 GB, free: 25.33 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001798/0.5027, allocations: 85.94 kB / 0.5955 GB, free: 25.3 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002251/0.505, allocations: 1.148 MB / 0.5966 GB, free: 24.88 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.27e-05/0.505, allocations: 0 / 0.5966 GB, free: 24.88 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.326e-05/0.5051, allocations: 34.62 kB / 0.5966 GB, free: 24.85 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.311e-05/0.5051, allocations: 22.33 kB / 0.5966 GB, free: 24.85 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002272/0.5074, allocations: 1.051 MB / 0.5977 GB, free: 24.51 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.007496/0.5149, allocations: 3.936 MB / 0.6015 GB, free: 22.29 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008724/0.5236, allocations: 2.909 MB / 0.6044 GB, free: 21.4 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00174/0.5254, allocations: 0.7442 MB / 0.6051 GB, free: 21.12 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001097/0.5255, allocations: 20.78 kB / 0.6051 GB, free: 21.12 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001893/0.5274, allocations: 0.8763 MB / 0.606 GB, free: 20.79 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 3.687e-06/0.5274, allocations: 0 / 0.606 GB, free: 20.79 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.0344/0.5619, allocations: 8.671 MB / 0.6144 GB, free: 19.21 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.576e-05/0.562, allocations: 117.9 kB / 0.6145 GB, free: 19.09 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002571/0.5645, allocations: 1.079 MB / 0.6156 GB, free: 18.64 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002652/0.5648, allocations: 51.02 kB / 0.6156 GB, free: 18.59 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004654/0.5653, allocations: 498.3 kB / 0.6161 GB, free: 18.2 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005822/0.5659, allocations: 355.8 kB / 0.6165 GB, free: 17.93 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003604/0.5663, allocations: 151 kB / 0.6166 GB, free: 17.85 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.232e-05/0.5663, allocations: 301.1 kB / 0.6169 GB, free: 17.55 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001737/0.5681, allocations: 0.8253 MB / 0.6177 GB, free: 17.18 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001825/0.5699, allocations: 1.001 MB / 0.6187 GB, free: 16.62 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02292/0.5928, allocations: 6.003 MB / 0.6245 GB, free: 11.01 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.156e-05/0.5929, allocations: 4 kB / 0.6245 GB, free: 11 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.0134/0.6063, allocations: 5.168 MB / 0.6296 GB, free: 5.809 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.677e-05/0.6064, allocations: 59.41 kB / 0.6296 GB, free: 5.738 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.583e-05/0.6064, allocations: 4 kB / 0.6296 GB, free: 5.734 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005548/0.612, allocations: 1.79 MB / 0.6314 GB, free: 3.941 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001426/0.6134, allocations: 299.6 kB / 0.6317 GB, free: 3.648 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01958/0.633, allocations: 8.621 MB / 0.6401 GB, free: 10.88 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002279/0.6353, allocations: 242.8 kB / 0.6403 GB, free: 10.64 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001389/0.6354, allocations: 51.98 kB / 0.6404 GB, free: 10.59 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.0006832/0.6361, allocations: 299.1 kB / 0.6407 GB, free: 10.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000225/0.6364, allocations: 130.4 kB / 0.6408 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01491/0.6513, allocations: 4.709 MB / 0.6454 GB, free: 5.41 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.677e-05/0.6513, allocations: 8 kB / 0.6454 GB, free: 5.402 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-05/0.6514, allocations: 19.86 kB / 0.6454 GB, free: 5.383 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.719e-05/0.6514, allocations: 3.984 kB / 0.6454 GB, free: 5.379 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.01754/0.6689, allocations: 6.309 MB / 0.6516 GB, free: 14.96 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.765e-06/0.669, allocations: 0 / 0.6516 GB, free: 14.96 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006045/0.6696, allocations: 103.8 kB / 0.6517 GB, free: 14.86 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006439/0.6761, allocations: 1.883 MB / 0.6535 GB, free: 12.96 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001198/0.6762, allocations: 16 kB / 0.6535 GB, free: 12.95 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02211/0.6983, allocations: 9.691 MB / 0.663 GB, free: 2.977 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.6983, allocations: 0 / 0.663 GB, free: 2.977 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01686/0.7152, allocations: 5.643 MB / 0.6685 GB, free: 13.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006371/0.7159, allocations: 223.3 kB / 0.6687 GB, free: 13.06 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003499/0.7163, allocations: 23.98 kB / 0.6687 GB, free: 13.04 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001419/0.7177, allocations: 143.8 kB / 0.6689 GB, free: 12.89 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006418/0.7183, allocations: 196.7 kB / 0.6691 GB, free: 12.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.751e-05/0.7185, allocations: 31.98 kB / 0.6691 GB, free: 12.67 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001289/0.7197, allocations: 0.7235 MB / 0.6698 GB, free: 11.94 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7198, allocations: 0 / 0.6698 GB, free: 11.94 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001715/0.7215, allocations: 475.5 kB / 0.6703 GB, free: 11.47 MB / 478.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.01684/0.7383, allocations: 6.231 MB / 0.6763 GB, free: 5.199 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007083/0.7454, allocations: 2.795 MB / 0.6791 GB, free: 2.367 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/0.7455, allocations: 0 / 0.6791 GB, free: 2.367 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004872/0.7504, allocations: 1.792 MB / 0.6808 GB, free: 0.5352 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/0.7517, allocations: 115.9 kB / 0.6809 GB, free: 432 kB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04582/0.7976, allocations: 18.97 MB / 0.6995 GB, free: 13 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008673/0.7985, allocations: 1.12 MB / 0.7005 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005639/0.7991, allocations: 120 kB / 0.7007 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007364/0.7998, allocations: 478 kB / 0.7011 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of SimCode: time 6.02e-07/0.7998, allocations: 0 / 0.7011 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.339/1.139, allocations: 31.07 MB / 0.7315 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003569/1.139, allocations: 245.6 kB / 0.7317 GB, free: 12.17 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.684/3.823, allocations: 0 / 0.7317 GB, free: 12.17 MB / 0.5294 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)