Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_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.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,fileNamePrefix="OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_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.001151/0.001151, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.382/1.382, allocations: 222.9 MB / 239 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.001247/0.001246, allocations: 184.5 kB / 289.3 MB, free: 2.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5591/0.5591, allocations: 91.9 MB / 431.3 MB, free: 9.402 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001702/0.001702, allocations: 75.88 kB / 0.5015 GB, free: 7.977 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4216/0.4234, allocations: 71.25 MB / 0.5711 GB, free: 36.48 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII): time 0.00621/0.4296, allocations: 6.974 MB / 0.5779 GB, free: 32.44 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003536/0.4332, allocations: 2.03 MB / 0.5799 GB, free: 31.07 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004512/0.4337, allocations: 12.5 kB / 0.5799 GB, free: 31.07 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006486/0.4344, allocations: 191.8 kB / 0.5801 GB, free: 30.99 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001598/0.436, allocations: 0.7114 MB / 0.5808 GB, free: 30.53 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00103/0.437, allocations: 0.5962 MB / 0.5813 GB, free: 30.22 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001209/0.4382, allocations: 1.63 MB / 0.5829 GB, free: 29.42 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004276/0.4387, allocations: 331.4 kB / 0.5832 GB, free: 29.28 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006223/0.4393, allocations: 0.6725 MB / 0.5839 GB, free: 28.95 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007312/0.44, allocations: 0.861 MB / 0.5847 GB, free: 28.54 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001649/0.4402, allocations: 131.5 kB / 0.5849 GB, free: 28.54 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004393/0.4406, allocations: 272.8 kB / 0.5851 GB, free: 28.48 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002417/0.4409, allocations: 342.9 kB / 0.5855 GB, free: 28.27 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004561/0.4414, allocations: 0.6892 MB / 0.5861 GB, free: 27.8 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001537/0.4429, allocations: 1.688 MB / 0.5878 GB, free: 27.04 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.4429, allocations: 3.328 kB / 0.5878 GB, free: 27.04 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4429, allocations: 1.156 kB / 0.5878 GB, free: 27.04 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.616e-05/0.4429, allocations: 0 / 0.5878 GB, free: 27.04 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: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.008814/0.4518, allocations: 2.751 MB / 0.5905 GB, free: 25.76 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.493e-05/0.4518, allocations: 13.34 kB / 0.5905 GB, free: 25.75 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001559/0.452, allocations: 124.8 kB / 0.5906 GB, free: 25.66 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004873/0.4569, allocations: 0.7795 MB / 0.5914 GB, free: 25.5 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001659/0.4585, allocations: 0.9035 MB / 0.5922 GB, free: 24.9 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002986/0.4589, allocations: 264.9 kB / 0.5925 GB, free: 24.68 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002184/0.4591, allocations: 87.09 kB / 0.5926 GB, free: 24.64 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00244/0.4615, allocations: 1.1 MB / 0.5937 GB, free: 24.22 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.495e-05/0.4616, allocations: 3.938 kB / 0.5937 GB, free: 24.22 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001017/0.4617, allocations: 30.25 kB / 0.5937 GB, free: 24.2 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.289e-05/0.4617, allocations: 18.38 kB / 0.5937 GB, free: 24.2 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002357/0.4641, allocations: 0.9947 MB / 0.5947 GB, free: 23.86 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.007617/0.4717, allocations: 3.884 MB / 0.5985 GB, free: 21.62 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007888/0.4796, allocations: 2.387 MB / 0.6008 GB, free: 20.79 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00154/0.4812, allocations: 0.6838 MB / 0.6015 GB, free: 20.52 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001273/0.4813, allocations: 17.05 kB / 0.6015 GB, free: 20.52 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001845/0.4832, allocations: 0.8331 MB / 0.6023 GB, free: 20.19 MB / 430.1 MB Notification: Performance of pre-optimization done (n=97): time 7.343e-06/0.4832, allocations: 0 / 0.6023 GB, free: 20.19 MB / 430.1 MB Notification: Performance of matching and sorting (n=97): time 0.03205/0.5152, allocations: 7.224 MB / 0.6094 GB, free: 18.78 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.828e-05/0.5154, allocations: 117.6 kB / 0.6095 GB, free: 18.65 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003244/0.5186, allocations: 1.125 MB / 0.6106 GB, free: 18.19 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000344/0.519, allocations: 46.2 kB / 0.6106 GB, free: 18.14 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006361/0.5197, allocations: 0.5032 MB / 0.6111 GB, free: 17.73 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007625/0.5204, allocations: 358.2 kB / 0.6114 GB, free: 17.46 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001322/0.5218, allocations: 294.2 kB / 0.6117 GB, free: 17.32 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.26e-05/0.5219, allocations: 301.9 kB / 0.612 GB, free: 17.03 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002023/0.5239, allocations: 0.7809 MB / 0.6128 GB, free: 16.73 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002181/0.5261, allocations: 0.9557 MB / 0.6137 GB, free: 16.28 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02526/0.5513, allocations: 5.809 MB / 0.6194 GB, free: 12.75 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.395e-05/0.5514, allocations: 0 / 0.6194 GB, free: 12.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.01368/0.5651, allocations: 4.453 MB / 0.6237 GB, free: 8.262 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.621e-05/0.5652, allocations: 65.58 kB / 0.6238 GB, free: 8.188 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.136e-05/0.5653, allocations: 4 kB / 0.6238 GB, free: 8.184 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005722/0.571, allocations: 1.639 MB / 0.6254 GB, free: 6.543 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00161/0.5726, allocations: 291.5 kB / 0.6257 GB, free: 6.258 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01994/0.5926, allocations: 8.623 MB / 0.6341 GB, free: 13.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002588/0.5952, allocations: 202.6 kB / 0.6343 GB, free: 13.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003744/0.5956, allocations: 63.98 kB / 0.6343 GB, free: 13.21 MB / 446.1 MB Warning: Assuming fixed start value for the following 5 variables: order5.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 order5.delta:VARIABLE(flow=false start = order5.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order5.e1q:VARIABLE(start = order5.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 (167): * Single equations (assignments): 164 * 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 {(20,14,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001085/0.5967, allocations: 299.2 kB / 0.6346 GB, free: 12.91 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005535/0.5973, allocations: 126.5 kB / 0.6348 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01385/0.6112, allocations: 3.904 MB / 0.6386 GB, free: 8.848 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.126e-05/0.6112, allocations: 15.98 kB / 0.6386 GB, free: 8.832 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.576e-05/0.6113, allocations: 4 kB / 0.6386 GB, free: 8.828 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.579e-05/0.6113, allocations: 3.984 kB / 0.6386 GB, free: 8.824 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.01629/0.6276, allocations: 5.512 MB / 0.644 GB, free: 3.199 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.824e-05/0.6277, allocations: 4 kB / 0.644 GB, free: 3.195 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007937/0.6285, allocations: 103.8 kB / 0.6441 GB, free: 3.094 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005708/0.6342, allocations: 1.595 MB / 0.6456 GB, free: 1.492 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002057/0.6344, allocations: 19.98 kB / 0.6457 GB, free: 1.473 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02174/0.6562, allocations: 9.662 MB / 0.6551 GB, free: 7.52 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.6562, allocations: 0 / 0.6551 GB, free: 7.52 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01528/0.6715, allocations: 4.772 MB / 0.6597 GB, free: 2.715 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007083/0.6723, allocations: 227.2 kB / 0.66 GB, free: 2.473 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005455/0.6728, allocations: 23.94 kB / 0.66 GB, free: 2.449 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001706/0.6745, allocations: 115.9 kB / 0.6601 GB, free: 2.336 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008072/0.6754, allocations: 192.7 kB / 0.6603 GB, free: 2.145 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001488/0.6755, allocations: 28 kB / 0.6603 GB, free: 2.117 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001594/0.6771, allocations: 0.7592 MB / 0.661 GB, free: 1.352 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.6771, allocations: 0 / 0.661 GB, free: 1.352 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002205/0.6794, allocations: 487.5 kB / 0.6615 GB, free: 0.875 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order2.delta,order2.w,order5.delta,order5.w,order5.e1q,order5.e2q,order5.e2d,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 (65): * Single equations (assignments): 62 * 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 {(18,14,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01543/0.6948, allocations: 5.355 MB / 0.6667 GB, free: 11.48 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007989/0.7028, allocations: 2.636 MB / 0.6693 GB, free: 8.801 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/0.7029, allocations: 0.75 kB / 0.6693 GB, free: 8.801 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004553/0.7074, allocations: 1.598 MB / 0.6709 GB, free: 7.16 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001722/0.7092, allocations: 116.5 kB / 0.671 GB, free: 7.043 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04489/0.7541, allocations: 17.69 MB / 0.6883 GB, free: 4.898 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008644/0.755, allocations: 1.128 MB / 0.6894 GB, free: 3.742 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0006864/0.7557, allocations: 124.1 kB / 0.6895 GB, free: 3.617 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007993/0.7565, allocations: 471.3 kB / 0.6899 GB, free: 3.16 MB / 494.1 MB Notification: Performance of SimCode: time 7.72e-07/0.7565, allocations: 0 / 0.6899 GB, free: 3.16 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1005/0.857, allocations: 33.91 MB / 0.7231 GB, free: 1.48 MB / 0.5137 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000277/0.8573, allocations: 241.8 kB / 0.7233 GB, free: 1.227 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.938/3.796, allocations: 0 / 0.7233 GB, free: 1.227 MB / 0.5137 GB (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_dev_OpenIPSL_Examples_PSATSystems_TwoAreaOld_FifthOrder_AVRII.fmu > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe 2>&1)