Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII,fileNamePrefix="OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 176.1 kB / 15.42 MB, free: 6.148 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.287/1.287, allocations: 222.8 MB / 239 MB, free: 88 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006815/0.0006816, allocations: 98.84 kB / 289.8 MB, free: 4.547 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.3042/0.3042, allocations: 78.44 MB / 418.9 MB, free: 64 kB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003401/0.0003402, allocations: 8 kB / 498.5 MB, free: 35.35 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3304/0.3307, allocations: 68.74 MB / 0.554 GB, free: 10.44 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII): time 0.00695/0.3377, allocations: 7.01 MB / 0.5608 GB, free: 5.758 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003888/0.3417, allocations: 2.061 MB / 0.5628 GB, free: 4.289 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008625/0.3426, allocations: 11.28 kB / 0.5628 GB, free: 4.289 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006446/0.3432, allocations: 185.7 kB / 0.563 GB, free: 4.215 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001785/0.345, allocations: 0.7267 MB / 0.5637 GB, free: 3.742 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001323/0.3464, allocations: 0.6114 MB / 0.5643 GB, free: 3.398 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001611/0.348, allocations: 1.575 MB / 0.5659 GB, free: 2.648 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00043/0.3484, allocations: 289.1 kB / 0.5661 GB, free: 2.508 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008746/0.3493, allocations: 0.5986 MB / 0.5667 GB, free: 2.238 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009035/0.3502, allocations: 0.7861 MB / 0.5675 GB, free: 1.898 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000169/0.3504, allocations: 64.09 kB / 0.5675 GB, free: 1.898 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005303/0.3509, allocations: 195.8 kB / 0.5677 GB, free: 1.855 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002558/0.3512, allocations: 277.1 kB / 0.568 GB, free: 1.699 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005158/0.3517, allocations: 0.622 MB / 0.5686 GB, free: 1.297 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001773/0.3535, allocations: 1.622 MB / 0.5702 GB, free: 0.7031 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.3535, allocations: 5.125 kB / 0.5702 GB, free: 0.6992 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3535, allocations: 0 / 0.5702 GB, free: 0.6992 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.083e-05/0.3536, allocations: 0 / 0.5702 GB, free: 0.6992 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.0087/0.3623, allocations: 2.513 MB / 0.5726 GB, free: 15.57 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.3623, allocations: 9.031 kB / 0.5727 GB, free: 15.57 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003289/0.3627, allocations: 128.8 kB / 0.5728 GB, free: 15.48 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00531/0.368, allocations: 0.7803 MB / 0.5735 GB, free: 15.32 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00206/0.3701, allocations: 0.9246 MB / 0.5744 GB, free: 14.7 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002887/0.3704, allocations: 262.3 kB / 0.5747 GB, free: 14.47 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001805/0.3706, allocations: 84.55 kB / 0.5748 GB, free: 14.45 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002356/0.3729, allocations: 1.112 MB / 0.5759 GB, free: 13.91 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.791e-05/0.373, allocations: 1.281 kB / 0.5759 GB, free: 13.91 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.31e-05/0.3731, allocations: 29.94 kB / 0.5759 GB, free: 13.89 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.722e-05/0.3731, allocations: 22.73 kB / 0.5759 GB, free: 13.89 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002113/0.3752, allocations: 1.007 MB / 0.5769 GB, free: 13.41 MB / 394.7 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.006917/0.3821, allocations: 3.922 MB / 0.5807 GB, free: 10.3 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007401/0.3895, allocations: 2.404 MB / 0.5831 GB, free: 8.984 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001508/0.3911, allocations: 0.6984 MB / 0.5838 GB, free: 8.617 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001189/0.3912, allocations: 19.98 kB / 0.5838 GB, free: 8.609 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001607/0.3928, allocations: 0.8336 MB / 0.5846 GB, free: 8.105 MB / 394.7 MB Notification: Performance of pre-optimization done (n=98): time 2.975e-06/0.3928, allocations: 0 / 0.5846 GB, free: 8.105 MB / 394.7 MB Notification: Performance of matching and sorting (n=98): time 0.02761/0.4205, allocations: 7.084 MB / 0.5915 GB, free: 4.449 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.762e-05/0.4206, allocations: 119.8 kB / 0.5916 GB, free: 4.309 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001904/0.4225, allocations: 1.135 MB / 0.5927 GB, free: 3.16 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002444/0.4227, allocations: 45.7 kB / 0.5928 GB, free: 3.109 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003595/0.4231, allocations: 0.497 MB / 0.5933 GB, free: 2.605 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003989/0.4235, allocations: 366.8 kB / 0.5936 GB, free: 2.242 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002119/0.4237, allocations: 161.5 kB / 0.5938 GB, free: 2.078 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.862e-05/0.4238, allocations: 301.1 kB / 0.594 GB, free: 1.781 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001639/0.4255, allocations: 0.8004 MB / 0.5948 GB, free: 0.9805 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001734/0.4272, allocations: 0.9694 MB / 0.5958 GB, free: 15.97 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02441/0.4516, allocations: 5.924 MB / 0.6016 GB, free: 9.961 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.063e-06/0.4517, allocations: 0 / 0.6016 GB, free: 9.961 MB / 410.7 MB Notification: Performance of matching and sorting (n=204) (initialization): time 0.01371/0.4654, allocations: 4.512 MB / 0.606 GB, free: 5.418 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.489e-05/0.4655, allocations: 63.39 kB / 0.606 GB, free: 5.344 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.815e-05/0.4655, allocations: 4 kB / 0.606 GB, free: 5.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005991/0.4715, allocations: 1.662 MB / 0.6077 GB, free: 3.676 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001642/0.4732, allocations: 295.6 kB / 0.6079 GB, free: 3.387 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01844/0.4916, allocations: 7.95 MB / 0.6157 GB, free: 11.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002052/0.4937, allocations: 210.6 kB / 0.6159 GB, free: 11.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001298/0.4939, allocations: 59.98 kB / 0.616 GB, free: 11.02 MB / 426.7 MB Warning: Assuming fixed start value for the following 4 variables: order6.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 order6.delta:VARIABLE(flow=false start = order6.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 (171): * Single equations (assignments): 168 * 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.0006162/0.4945, allocations: 303.5 kB / 0.6162 GB, free: 10.71 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002096/0.4947, allocations: 134.4 kB / 0.6164 GB, free: 10.58 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01217/0.5069, allocations: 3.908 MB / 0.6202 GB, free: 6.648 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.466e-05/0.5069, allocations: 12 kB / 0.6202 GB, free: 6.637 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/0.5069, allocations: 8 kB / 0.6202 GB, free: 6.629 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.205e-05/0.507, allocations: 3.984 kB / 0.6202 GB, free: 6.625 MB / 426.7 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.01453/0.5215, allocations: 5.555 MB / 0.6256 GB, free: 0.957 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.267e-06/0.5215, allocations: 0 / 0.6256 GB, free: 0.957 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007449/0.5223, allocations: 107.9 kB / 0.6257 GB, free: 0.8516 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005339/0.5276, allocations: 1.598 MB / 0.6273 GB, free: 15.25 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002504/0.5279, allocations: 19.98 kB / 0.6273 GB, free: 15.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01785/0.5458, allocations: 8.785 MB / 0.6359 GB, free: 6.16 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.5458, allocations: 8 kB / 0.6359 GB, free: 6.152 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01428/0.5601, allocations: 4.795 MB / 0.6406 GB, free: 1.32 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005191/0.5606, allocations: 235.2 kB / 0.6408 GB, free: 1.07 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002059/0.5609, allocations: 20 kB / 0.6408 GB, free: 1.051 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001243/0.5621, allocations: 103.9 kB / 0.6409 GB, free: 0.9492 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005927/0.5627, allocations: 200.6 kB / 0.6411 GB, free: 0.7539 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.88e-05/0.5628, allocations: 28 kB / 0.6412 GB, free: 0.7266 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001119/0.5639, allocations: 0.7634 MB / 0.6419 GB, free: 15.96 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5639, allocations: 0 / 0.6419 GB, free: 15.96 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001434/0.5654, allocations: 487.6 kB / 0.6424 GB, free: 15.48 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (order2.delta,order2.w,order6.delta,order6.w,order6.e1q,order6.e1d,order6.e2q,order6.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 (66): * Single equations (assignments): 63 * 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.01453/0.5799, allocations: 5.416 MB / 0.6477 GB, free: 10.02 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006772/0.5867, allocations: 2.616 MB / 0.6502 GB, free: 7.359 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.5868, allocations: 3.938 kB / 0.6502 GB, free: 7.355 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004452/0.5912, allocations: 1.608 MB / 0.6518 GB, free: 5.711 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00133/0.5926, allocations: 120.6 kB / 0.6519 GB, free: 5.594 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04274/0.6353, allocations: 17.96 MB / 0.6694 GB, free: 3.184 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007031/0.6361, allocations: 1.132 MB / 0.6705 GB, free: 2.02 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0006683/0.6368, allocations: 124.3 kB / 0.6707 GB, free: 1.895 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006455/0.6374, allocations: 487.3 kB / 0.6711 GB, free: 1.418 MB / 474.7 MB Notification: Performance of SimCode: time 5.11e-07/0.6374, allocations: 0 / 0.6711 GB, free: 1.418 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05512/0.6926, allocations: 32.37 MB / 0.7027 GB, free: 1.281 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001751/0.6928, allocations: 244.2 kB / 0.703 GB, free: 1.027 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.081/3.774, allocations: 7.938 kB / 0.703 GB, free: 1.02 MB / 0.4948 GB (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 OpenIPSL_release_OpenIPSL_Examples_PSATSystems_TwoAreaOld_SixthOrder_AVRII.fmu > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.SixthOrder_AVRII.pipe 2>&1)