Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.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.TwoAreas.Two_Areas_PSAT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT") translateModel(OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 106.8 kB / 15.99 MB, free: 6.352 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.526/1.526, allocations: 222.9 MB / 239.6 MB, free: 4.727 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.001865/0.001864, allocations: 200.4 kB / 289.9 MB, free: 2.461 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5931/0.5931, allocations: 92.6 MB / 432.7 MB, free: 8.723 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002495/0.002495, allocations: 75.88 kB / 0.5029 GB, free: 7.25 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5128/0.5153, allocations: 71.4 MB / 0.5726 GB, free: 36.43 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT): time 0.01425/0.5297, allocations: 14.88 MB / 0.5871 GB, free: 26.23 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0121/0.5419, allocations: 4.233 MB / 0.5912 GB, free: 23.17 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003496/0.5454, allocations: 25.19 kB / 0.5913 GB, free: 23.17 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002067/0.5475, allocations: 0.53 MB / 0.5918 GB, free: 22.96 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005806/0.5534, allocations: 1.396 MB / 0.5931 GB, free: 22.01 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002921/0.5563, allocations: 1.168 MB / 0.5943 GB, free: 21.36 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006534/0.5628, allocations: 4.052 MB / 0.5982 GB, free: 19.28 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001295/0.5642, allocations: 0.7676 MB / 0.599 GB, free: 18.9 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003324/0.5675, allocations: 1.645 MB / 0.6006 GB, free: 18.04 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003152/0.5707, allocations: 2.118 MB / 0.6027 GB, free: 17 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008523/0.5715, allocations: 377.5 kB / 0.603 GB, free: 17 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001663/0.5732, allocations: 0.5125 MB / 0.6035 GB, free: 16.95 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007718/0.574, allocations: 0.8471 MB / 0.6044 GB, free: 16.37 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002016/0.576, allocations: 1.772 MB / 0.6061 GB, free: 15.16 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004932/0.5809, allocations: 3.655 MB / 0.6097 GB, free: 13.81 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.581, allocations: 2.047 kB / 0.6097 GB, free: 13.81 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.581, allocations: 0 / 0.6097 GB, free: 13.81 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001373/0.5811, allocations: 0 / 0.6097 GB, free: 13.81 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: 451 * Number of variables: 451 Notification: Performance of Generate backend data structure: time 0.02365/0.6048, allocations: 5.792 MB / 0.6153 GB, free: 11.34 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.536e-05/0.6048, allocations: 9.031 kB / 0.6153 GB, free: 11.34 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01399/0.6188, allocations: 2.042 MB / 0.6173 GB, free: 10.93 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005498/0.6244, allocations: 2.031 MB / 0.6193 GB, free: 9.637 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004712/0.6249, allocations: 437.1 kB / 0.6197 GB, free: 9.285 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000697/0.6256, allocations: 194.4 kB / 0.6199 GB, free: 9.219 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005745/0.6313, allocations: 2.305 MB / 0.6222 GB, free: 8.352 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.23e-05/0.6314, allocations: 0.75 kB / 0.6222 GB, free: 8.352 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002222/0.6316, allocations: 69.97 kB / 0.6222 GB, free: 8.297 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.255e-05/0.6317, allocations: 50.31 kB / 0.6223 GB, free: 8.289 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004978/0.6367, allocations: 2.325 MB / 0.6245 GB, free: 7.199 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.01991/0.6566, allocations: 9.712 MB / 0.634 GB, free: 14.39 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.011/0.6677, allocations: 4.176 MB / 0.6381 GB, free: 9.992 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0037/0.6714, allocations: 1.611 MB / 0.6397 GB, free: 8.379 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002718/0.6717, allocations: 37.97 kB / 0.6397 GB, free: 8.344 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.687e-05/0.6718, allocations: 64.44 kB / 0.6398 GB, free: 8.27 MB / 446.1 MB Notification: Performance of pre-optimization done (n=223): time 4.569e-06/0.6718, allocations: 0 / 0.6398 GB, free: 8.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.09304/0.7648, allocations: 20.09 MB / 0.6594 GB, free: 4.117 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.113e-05/0.7649, allocations: 77.41 kB / 0.6595 GB, free: 4.031 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005586/0.7705, allocations: 2.691 MB / 0.6621 GB, free: 1.328 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001021/0.7716, allocations: 65.7 kB / 0.6622 GB, free: 1.258 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001175/0.7728, allocations: 1.165 MB / 0.6633 GB, free: 84 kB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001687/0.7745, allocations: 0.8129 MB / 0.6641 GB, free: 15.25 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001333/0.7758, allocations: 0.5894 MB / 0.6647 GB, free: 14.66 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.7759, allocations: 301.1 kB / 0.665 GB, free: 14.36 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00385/0.7798, allocations: 1.791 MB / 0.6667 GB, free: 12.57 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004157/0.784, allocations: 2.154 MB / 0.6688 GB, free: 10.33 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.06235/0.8463, allocations: 13.11 MB / 0.6816 GB, free: 13.09 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.776e-05/0.8464, allocations: 0 / 0.6816 GB, free: 13.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=429) (initialization): time 0.02426/0.8707, allocations: 7.448 MB / 0.6889 GB, free: 5.562 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.982e-05/0.8707, allocations: 8 kB / 0.6889 GB, free: 5.555 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.776e-05/0.8708, allocations: 11.98 kB / 0.6889 GB, free: 5.543 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01373/0.8845, allocations: 3.238 MB / 0.6921 GB, free: 2.266 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008651/0.8932, allocations: 1.42 MB / 0.6935 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03223/0.9255, allocations: 16.89 MB / 0.71 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005994/0.9315, allocations: 389.1 kB / 0.7103 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009113/0.9325, allocations: 120 kB / 0.7104 GB, free: 14.74 MB / 0.5137 GB Warning: Assuming fixed start value for the following 8 variables: g4.order6_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real g3.order6_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real g2.order6_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real g1.order6_1.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real g1.order6_1.delta:VARIABLE(flow=false start = g1.order6_1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real g1.order6_1.e1d:VARIABLE(start = g1.order6_1.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real g2.order6_1.delta:VARIABLE(flow=false start = g2.order6_1.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real g2.order6_1.e1d:VARIABLE(start = g2.order6_1.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (361): * Single equations (assignments): 347 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 9 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 9 systems {(2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,2,75.0%), (4,2,75.0%), (1,1,100.0%), (3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,22)} Notification: Performance of prepare postOptimizeDAE: time 0.001728/0.9342, allocations: 0.5055 MB / 0.7109 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001229/0.9354, allocations: 312.1 kB / 0.7112 GB, free: 13.92 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0269/0.9624, allocations: 8.118 MB / 0.7192 GB, free: 5.777 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.114e-05/0.9625, allocations: 24 kB / 0.7192 GB, free: 5.754 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.9625, allocations: 0 / 0.7192 GB, free: 5.754 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.729e-05/0.9625, allocations: 11.95 kB / 0.7192 GB, free: 5.742 MB / 0.5137 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.03535/0.9979, allocations: 12.13 MB / 0.731 GB, free: 9.387 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.453e-05/0.998, allocations: 11.98 kB / 0.731 GB, free: 9.375 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001926/0.9999, allocations: 223.7 kB / 0.7313 GB, free: 9.156 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01428/1.014, allocations: 4.18 MB / 0.7353 GB, free: 4.973 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000725/1.015, allocations: 47.94 kB / 0.7354 GB, free: 4.926 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04273/1.058, allocations: 16.59 MB / 0.7516 GB, free: 4.168 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/1.058, allocations: 4 kB / 0.7516 GB, free: 4.164 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03269/1.09, allocations: 10.14 MB / 0.7615 GB, free: 9.984 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001758/1.092, allocations: 460.6 kB / 0.7619 GB, free: 9.512 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001294/1.094, allocations: 40 kB / 0.762 GB, free: 9.473 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003476/1.097, allocations: 175.8 kB / 0.7621 GB, free: 9.301 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001618/1.099, allocations: 378.4 kB / 0.7625 GB, free: 8.926 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002539/1.099, allocations: 59.98 kB / 0.7626 GB, free: 8.867 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.003296/1.102, allocations: 1.779 MB / 0.7643 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.7e-07/1.102, allocations: 0 / 0.7643 GB, free: 7.09 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00517/1.107, allocations: 1.089 MB / 0.7654 GB, free: 6 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 24 (g1.order6_1.delta,g1.order6_1.w,g1.order6_1.e1q,g1.order6_1.e1d,g1.order6_1.e2q,g1.order6_1.e2d,g2.order6_1.delta,g2.order6_1.w,g2.order6_1.e1q,g2.order6_1.e1d,g2.order6_1.e2q,g2.order6_1.e2d,g3.order6_1.delta,g3.order6_1.w,g3.order6_1.e1q,g3.order6_1.e1d,g3.order6_1.e2q,g3.order6_1.e2d,g4.order6_1.delta,g4.order6_1.w,g4.order6_1.e1q,g4.order6_1.e1d,g4.order6_1.e2q,g4.order6_1.e2d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (136): * Single equations (assignments): 135 * Array equations: 0 * Algorithm blocks: 0 * 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 {(54,42)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006217/1.108, allocations: 168.8 kB / 0.7655 GB, free: 5.828 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.2944/1.403, allocations: 6.418 MB / 0.7718 GB, free: 165.5 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.298e-06/1.403, allocations: 1.188 kB / 0.7718 GB, free: 165.5 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01204/1.415, allocations: 3.382 MB / 0.7751 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003184/1.418, allocations: 229.4 kB / 0.7753 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01091/1.429, allocations: 6.811 MB / 0.782 GB, free: 161.8 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001263/1.43, allocations: 1.763 MB / 0.7837 GB, free: 161 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001784/1.432, allocations: 175.8 kB / 0.7839 GB, free: 161 MB / 0.5606 GB Notification: Performance of SimCode: time 1.323e-06/1.432, allocations: 3.938 kB / 0.7839 GB, free: 161 MB / 0.5606 GB Notification: Performance of Templates: time 0.1424/1.574, allocations: 125.8 MB / 0.9067 GB, free: 59.25 MB / 0.5606 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.sim & ./OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT.pipe 2>&1)