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: translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001039/0.00104, allocations: 105.3 kB / 16.35 MB, free: 5.824 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.274/1.274, allocations: 222.9 MB / 240 MB, free: 4.492 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.001283/0.001282, allocations: 184.5 kB / 290.3 MB, free: 2.219 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4961/0.4961, allocations: 91.9 MB / 432.4 MB, free: 9.148 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 71.89 kB / 0.5033 GB, free: 6.953 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.358/0.3594, allocations: 71.26 MB / 0.5729 GB, free: 36.98 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII): time 0.005448/0.3649, allocations: 6.663 MB / 0.5794 GB, free: 33 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002924/0.3678, allocations: 2 MB / 0.5813 GB, free: 31.59 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003478/0.3682, allocations: 12.62 kB / 0.5813 GB, free: 31.59 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005474/0.3688, allocations: 243.5 kB / 0.5816 GB, free: 31.46 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00135/0.3701, allocations: 0.8162 MB / 0.5824 GB, free: 30.94 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009846/0.3711, allocations: 0.6329 MB / 0.583 GB, free: 30.62 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001093/0.3722, allocations: 1.639 MB / 0.5846 GB, free: 29.82 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003761/0.3726, allocations: 334.2 kB / 0.5849 GB, free: 29.69 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005374/0.3731, allocations: 0.6725 MB / 0.5856 GB, free: 29.36 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006905/0.3738, allocations: 0.8581 MB / 0.5864 GB, free: 28.95 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001519/0.374, allocations: 127.9 kB / 0.5865 GB, free: 28.95 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004061/0.3744, allocations: 266.2 kB / 0.5868 GB, free: 28.91 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000218/0.3746, allocations: 341.4 kB / 0.5871 GB, free: 28.69 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004328/0.3751, allocations: 0.694 MB / 0.5878 GB, free: 28.22 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001278/0.3764, allocations: 1.704 MB / 0.5894 GB, free: 27.46 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3764, allocations: 5.688 kB / 0.5895 GB, free: 27.46 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3764, allocations: 0 / 0.5895 GB, free: 27.46 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.148e-05/0.3764, allocations: 0 / 0.5895 GB, free: 27.46 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.007919/0.3844, allocations: 2.75 MB / 0.5921 GB, free: 26.17 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.3844, allocations: 9.656 kB / 0.5921 GB, free: 26.17 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004666/0.3891, allocations: 0.7778 MB / 0.5929 GB, free: 26.01 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001312/0.3904, allocations: 0.9106 MB / 0.5938 GB, free: 25.4 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002249/0.3906, allocations: 261.9 kB / 0.594 GB, free: 25.18 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001633/0.3908, allocations: 86.47 kB / 0.5941 GB, free: 25.15 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001873/0.3927, allocations: 1.103 MB / 0.5952 GB, free: 24.72 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.3927, allocations: 3.938 kB / 0.5952 GB, free: 24.72 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.39e-05/0.3928, allocations: 30.62 kB / 0.5952 GB, free: 24.7 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.877e-05/0.3928, allocations: 21.66 kB / 0.5953 GB, free: 24.69 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001855/0.3947, allocations: 1.001 MB / 0.5962 GB, free: 24.36 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.006087/0.4008, allocations: 3.848 MB / 0.6 GB, free: 22.14 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006916/0.4077, allocations: 2.389 MB / 0.6023 GB, free: 21.3 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001282/0.409, allocations: 0.6866 MB / 0.603 GB, free: 21.03 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001066/0.4091, allocations: 17.41 kB / 0.603 GB, free: 21.02 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001597/0.4107, allocations: 0.8365 MB / 0.6038 GB, free: 20.7 MB / 430.1 MB Notification: Performance of pre-optimization done (n=97): time 2.464e-06/0.4108, allocations: 0 / 0.6038 GB, free: 20.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=97): time 0.02717/0.4379, allocations: 7.216 MB / 0.6109 GB, free: 19.29 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.814e-05/0.438, allocations: 119 kB / 0.611 GB, free: 19.16 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001821/0.4398, allocations: 1.139 MB / 0.6121 GB, free: 18.52 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001459/0.44, allocations: 42.7 kB / 0.6121 GB, free: 18.48 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002734/0.4403, allocations: 0.4967 MB / 0.6126 GB, free: 18.04 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003081/0.4406, allocations: 365.2 kB / 0.613 GB, free: 17.72 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005065/0.4411, allocations: 287.9 kB / 0.6133 GB, free: 17.55 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.85e-05/0.4412, allocations: 305.1 kB / 0.6135 GB, free: 17.25 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00146/0.4426, allocations: 0.7793 MB / 0.6143 GB, free: 16.86 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001543/0.4442, allocations: 0.9545 MB / 0.6152 GB, free: 16.29 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02166/0.4658, allocations: 5.794 MB / 0.6209 GB, free: 12.69 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.023e-05/0.4659, allocations: 0 / 0.6209 GB, free: 12.69 MB / 430.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.01118/0.4771, allocations: 4.45 MB / 0.6252 GB, free: 8.211 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.642e-05/0.4771, allocations: 67.33 kB / 0.6253 GB, free: 8.133 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.158e-05/0.4771, allocations: 4 kB / 0.6253 GB, free: 8.129 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004937/0.4821, allocations: 1.639 MB / 0.6269 GB, free: 6.488 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/0.4834, allocations: 287.6 kB / 0.6272 GB, free: 6.207 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01693/0.5003, allocations: 8.596 MB / 0.6356 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002159/0.5025, allocations: 210.7 kB / 0.6358 GB, free: 13.25 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000136/0.5027, allocations: 55.92 kB / 0.6358 GB, free: 13.19 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.0006479/0.5033, allocations: 308.3 kB / 0.6361 GB, free: 12.87 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002226/0.5035, allocations: 122.5 kB / 0.6362 GB, free: 12.75 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01162/0.5152, allocations: 3.908 MB / 0.6401 GB, free: 8.816 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-05/0.5152, allocations: 12 kB / 0.6401 GB, free: 8.805 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.5152, allocations: 4 kB / 0.6401 GB, free: 8.801 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.705e-05/0.5153, allocations: 7.984 kB / 0.6401 GB, free: 8.793 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.01376/0.529, allocations: 5.514 MB / 0.6455 GB, free: 3.164 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.529, allocations: 0 / 0.6455 GB, free: 3.164 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006139/0.5297, allocations: 103.8 kB / 0.6456 GB, free: 3.062 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004951/0.5346, allocations: 1.591 MB / 0.6471 GB, free: 1.465 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001292/0.5348, allocations: 20 kB / 0.6471 GB, free: 1.445 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01827/0.553, allocations: 9.653 MB / 0.6566 GB, free: 7.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.5531, allocations: 4 kB / 0.6566 GB, free: 7.496 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01313/0.5662, allocations: 4.778 MB / 0.6612 GB, free: 2.684 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006027/0.5669, allocations: 227.2 kB / 0.6615 GB, free: 2.441 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001764/0.567, allocations: 24.05 kB / 0.6615 GB, free: 2.418 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/0.5682, allocations: 111.8 kB / 0.6616 GB, free: 2.309 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005507/0.5687, allocations: 192.7 kB / 0.6618 GB, free: 2.121 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.865e-05/0.5688, allocations: 31.98 kB / 0.6618 GB, free: 2.09 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00102/0.5698, allocations: 0.7592 MB / 0.6625 GB, free: 1.324 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5698, allocations: 0 / 0.6625 GB, free: 1.324 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001278/0.5711, allocations: 487.5 kB / 0.663 GB, free: 0.8477 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.0002405/0.5714, allocations: 140 kB / 0.6631 GB, free: 0.7031 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00585/0.5772, allocations: 2.586 MB / 0.6657 GB, free: 14.07 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.5773, allocations: 128 / 0.6657 GB, free: 14.07 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003803/0.5811, allocations: 1.594 MB / 0.6672 GB, free: 12.43 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009743/0.5821, allocations: 123.2 kB / 0.6673 GB, free: 12.32 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003762/0.5858, allocations: 2.365 MB / 0.6696 GB, free: 9.934 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006261/0.5865, allocations: 1.124 MB / 0.6707 GB, free: 8.773 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0003918/0.5869, allocations: 124.1 kB / 0.6709 GB, free: 8.648 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002509/0.5871, allocations: 79.41 kB / 0.6709 GB, free: 8.57 MB / 478.1 MB Notification: Performance of SimCode: time 8.42e-07/0.5871, allocations: 0 / 0.6709 GB, free: 8.57 MB / 478.1 MB Notification: Performance of Templates: time 0.03399/0.6211, allocations: 24.16 MB / 0.6945 GB, free: 452 kB / 494.1 MB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.makefile (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 & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe 2>&1)