Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_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.TwoArea.SixthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001559/0.001559, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 222.9 MB / 239.2 MB, free: 4.641 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.001427/0.001427, allocations: 192.5 kB / 289.5 MB, free: 2.359 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5537/0.5537, allocations: 91.89 MB / 431.6 MB, free: 9.285 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001732/0.001732, allocations: 83.86 kB / 0.5019 GB, free: 7.766 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3571/0.3589, allocations: 71.27 MB / 0.5715 GB, free: 36.58 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII): time 0.01529/0.3742, allocations: 21.97 MB / 0.5929 GB, free: 21.3 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01128/0.3855, allocations: 4.916 MB / 0.5977 GB, free: 17.74 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005173/0.3908, allocations: 43.34 kB / 0.5978 GB, free: 17.74 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003229/0.394, allocations: 0.8857 MB / 0.5986 GB, free: 17.26 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008419/0.4025, allocations: 2.055 MB / 0.6006 GB, free: 15.8 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005981/0.4085, allocations: 2.075 MB / 0.6027 GB, free: 14.71 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.009435/0.418, allocations: 5.759 MB / 0.6083 GB, free: 11.76 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003662/0.4217, allocations: 1.322 MB / 0.6096 GB, free: 11.12 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005379/0.4271, allocations: 2.347 MB / 0.6119 GB, free: 9.918 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005959/0.4331, allocations: 2.986 MB / 0.6148 GB, free: 8.406 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003308/0.4364, allocations: 447.2 kB / 0.6152 GB, free: 8.406 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004185/0.4406, allocations: 0.5883 MB / 0.6158 GB, free: 8.363 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003012/0.4436, allocations: 1.165 MB / 0.6169 GB, free: 7.57 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007332/0.451, allocations: 2.639 MB / 0.6195 GB, free: 5.797 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01278/0.4638, allocations: 6.225 MB / 0.6256 GB, free: 2.895 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.114e-06/0.4639, allocations: 0.9688 kB / 0.6256 GB, free: 2.895 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4639, allocations: 0 / 0.6256 GB, free: 2.895 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003757/0.4642, allocations: 0 / 0.6256 GB, free: 2.895 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: 895 * Number of variables: 895 Notification: Performance of Generate backend data structure: time 0.04162/0.5059, allocations: 9.251 MB / 0.6346 GB, free: 13.87 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.667e-05/0.506, allocations: 16.03 kB / 0.6346 GB, free: 13.86 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02906/0.535, allocations: 4.009 MB / 0.6385 GB, free: 9.836 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008355/0.5434, allocations: 2.686 MB / 0.6412 GB, free: 7.066 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001601/0.5451, allocations: 0.9574 MB / 0.6421 GB, free: 5.973 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002254/0.5473, allocations: 348 kB / 0.6424 GB, free: 5.633 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01792/0.5653, allocations: 4.755 MB / 0.6471 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001565/0.5655, allocations: 0 / 0.6471 GB, free: 0.8477 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001672/0.5672, allocations: 144 kB / 0.6472 GB, free: 0.707 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.367e-05/0.5673, allocations: 84 kB / 0.6473 GB, free: 0.625 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01409/0.5814, allocations: 4.26 MB / 0.6515 GB, free: 12.36 MB / 462.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.04561/0.627, allocations: 18.43 MB / 0.6695 GB, free: 8.75 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01416/0.6412, allocations: 5.037 MB / 0.6744 GB, free: 3.633 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007003/0.6483, allocations: 2.794 MB / 0.6771 GB, free: 0.8281 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007848/0.6491, allocations: 66.92 kB / 0.6772 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009212/0.6583, allocations: 3.204 MB / 0.6803 GB, free: 13.52 MB / 494.1 MB Notification: Performance of pre-optimization done (n=385): time 9.077e-06/0.6584, allocations: 3.938 kB / 0.6803 GB, free: 13.51 MB / 494.1 MB Notification: Performance of matching and sorting (n=385): time 0.3172/0.9756, allocations: 66.81 MB / 0.7455 GB, free: 10.51 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.9758, allocations: 141.8 kB / 0.7457 GB, free: 10.34 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006544/0.9823, allocations: 3.27 MB / 0.7489 GB, free: 7.055 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001147/0.9835, allocations: 93.7 kB / 0.749 GB, free: 6.957 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001868/0.9854, allocations: 1.971 MB / 0.7509 GB, free: 4.973 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002652/0.9881, allocations: 1.328 MB / 0.7522 GB, free: 3.625 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003683/0.9918, allocations: 0.6862 MB / 0.7529 GB, free: 2.926 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001213/0.9919, allocations: 305.1 kB / 0.7531 GB, free: 2.625 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006836/0.9988, allocations: 2.62 MB / 0.7557 GB, free: 15.99 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007371/1.006, allocations: 3.249 MB / 0.7589 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3436/1.35, allocations: 19.19 MB / 0.7776 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.577e-05/1.35, allocations: 5.75 kB / 0.7776 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=546) (initialization): time 0.06379/1.414, allocations: 17.24 MB / 0.7945 GB, free: 151.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 8.157e-05/1.414, allocations: 64.17 kB / 0.7945 GB, free: 151.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.254e-05/1.414, allocations: 15.52 kB / 0.7945 GB, free: 151.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02805/1.442, allocations: 7.311 MB / 0.8017 GB, free: 150.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003824/1.446, allocations: 0.6879 MB / 0.8023 GB, free: 150.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09172/1.538, allocations: 33.89 MB / 0.8354 GB, free: 132.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007169/1.545, allocations: 0.623 MB / 0.8361 GB, free: 132.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001087/1.546, allocations: 152 kB / 0.8362 GB, free: 132 MB / 0.5606 GB 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 order3.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order3.delta:VARIABLE(flow=false start = order3.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order3.e1q:VARIABLE(start = order3.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: 65 * 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 (409): * Single equations (assignments): 406 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(92,46)} Notification: Performance of prepare postOptimizeDAE: time 0.00251/1.548, allocations: 0.6845 MB / 0.8369 GB, free: 131.3 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001502/1.55, allocations: 462.3 kB / 0.8373 GB, free: 130.8 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05405/1.604, allocations: 16.88 MB / 0.8538 GB, free: 113.9 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.649e-05/1.604, allocations: 36 kB / 0.8538 GB, free: 113.9 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.717e-05/1.604, allocations: 32 kB / 0.8539 GB, free: 113.8 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001159/1.604, allocations: 19.92 kB / 0.8539 GB, free: 113.8 MB / 0.5606 GB 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.06329/1.667, allocations: 21.92 MB / 0.8753 GB, free: 91.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-05/1.668, allocations: 0 / 0.8753 GB, free: 91.84 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002518/1.67, allocations: 395.5 kB / 0.8757 GB, free: 91.45 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0249/1.695, allocations: 7.352 MB / 0.8828 GB, free: 84.09 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001221/1.696, allocations: 83.25 kB / 0.8829 GB, free: 84.01 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07856/1.775, allocations: 31.87 MB / 0.914 GB, free: 51.83 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.207e-06/1.775, allocations: 0 / 0.914 GB, free: 51.83 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06195/1.837, allocations: 20.29 MB / 0.9339 GB, free: 31.46 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002322/1.839, allocations: 0.557 MB / 0.9344 GB, free: 30.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002724/1.842, allocations: 68 kB / 0.9345 GB, free: 30.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006456/1.848, allocations: 375.6 kB / 0.9348 GB, free: 30.45 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003789/1.852, allocations: 0.7844 MB / 0.9356 GB, free: 29.66 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009732/1.853, allocations: 95.98 kB / 0.9357 GB, free: 29.57 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00365/1.857, allocations: 2.145 MB / 0.9378 GB, free: 27.42 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.81e-07/1.857, allocations: 0 / 0.9378 GB, free: 27.42 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008071/1.865, allocations: 1.818 MB / 0.9396 GB, free: 25.6 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 13 (order3.delta,order3.w,order3.e1q,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 (249): * Single equations (assignments): 246 * 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 {(98,38,5.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001264/1.866, allocations: 198.9 kB / 0.9397 GB, free: 25.4 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.03355/1.9, allocations: 9.505 MB / 0.949 GB, free: 15.85 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.356e-06/1.9, allocations: 0 / 0.949 GB, free: 15.85 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.02104/1.921, allocations: 6.208 MB / 0.9551 GB, free: 9.598 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006376/1.927, allocations: 388.7 kB / 0.9555 GB, free: 9.215 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01904/1.947, allocations: 8.131 MB / 0.9634 GB, free: 1.074 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003421/1.95, allocations: 2.455 MB / 0.9658 GB, free: 14.58 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.002942/1.953, allocations: 375.2 kB / 0.9662 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001505/1.955, allocations: 247.4 kB / 0.9664 GB, free: 13.97 MB / 0.5762 GB Notification: Performance of SimCode: time 9.12e-07/1.955, allocations: 0 / 0.9664 GB, free: 13.97 MB / 0.5762 GB Notification: Performance of Templates: time 0.3811/2.336, allocations: 93.3 MB / 1.058 GB, free: 154.7 MB / 0.5919 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII.pipe 2>&1)