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.001264/0.001264, allocations: 100.1 kB / 15.88 MB, free: 12 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.349/1.349, allocations: 222.9 MB / 239.5 MB, free: 4.75 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.001552/0.001552, allocations: 188.5 kB / 289.8 MB, free: 2.496 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.51/0.51, allocations: 91.89 MB / 431.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001575, allocations: 83.86 kB / 0.5019 GB, free: 8.172 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3636/0.3652, allocations: 71.26 MB / 0.5714 GB, free: 36.41 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.SixthOrder_AVRII): time 0.01592/0.3812, allocations: 23.56 MB / 0.5944 GB, free: 20.13 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01234/0.3935, allocations: 5.197 MB / 0.5995 GB, free: 16.36 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006147/0.3998, allocations: 51.12 kB / 0.5996 GB, free: 16.36 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002913/0.4027, allocations: 0.6667 MB / 0.6002 GB, free: 16.11 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007561/0.4103, allocations: 1.756 MB / 0.6019 GB, free: 14.88 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004958/0.4153, allocations: 1.938 MB / 0.6038 GB, free: 13.76 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.008898/0.4242, allocations: 5.516 MB / 0.6092 GB, free: 10.98 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002593/0.4268, allocations: 1.141 MB / 0.6103 GB, free: 10.4 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004626/0.4314, allocations: 2.188 MB / 0.6125 GB, free: 9.336 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005618/0.4371, allocations: 2.858 MB / 0.6153 GB, free: 7.949 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002441/0.4395, allocations: 290.7 kB / 0.6155 GB, free: 7.949 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003971/0.4435, allocations: 432.4 kB / 0.6159 GB, free: 7.906 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002515/0.446, allocations: 1.016 MB / 0.6169 GB, free: 7.262 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006883/0.4529, allocations: 2.486 MB / 0.6194 GB, free: 5.652 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008544/0.4615, allocations: 4.807 MB / 0.6241 GB, free: 3.699 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.632e-06/0.4615, allocations: 0 / 0.6241 GB, free: 3.699 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4615, allocations: 0 / 0.6241 GB, free: 3.699 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003569/0.4619, allocations: 1.156 kB / 0.6241 GB, free: 3.699 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.03894/0.5008, allocations: 9.241 MB / 0.6331 GB, free: 15.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.417e-05/0.5009, allocations: 10.19 kB / 0.6331 GB, free: 15.5 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02767/0.5286, allocations: 4.015 MB / 0.637 GB, free: 11.57 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0075/0.5361, allocations: 2.694 MB / 0.6396 GB, free: 8.801 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001026/0.5372, allocations: 0.9612 MB / 0.6406 GB, free: 7.699 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001348/0.5385, allocations: 352 kB / 0.6409 GB, free: 7.355 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01124/0.5498, allocations: 4.747 MB / 0.6456 GB, free: 2.578 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.596e-05/0.5499, allocations: 0 / 0.6456 GB, free: 2.578 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004187/0.5503, allocations: 144 kB / 0.6457 GB, free: 2.438 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.618e-05/0.5504, allocations: 87.94 kB / 0.6458 GB, free: 2.352 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008515/0.5589, allocations: 4.26 MB / 0.6499 GB, free: 14.08 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.03364/0.5926, allocations: 18.42 MB / 0.6679 GB, free: 10.48 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01198/0.6046, allocations: 5.033 MB / 0.6728 GB, free: 5.375 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005682/0.6103, allocations: 2.803 MB / 0.6756 GB, free: 2.562 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004493/0.6108, allocations: 62.94 kB / 0.6756 GB, free: 2.5 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006406/0.6172, allocations: 3.201 MB / 0.6788 GB, free: 15.26 MB / 494.1 MB Notification: Performance of pre-optimization done (n=385): time 5.79e-06/0.6172, allocations: 0 / 0.6788 GB, free: 15.26 MB / 494.1 MB Notification: Performance of matching and sorting (n=385): time 0.3003/0.9175, allocations: 66.81 MB / 0.744 GB, free: 12.25 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/0.9177, allocations: 141.8 kB / 0.7441 GB, free: 12.09 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007899/0.9256, allocations: 3.27 MB / 0.7473 GB, free: 8.797 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001683/0.9273, allocations: 89.64 kB / 0.7474 GB, free: 8.703 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.002132/0.9295, allocations: 1.978 MB / 0.7494 GB, free: 6.711 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002786/0.9323, allocations: 1.328 MB / 0.7507 GB, free: 5.363 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003819/0.9361, allocations: 0.6862 MB / 0.7513 GB, free: 4.664 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.9362, allocations: 305.1 kB / 0.7516 GB, free: 4.363 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00624/0.9425, allocations: 2.616 MB / 0.7542 GB, free: 1.738 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006512/0.949, allocations: 3.257 MB / 0.7573 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3451/1.294, allocations: 19.12 MB / 0.776 GB, free: 153 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.271e-05/1.294, allocations: 5.188 kB / 0.776 GB, free: 153 MB / 0.5606 GB Notification: Performance of matching and sorting (n=546) (initialization): time 0.05405/1.348, allocations: 17.24 MB / 0.7929 GB, free: 151.7 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.395e-05/1.348, allocations: 64.98 kB / 0.7929 GB, free: 151.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.383e-05/1.348, allocations: 13.75 kB / 0.7929 GB, free: 151.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02736/1.376, allocations: 7.299 MB / 0.8001 GB, free: 150.3 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003677/1.38, allocations: 0.6841 MB / 0.8007 GB, free: 150.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07531/1.455, allocations: 31.16 MB / 0.8312 GB, free: 136.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006721/1.462, allocations: 0.6155 MB / 0.8318 GB, free: 136.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006245/1.462, allocations: 159.2 kB / 0.8319 GB, free: 136.1 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.001785/1.464, allocations: 0.6723 MB / 0.8326 GB, free: 135.4 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001043/1.465, allocations: 462.2 kB / 0.833 GB, free: 135 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04874/1.514, allocations: 16.89 MB / 0.8495 GB, free: 118.6 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.214e-05/1.514, allocations: 39.94 kB / 0.8495 GB, free: 118.6 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.89e-05/1.514, allocations: 28 kB / 0.8496 GB, free: 118.5 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001046/1.514, allocations: 19.94 kB / 0.8496 GB, free: 118.5 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.05744/1.572, allocations: 21.91 MB / 0.871 GB, free: 96.56 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.716e-05/1.572, allocations: 0 / 0.871 GB, free: 96.56 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002374/1.574, allocations: 395.5 kB / 0.8714 GB, free: 96.18 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02355/1.598, allocations: 7.348 MB / 0.8785 GB, free: 88.81 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001218/1.599, allocations: 71.98 kB / 0.8786 GB, free: 88.74 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06937/1.668, allocations: 28.97 MB / 0.9069 GB, free: 59.48 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/1.668, allocations: 0 / 0.9069 GB, free: 59.48 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05655/1.725, allocations: 20.28 MB / 0.9267 GB, free: 39.12 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001691/1.727, allocations: 0.5649 MB / 0.9273 GB, free: 38.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001282/1.728, allocations: 68 kB / 0.9273 GB, free: 38.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004208/1.732, allocations: 375.6 kB / 0.9277 GB, free: 38.09 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003023/1.735, allocations: 0.7646 MB / 0.9284 GB, free: 37.33 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003879/1.735, allocations: 103.9 kB / 0.9285 GB, free: 37.23 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002717/1.738, allocations: 2.141 MB / 0.9306 GB, free: 35.08 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.01e-07/1.738, allocations: 0 / 0.9306 GB, free: 35.08 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005425/1.744, allocations: 1.818 MB / 0.9324 GB, free: 33.26 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.0005808/1.744, allocations: 209.7 kB / 0.9326 GB, free: 33.05 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.02255/1.767, allocations: 9.2 MB / 0.9416 GB, free: 23.8 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/1.767, allocations: 0 / 0.9416 GB, free: 23.8 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01797/1.785, allocations: 6.197 MB / 0.9476 GB, free: 17.55 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004292/1.789, allocations: 390.5 kB / 0.948 GB, free: 17.17 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01565/1.805, allocations: 9.958 MB / 0.9577 GB, free: 7.199 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001562/1.806, allocations: 2.467 MB / 0.9601 GB, free: 4.695 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001942/1.808, allocations: 267.3 kB / 0.9604 GB, free: 4.434 MB / 0.5606 GB Notification: Performance of SimCode: time 1.052e-06/1.808, allocations: 0 / 0.9604 GB, free: 4.434 MB / 0.5606 GB Notification: Performance of Templates: time 0.4125/2.221, allocations: 88.8 MB / 1.047 GB, free: 164.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)