Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.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.TwoArea.FifthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001646/0.001646, allocations: 103.6 kB / 16.35 MB, free: 6.289 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.362/1.362, allocations: 222.9 MB / 240 MB, free: 4.57 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.001271/0.001271, allocations: 192.5 kB / 290.3 MB, free: 2.289 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.516/0.516, allocations: 91.91 MB / 432.4 MB, free: 9.215 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 79.88 kB / 0.5033 GB, free: 7.02 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3493, allocations: 71.27 MB / 0.5729 GB, free: 37.21 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII): time 0.01423/0.3636, allocations: 21.92 MB / 0.5943 GB, free: 21.82 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.01149/0.3752, allocations: 4.886 MB / 0.5991 GB, free: 18.29 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00445/0.3796, allocations: 43.56 kB / 0.5991 GB, free: 18.29 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002741/0.3824, allocations: 0.8898 MB / 0.6 GB, free: 17.81 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006975/0.3894, allocations: 2.048 MB / 0.602 GB, free: 16.36 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004978/0.3944, allocations: 2.075 MB / 0.604 GB, free: 15.27 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00839/0.4028, allocations: 5.761 MB / 0.6096 GB, free: 12.34 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002417/0.4053, allocations: 1.323 MB / 0.6109 GB, free: 11.7 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004132/0.4094, allocations: 2.341 MB / 0.6132 GB, free: 10.5 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004922/0.4143, allocations: 2.969 MB / 0.6161 GB, free: 8.992 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00162/0.416, allocations: 443.5 kB / 0.6165 GB, free: 8.992 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002325/0.4183, allocations: 0.5858 MB / 0.6171 GB, free: 8.949 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00099/0.4193, allocations: 1.157 MB / 0.6182 GB, free: 8.16 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003817/0.4231, allocations: 2.631 MB / 0.6208 GB, free: 6.391 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0085/0.4316, allocations: 6.268 MB / 0.6269 GB, free: 3.492 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.444e-06/0.4317, allocations: 0 / 0.6269 GB, free: 3.492 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4317, allocations: 0 / 0.6269 GB, free: 3.492 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002691/0.432, allocations: 0 / 0.6269 GB, free: 3.492 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: 894 * Number of variables: 894 Notification: Performance of Generate backend data structure: time 0.03277/0.4648, allocations: 9.213 MB / 0.6359 GB, free: 13.83 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.4648, allocations: 8.031 kB / 0.6359 GB, free: 13.82 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02624/0.4911, allocations: 4.016 MB / 0.6398 GB, free: 9.797 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006424/0.4975, allocations: 2.682 MB / 0.6425 GB, free: 7.031 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008685/0.4984, allocations: 0.9573 MB / 0.6434 GB, free: 5.938 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007865/0.4992, allocations: 351.9 kB / 0.6437 GB, free: 5.594 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008883/0.5081, allocations: 4.739 MB / 0.6484 GB, free: 0.8242 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.696e-05/0.5082, allocations: 3.938 kB / 0.6484 GB, free: 0.8203 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003747/0.5086, allocations: 136 kB / 0.6485 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-05/0.5086, allocations: 84 kB / 0.6486 GB, free: 0.6055 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008234/0.5169, allocations: 4.263 MB / 0.6527 GB, free: 12.34 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.03275/0.5497, allocations: 18.25 MB / 0.6705 GB, free: 8.91 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01183/0.5615, allocations: 5.016 MB / 0.6754 GB, free: 3.809 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006289/0.5679, allocations: 2.787 MB / 0.6782 GB, free: 1.012 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000631/0.5685, allocations: 70.92 kB / 0.6782 GB, free: 0.9414 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006809/0.5753, allocations: 3.189 MB / 0.6813 GB, free: 13.71 MB / 494.1 MB Notification: Performance of pre-optimization done (n=384): time 6.322e-06/0.5754, allocations: 4 kB / 0.6814 GB, free: 13.71 MB / 494.1 MB Notification: Performance of matching and sorting (n=384): time 0.2794/0.8547, allocations: 67.77 MB / 0.7475 GB, free: 9.742 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.012e-05/0.8549, allocations: 145.8 kB / 0.7477 GB, free: 9.574 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004576/0.8595, allocations: 3.246 MB / 0.7508 GB, free: 6.309 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0009082/0.8604, allocations: 93.7 kB / 0.7509 GB, free: 6.211 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.001479/0.8619, allocations: 1.974 MB / 0.7529 GB, free: 4.223 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.001662/0.8635, allocations: 1.328 MB / 0.7542 GB, free: 2.875 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001379/0.8649, allocations: 0.6783 MB / 0.7548 GB, free: 2.184 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.553e-05/0.865, allocations: 301.1 kB / 0.7551 GB, free: 1.887 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005139/0.8702, allocations: 2.605 MB / 0.7577 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005599/0.8758, allocations: 3.229 MB / 0.7608 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3093/1.185, allocations: 19 MB / 0.7794 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.231e-05/1.185, allocations: 2.938 kB / 0.7794 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=542) (initialization): time 0.05239/1.238, allocations: 17.3 MB / 0.7963 GB, free: 152.1 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.488e-05/1.238, allocations: 64.61 kB / 0.7963 GB, free: 152 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.551e-05/1.238, allocations: 13.41 kB / 0.7963 GB, free: 152 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0243/1.262, allocations: 7.153 MB / 0.8033 GB, free: 150.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00393/1.266, allocations: 0.6963 MB / 0.804 GB, free: 150.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07172/1.338, allocations: 33.29 MB / 0.8365 GB, free: 133 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005661/1.343, allocations: 0.6211 MB / 0.8371 GB, free: 132.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004404/1.344, allocations: 152 kB / 0.8373 GB, free: 132.3 MB / 0.5606 GB 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 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 order5.delta:VARIABLE(flow=false start = order5.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 (407): * Single equations (assignments): 404 * 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.00167/1.346, allocations: 0.6677 MB / 0.8379 GB, free: 131.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007869/1.346, allocations: 458.3 kB / 0.8383 GB, free: 131.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04609/1.392, allocations: 16.87 MB / 0.8548 GB, free: 114.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.853e-05/1.392, allocations: 42.67 kB / 0.8549 GB, free: 114.2 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.167e-05/1.393, allocations: 30.25 kB / 0.8549 GB, free: 114.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.787e-05/1.393, allocations: 19.92 kB / 0.8549 GB, free: 114.1 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.05271/1.445, allocations: 21.89 MB / 0.8763 GB, free: 92.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.469e-05/1.445, allocations: 4 kB / 0.8763 GB, free: 92.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002266/1.448, allocations: 388.2 kB / 0.8767 GB, free: 91.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02208/1.47, allocations: 7.37 MB / 0.8839 GB, free: 84.43 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001037/1.471, allocations: 75.97 kB / 0.8839 GB, free: 84.36 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06828/1.539, allocations: 31.78 MB / 0.915 GB, free: 52.29 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/1.539, allocations: 0 / 0.915 GB, free: 52.29 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05329/1.592, allocations: 20.26 MB / 0.9347 GB, free: 31.95 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001596/1.594, allocations: 0.5571 MB / 0.9353 GB, free: 31.37 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001162/1.595, allocations: 68 kB / 0.9354 GB, free: 31.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004075/1.599, allocations: 387.5 kB / 0.9357 GB, free: 30.92 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002714/1.602, allocations: 0.7805 MB / 0.9365 GB, free: 30.14 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000315/1.602, allocations: 91.98 kB / 0.9366 GB, free: 30.05 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002479/1.605, allocations: 2.137 MB / 0.9387 GB, free: 27.91 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.3e-07/1.605, allocations: 0 / 0.9387 GB, free: 27.91 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004502/1.609, allocations: 1.798 MB / 0.9404 GB, free: 26.11 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (order3.delta,order3.w,order3.e1q,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 (248): * Single equations (assignments): 245 * 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 {(100,36,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.000511/1.61, allocations: 199.5 kB / 0.9406 GB, free: 25.91 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0211/1.631, allocations: 9.191 MB / 0.9496 GB, free: 16.67 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/1.631, allocations: 0.5 kB / 0.9496 GB, free: 16.67 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01611/1.647, allocations: 6.202 MB / 0.9556 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003123/1.65, allocations: 397.8 kB / 0.956 GB, free: 10.03 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01262/1.663, allocations: 7.929 MB / 0.9638 GB, free: 2.094 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001553/1.665, allocations: 2.451 MB / 0.9662 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001587/1.666, allocations: 379.1 kB / 0.9665 GB, free: 15.23 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008919/1.667, allocations: 251.4 kB / 0.9668 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of SimCode: time 8.81e-07/1.667, allocations: 0 / 0.9668 GB, free: 14.98 MB / 0.5762 GB Notification: Performance of Templates: time 0.3557/2.023, allocations: 89.39 MB / 1.054 GB, free: 161.4 MB / 0.5919 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoArea.FifthOrder_AVRII.pipe 2>&1)