Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_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.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: translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001545/0.001545, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.355/1.355, allocations: 222.9 MB / 238.8 MB, free: 4.672 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.001573/0.001573, allocations: 192.3 kB / 289.1 MB, free: 2.414 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5467/0.5467, allocations: 91.89 MB / 431.2 MB, free: 9.422 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001673/0.001673, allocations: 75.88 kB / 0.5012 GB, free: 8.156 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4191/0.4208, allocations: 71.26 MB / 0.5708 GB, free: 36.46 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII): time 0.005993/0.4268, allocations: 6.823 MB / 0.5775 GB, free: 32.52 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.005377/0.4322, allocations: 2.004 MB / 0.5794 GB, free: 31.2 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001752/0.434, allocations: 13.81 kB / 0.5794 GB, free: 31.2 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001149/0.4352, allocations: 189.2 kB / 0.5796 GB, free: 31.12 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002907/0.4382, allocations: 0.717 MB / 0.5803 GB, free: 30.66 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001391/0.4396, allocations: 0.5832 MB / 0.5809 GB, free: 30.36 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00165/0.4412, allocations: 1.493 MB / 0.5823 GB, free: 29.64 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003997/0.4416, allocations: 293.5 kB / 0.5826 GB, free: 29.51 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006239/0.4423, allocations: 0.5882 MB / 0.5832 GB, free: 29.24 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006588/0.4429, allocations: 0.7807 MB / 0.584 GB, free: 28.89 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001459/0.4431, allocations: 71.19 kB / 0.584 GB, free: 28.89 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004566/0.4436, allocations: 201.9 kB / 0.5842 GB, free: 28.84 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002269/0.4438, allocations: 285.5 kB / 0.5845 GB, free: 28.68 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004172/0.4442, allocations: 0.6212 MB / 0.5851 GB, free: 28.27 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001111/0.4453, allocations: 1.589 MB / 0.5866 GB, free: 27.57 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.4454, allocations: 1.188 kB / 0.5866 GB, free: 27.57 MB / 430.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.4454, allocations: 0 / 0.5866 GB, free: 27.57 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.51e-05/0.4454, allocations: 0 / 0.5866 GB, free: 27.57 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.00853/0.4539, allocations: 2.689 MB / 0.5893 GB, free: 26.3 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.454, allocations: 9.781 kB / 0.5893 GB, free: 26.3 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004991/0.459, allocations: 0.7759 MB / 0.59 GB, free: 26.14 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001513/0.4605, allocations: 0.8826 MB / 0.5909 GB, free: 25.54 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002547/0.4608, allocations: 264.6 kB / 0.5912 GB, free: 25.32 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001649/0.461, allocations: 85.69 kB / 0.5912 GB, free: 25.29 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002058/0.463, allocations: 1.082 MB / 0.5923 GB, free: 24.87 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/0.4631, allocations: 3.328 kB / 0.5923 GB, free: 24.87 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.169e-05/0.4632, allocations: 34.97 kB / 0.5923 GB, free: 24.84 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.043e-05/0.4632, allocations: 17.91 kB / 0.5923 GB, free: 24.84 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001961/0.4652, allocations: 0.9853 MB / 0.5933 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.00656/0.4717, allocations: 3.817 MB / 0.597 GB, free: 22.3 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007396/0.4791, allocations: 2.359 MB / 0.5993 GB, free: 21.48 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001597/0.4808, allocations: 0.6803 MB / 0.6 GB, free: 21.21 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001097/0.4809, allocations: 17.2 kB / 0.6 GB, free: 21.21 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001721/0.4826, allocations: 0.8237 MB / 0.6008 GB, free: 20.88 MB / 430.1 MB Notification: Performance of pre-optimization done (n=95): time 2.444e-06/0.4826, allocations: 1.344 kB / 0.6008 GB, free: 20.88 MB / 430.1 MB Notification: Performance of matching and sorting (n=95): time 0.03043/0.5131, allocations: 7.189 MB / 0.6078 GB, free: 19.5 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.926e-05/0.5132, allocations: 122 kB / 0.608 GB, free: 19.36 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002135/0.5153, allocations: 1.086 MB / 0.609 GB, free: 18.92 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003109/0.5156, allocations: 50.05 kB / 0.6091 GB, free: 18.87 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003455/0.516, allocations: 499 kB / 0.6095 GB, free: 18.48 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000385/0.5164, allocations: 352.1 kB / 0.6099 GB, free: 18.2 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005593/0.517, allocations: 279.6 kB / 0.6101 GB, free: 18.08 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.117e-05/0.517, allocations: 303.4 kB / 0.6104 GB, free: 17.78 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00163/0.5187, allocations: 0.7554 MB / 0.6112 GB, free: 17.5 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001749/0.5204, allocations: 0.9283 MB / 0.6121 GB, free: 17.07 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02279/0.5432, allocations: 5.557 MB / 0.6175 GB, free: 14.3 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.466e-05/0.5433, allocations: 8.953 kB / 0.6175 GB, free: 14.29 MB / 430.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.01156/0.5548, allocations: 4.352 MB / 0.6218 GB, free: 10.02 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.009e-05/0.5549, allocations: 63.34 kB / 0.6218 GB, free: 9.941 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/0.5549, allocations: 4 kB / 0.6218 GB, free: 9.938 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004947/0.5599, allocations: 1.592 MB / 0.6234 GB, free: 8.344 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001368/0.5613, allocations: 275.6 kB / 0.6236 GB, free: 8.074 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01556/0.5769, allocations: 7.841 MB / 0.6313 GB, free: 88 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00201/0.5789, allocations: 198.8 kB / 0.6315 GB, free: 15.89 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001743/0.5791, allocations: 59.97 kB / 0.6316 GB, free: 15.83 MB / 446.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.0006518/0.5797, allocations: 300.2 kB / 0.6318 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000247/0.58, allocations: 126.4 kB / 0.632 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0126/0.5926, allocations: 3.865 MB / 0.6357 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.803e-05/0.5927, allocations: 11.98 kB / 0.6357 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.657e-05/0.5927, allocations: 11.94 kB / 0.6358 GB, free: 11.47 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.425e-05/0.5927, allocations: 7.984 kB / 0.6358 GB, free: 11.46 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.01464/0.6074, allocations: 5.457 MB / 0.6411 GB, free: 5.895 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.347e-05/0.6074, allocations: 0 / 0.6411 GB, free: 5.895 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000707/0.6082, allocations: 95.89 kB / 0.6412 GB, free: 5.801 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005461/0.6136, allocations: 1.607 MB / 0.6428 GB, free: 4.188 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002028/0.6139, allocations: 19.98 kB / 0.6428 GB, free: 4.168 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01875/0.6326, allocations: 8.789 MB / 0.6514 GB, free: 11.09 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.6327, allocations: 0 / 0.6514 GB, free: 11.09 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0143/0.647, allocations: 4.729 MB / 0.656 GB, free: 6.336 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006188/0.6476, allocations: 219.3 kB / 0.6562 GB, free: 6.102 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002271/0.6478, allocations: 23.98 kB / 0.6562 GB, free: 6.078 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001172/0.649, allocations: 107.9 kB / 0.6563 GB, free: 5.973 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006293/0.6497, allocations: 192.7 kB / 0.6565 GB, free: 5.781 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.047e-05/0.6498, allocations: 24 kB / 0.6565 GB, free: 5.758 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001085/0.6508, allocations: 0.7432 MB / 0.6572 GB, free: 5.008 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6509, allocations: 3.938 kB / 0.6572 GB, free: 5.004 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001524/0.6524, allocations: 471.5 kB / 0.6577 GB, free: 4.543 MB / 462.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.0002657/0.6527, allocations: 131.2 kB / 0.6578 GB, free: 4.402 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006294/0.659, allocations: 2.517 MB / 0.6603 GB, free: 1.848 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.659, allocations: 4.125 kB / 0.6603 GB, free: 1.844 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004268/0.6633, allocations: 1.587 MB / 0.6618 GB, free: 228 kB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001239/0.6646, allocations: 119.2 kB / 0.6619 GB, free: 108 kB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004277/0.6688, allocations: 2.64 MB / 0.6645 GB, free: 13.44 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006404/0.6695, allocations: 1.12 MB / 0.6656 GB, free: 12.29 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005038/0.67, allocations: 116.1 kB / 0.6657 GB, free: 12.18 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002584/0.6703, allocations: 79.41 kB / 0.6658 GB, free: 12.1 MB / 478.1 MB Notification: Performance of SimCode: time 6.41e-07/0.6703, allocations: 0 / 0.6658 GB, free: 12.1 MB / 478.1 MB Notification: Performance of Templates: time 0.03683/0.7071, allocations: 21.57 MB / 0.6869 GB, free: 6.566 MB / 494.1 MB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.ThirdOrder_AVRII.pipe 2>&1)