Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_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.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009704/0.0009705, allocations: 92.31 kB / 16.02 MB, free: 80 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.358/1.358, allocations: 223.3 MB / 240 MB, free: 5.523 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.001288/0.001288, allocations: 179.4 kB / 291.3 MB, free: 2.184 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5137/0.5137, allocations: 91.93 MB / 434.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003901/0.0003903, allocations: 8 kB / 0.5054 GB, free: 7.285 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3989/0.3993, allocations: 72.46 MB / 0.5762 GB, free: 36.49 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII): time 0.01485/0.4142, allocations: 22.52 MB / 0.5982 GB, free: 20.04 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01224/0.4265, allocations: 5.119 MB / 0.6032 GB, free: 16.32 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006008/0.4325, allocations: 50.56 kB / 0.6032 GB, free: 16.32 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003446/0.436, allocations: 0.674 MB / 0.6039 GB, free: 16.05 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009217/0.4452, allocations: 1.723 MB / 0.6055 GB, free: 14.84 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00579/0.451, allocations: 1.916 MB / 0.6074 GB, free: 13.75 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01133/0.4624, allocations: 5.434 MB / 0.6127 GB, free: 11 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002654/0.4651, allocations: 1.133 MB / 0.6138 GB, free: 10.43 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0051/0.4702, allocations: 2.054 MB / 0.6158 GB, free: 9.438 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005294/0.4755, allocations: 2.688 MB / 0.6185 GB, free: 8.148 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001114/0.4766, allocations: 233.5 kB / 0.6187 GB, free: 8.148 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001785/0.4784, allocations: 378.8 kB / 0.619 GB, free: 8.102 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008944/0.4793, allocations: 0.9276 MB / 0.62 GB, free: 7.523 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003397/0.4827, allocations: 2.395 MB / 0.6223 GB, free: 5.957 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00667/0.4894, allocations: 4.63 MB / 0.6268 GB, free: 4.48 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.4895, allocations: 0 / 0.6268 GB, free: 4.48 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.4895, allocations: 1.688 kB / 0.6268 GB, free: 4.48 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002499/0.4897, allocations: 0 / 0.6268 GB, free: 4.48 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: 893 * Number of variables: 893 Notification: Performance of Generate backend data structure: time 0.03148/0.5212, allocations: 8.4 MB / 0.635 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/0.5213, allocations: 9.156 kB / 0.635 GB, free: 0.6875 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02824/0.5495, allocations: 4.048 MB / 0.639 GB, free: 13.26 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007014/0.5566, allocations: 2.643 MB / 0.6416 GB, free: 10.54 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001109/0.5577, allocations: 1 MB / 0.6425 GB, free: 9.398 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001282/0.559, allocations: 351.9 kB / 0.6429 GB, free: 9.055 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01147/0.5705, allocations: 4.989 MB / 0.6477 GB, free: 4.031 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.756e-05/0.5706, allocations: 3.938 kB / 0.6477 GB, free: 4.027 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004344/0.5711, allocations: 140 kB / 0.6479 GB, free: 3.891 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.932e-05/0.5711, allocations: 84 kB / 0.648 GB, free: 3.809 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01043/0.5816, allocations: 4.502 MB / 0.6524 GB, free: 15.3 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.03885/0.6205, allocations: 18.84 MB / 0.6708 GB, free: 11.28 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01438/0.6349, allocations: 5.738 MB / 0.6764 GB, free: 5.457 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007845/0.6428, allocations: 3.043 MB / 0.6793 GB, free: 2.406 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007999/0.6436, allocations: 70.91 kB / 0.6794 GB, free: 2.336 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008613/0.6522, allocations: 3.431 MB / 0.6828 GB, free: 14.86 MB / 494.1 MB Notification: Performance of pre-optimization done (n=383): time 8.707e-06/0.6523, allocations: 0 / 0.6828 GB, free: 14.86 MB / 494.1 MB Notification: Performance of matching and sorting (n=383): time 0.3359/0.9881, allocations: 81.84 MB / 0.7627 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001226/0.9883, allocations: 149.8 kB / 0.7628 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006718/0.995, allocations: 3.214 MB / 0.766 GB, free: 9.418 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001157/0.9962, allocations: 85.7 kB / 0.766 GB, free: 9.328 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001777/0.998, allocations: 1.959 MB / 0.768 GB, free: 7.355 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002478/1.001, allocations: 1.321 MB / 0.7692 GB, free: 6.016 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001366/1.002, allocations: 342.8 kB / 0.7696 GB, free: 5.672 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.478e-05/1.002, allocations: 305.1 kB / 0.7699 GB, free: 5.371 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007159/1.009, allocations: 2.847 MB / 0.7726 GB, free: 2.516 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3036/1.313, allocations: 3.467 MB / 0.776 GB, free: 159.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.07752/1.39, allocations: 20.68 MB / 0.7962 GB, free: 156.6 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.999e-05/1.39, allocations: 4.562 kB / 0.7962 GB, free: 156.6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=538) (initialization): time 0.07066/1.461, allocations: 21.04 MB / 0.8168 GB, free: 152.4 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001048/1.461, allocations: 67.92 kB / 0.8168 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.021e-05/1.461, allocations: 13.75 kB / 0.8168 GB, free: 152.3 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02802/1.489, allocations: 8.484 MB / 0.8251 GB, free: 146.7 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004045/1.493, allocations: 0.6713 MB / 0.8258 GB, free: 146.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0909/1.584, allocations: 34.89 MB / 0.8599 GB, free: 112.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007247/1.592, allocations: 0.7587 MB / 0.8606 GB, free: 111.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001155/1.593, allocations: 155.9 kB / 0.8607 GB, free: 111.5 MB / 0.5606 GB Warning: Assuming fixed start value for the following 5 variables: order4.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 order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 (403): * Single equations (assignments): 400 * 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 {(92,44,5.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003654/1.597, allocations: 0.6649 MB / 0.8614 GB, free: 110.9 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001996/1.599, allocations: 458.4 kB / 0.8618 GB, free: 110.4 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05964/1.658, allocations: 20.65 MB / 0.882 GB, free: 89.7 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.199e-05/1.658, allocations: 37.44 kB / 0.882 GB, free: 89.66 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.64e-05/1.658, allocations: 32 kB / 0.8821 GB, free: 89.63 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001165/1.659, allocations: 19.94 kB / 0.8821 GB, free: 89.61 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.06749/1.726, allocations: 25.63 MB / 0.9071 GB, free: 63.93 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-05/1.726, allocations: 2.688 kB / 0.9071 GB, free: 63.93 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002456/1.729, allocations: 395.5 kB / 0.9075 GB, free: 63.54 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02695/1.756, allocations: 8.673 MB / 0.916 GB, free: 54.85 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001366/1.757, allocations: 75.98 kB / 0.916 GB, free: 54.78 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08045/1.837, allocations: 32.73 MB / 0.948 GB, free: 21.77 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/1.838, allocations: 0 / 0.948 GB, free: 21.77 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06803/1.906, allocations: 24.27 MB / 0.9717 GB, free: 13.42 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001909/1.908, allocations: 0.5609 MB / 0.9722 GB, free: 12.83 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002089/1.91, allocations: 68 kB / 0.9723 GB, free: 12.77 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006238/1.916, allocations: 0.4996 MB / 0.9728 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003952/1.92, allocations: 0.7763 MB / 0.9736 GB, free: 11.49 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009481/1.921, allocations: 91.98 kB / 0.9736 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004464/1.925, allocations: 2.105 MB / 0.9757 GB, free: 9.289 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6.51e-07/1.925, allocations: 0 / 0.9757 GB, free: 9.289 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.009137/1.934, allocations: 1.794 MB / 0.9774 GB, free: 7.492 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order3.delta,order3.w,order3.e1q,order4.delta,order4.w,order4.e1q,order4.e1d,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 (247): * Single equations (assignments): 244 * 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.001366/1.936, allocations: 203.6 kB / 0.9776 GB, free: 7.285 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.03032/1.966, allocations: 10.3 MB / 0.9877 GB, free: 12.93 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 9.749e-06/1.966, allocations: 2.109 kB / 0.9877 GB, free: 12.93 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.02237/1.989, allocations: 7.036 MB / 0.9946 GB, free: 5.852 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006294/1.995, allocations: 382 kB / 0.9949 GB, free: 5.473 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2794/2.274, allocations: 9.885 MB / 1.005 GB, free: 182.9 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001611/2.276, allocations: 2.44 MB / 1.007 GB, free: 182.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001607/2.278, allocations: 263.5 kB / 1.007 GB, free: 182.1 MB / 0.5919 GB Notification: Performance of SimCode: time 1.372e-06/2.278, allocations: 3.344 kB / 1.007 GB, free: 182.1 MB / 0.5919 GB Notification: Performance of Templates: time 0.1166/2.394, allocations: 87.61 MB / 1.093 GB, free: 127 MB / 0.5919 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FourthOrder_AVRII.pipe 2>&1)