Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.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.TwoAreaOld.FifthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 110.7 kB / 16.41 MB, free: 6.488 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.364/1.364, allocations: 222.9 MB / 240.1 MB, free: 4.367 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.001814/0.001814, allocations: 192.5 kB / 290.4 MB, free: 2.098 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5897/0.5897, allocations: 91.9 MB / 432.4 MB, free: 9.176 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001597/0.001597, allocations: 80.47 kB / 0.5734 GB, free: 33.5 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.1473, allocations: 71.29 MB / 0.643 GB, free: 3.57 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII): time 0.007578/0.1549, allocations: 6.663 MB / 0.6495 GB, free: 12.88 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.0048/0.1597, allocations: 1.99 MB / 0.6515 GB, free: 10.88 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001234/0.161, allocations: 8 kB / 0.6515 GB, free: 10.88 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001085/0.1621, allocations: 249.9 kB / 0.6517 GB, free: 10.63 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002904/0.1651, allocations: 0.8226 MB / 0.6525 GB, free: 9.809 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001651/0.1667, allocations: 0.64 MB / 0.6531 GB, free: 9.172 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002658/0.1694, allocations: 1.64 MB / 0.6547 GB, free: 7.527 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006302/0.17, allocations: 330.4 kB / 0.655 GB, free: 7.195 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001147/0.1712, allocations: 0.6769 MB / 0.6557 GB, free: 6.516 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009757/0.1722, allocations: 0.8596 MB / 0.6565 GB, free: 5.652 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001969/0.1724, allocations: 128 kB / 0.6567 GB, free: 5.527 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005656/0.173, allocations: 259.9 kB / 0.6569 GB, free: 5.273 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000306/0.1733, allocations: 346.5 kB / 0.6572 GB, free: 4.934 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006186/0.1739, allocations: 0.6836 MB / 0.6579 GB, free: 4.246 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001869/0.1758, allocations: 1.713 MB / 0.6596 GB, free: 2.527 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.778e-06/0.1758, allocations: 0 / 0.6596 GB, free: 2.527 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1758, allocations: 0 / 0.6596 GB, free: 2.527 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.749e-05/0.1758, allocations: 0 / 0.6596 GB, free: 2.527 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 191 * Number of variables: 191 Notification: Performance of Generate backend data structure: time 0.009303/0.1851, allocations: 2.746 MB / 0.6623 GB, free: 15.71 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.1852, allocations: 12.03 kB / 0.6623 GB, free: 15.7 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005112/0.1903, allocations: 0.7787 MB / 0.663 GB, free: 14.92 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001911/0.1923, allocations: 0.91 MB / 0.6639 GB, free: 13.95 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002993/0.1926, allocations: 264.1 kB / 0.6642 GB, free: 13.66 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001835/0.1928, allocations: 83.91 kB / 0.6643 GB, free: 13.58 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002163/0.195, allocations: 1.098 MB / 0.6653 GB, free: 12.46 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.142e-05/0.195, allocations: 11.88 kB / 0.6653 GB, free: 12.45 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.761e-05/0.1951, allocations: 28 kB / 0.6654 GB, free: 12.43 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.529e-05/0.1951, allocations: 20 kB / 0.6654 GB, free: 12.41 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001998/0.1971, allocations: 0.9994 MB / 0.6664 GB, free: 11.41 MB / 478.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.006946/0.2041, allocations: 3.859 MB / 0.6701 GB, free: 7.363 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007361/0.2115, allocations: 2.383 MB / 0.6725 GB, free: 4.883 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001426/0.2129, allocations: 0.684 MB / 0.6731 GB, free: 4.195 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.981e-05/0.213, allocations: 20.98 kB / 0.6732 GB, free: 4.176 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001581/0.2146, allocations: 0.8333 MB / 0.674 GB, free: 3.324 MB / 478.1 MB Notification: Performance of pre-optimization done (n=97): time 3.596e-06/0.2146, allocations: 0 / 0.674 GB, free: 3.324 MB / 478.1 MB Notification: Performance of matching and sorting (n=97): time 0.02876/0.2434, allocations: 7.218 MB / 0.681 GB, free: 12.04 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.917e-05/0.2435, allocations: 115.8 kB / 0.6811 GB, free: 11.91 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001756/0.2453, allocations: 1.123 MB / 0.6822 GB, free: 10.77 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000239/0.2456, allocations: 45.7 kB / 0.6823 GB, free: 10.72 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004052/0.246, allocations: 0.5047 MB / 0.6828 GB, free: 10.21 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004204/0.2464, allocations: 358.9 kB / 0.6831 GB, free: 9.852 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005177/0.2469, allocations: 295.4 kB / 0.6834 GB, free: 9.559 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.2471, allocations: 305.1 kB / 0.6837 GB, free: 9.258 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001597/0.2487, allocations: 0.7769 MB / 0.6844 GB, free: 8.48 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001717/0.2504, allocations: 0.9537 MB / 0.6854 GB, free: 7.488 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02474/0.2751, allocations: 5.794 MB / 0.691 GB, free: 1.609 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.215e-05/0.2752, allocations: 0 / 0.691 GB, free: 1.609 MB / 494.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.01392/0.2891, allocations: 4.45 MB / 0.6954 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 8.397e-05/0.2893, allocations: 67.34 kB / 0.6954 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.818e-05/0.2893, allocations: 4 kB / 0.6954 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005954/0.2953, allocations: 1.635 MB / 0.697 GB, free: 11.41 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001548/0.2968, allocations: 295.5 kB / 0.6973 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01983/0.3167, allocations: 8.596 MB / 0.7057 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002324/0.3191, allocations: 202.7 kB / 0.7059 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001374/0.3192, allocations: 59.91 kB / 0.706 GB, free: 2.109 MB / 0.4981 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 order2.w:VARIABLE(flow=false start = 1.0 fixed = true ) "Rotor speed [pu]" type: Real order2.delta:VARIABLE(flow=false start = order2.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order5.delta:VARIABLE(flow=false start = order5.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order5.e1q:VARIABLE(start = order5.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: 13 * 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 (167): * Single equations (assignments): 164 * 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 {(20,14,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006885/0.3199, allocations: 307.3 kB / 0.7063 GB, free: 1.793 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002546/0.3202, allocations: 126.5 kB / 0.7064 GB, free: 1.668 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01268/0.3329, allocations: 3.9 MB / 0.7102 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.041e-05/0.3329, allocations: 12 kB / 0.7102 GB, free: 13.73 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.439e-05/0.3329, allocations: 8 kB / 0.7102 GB, free: 13.72 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.683e-05/0.333, allocations: 3.984 kB / 0.7102 GB, free: 13.71 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.01475/0.3477, allocations: 5.51 MB / 0.7156 GB, free: 8.094 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.261e-05/0.3478, allocations: 0 / 0.7156 GB, free: 8.094 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007485/0.3486, allocations: 103.8 kB / 0.7157 GB, free: 7.992 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005388/0.354, allocations: 1.599 MB / 0.7172 GB, free: 6.387 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002057/0.3542, allocations: 27.98 kB / 0.7173 GB, free: 6.359 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01983/0.374, allocations: 9.639 MB / 0.7267 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-06/0.3741, allocations: 7.984 kB / 0.7267 GB, free: 12.42 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01444/0.3885, allocations: 4.785 MB / 0.7314 GB, free: 7.605 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005679/0.3891, allocations: 223.2 kB / 0.7316 GB, free: 7.367 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001979/0.3893, allocations: 23.94 kB / 0.7316 GB, free: 7.344 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/0.3906, allocations: 115.9 kB / 0.7317 GB, free: 7.23 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006187/0.3912, allocations: 192.7 kB / 0.7319 GB, free: 7.039 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.966e-05/0.3913, allocations: 24 kB / 0.7319 GB, free: 7.016 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001151/0.3925, allocations: 0.7553 MB / 0.7327 GB, free: 6.254 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.51e-07/0.3925, allocations: 4 kB / 0.7327 GB, free: 6.25 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001551/0.394, allocations: 483.6 kB / 0.7331 GB, free: 5.777 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 11 (order2.delta,order2.w,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 (65): * Single equations (assignments): 62 * 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 {(18,14,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003016/0.3943, allocations: 147 kB / 0.7333 GB, free: 5.621 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.006479/0.4008, allocations: 2.59 MB / 0.7358 GB, free: 2.988 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/0.4009, allocations: 3.938 kB / 0.7358 GB, free: 2.984 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004207/0.4051, allocations: 1.59 MB / 0.7373 GB, free: 1.355 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001206/0.4063, allocations: 122.2 kB / 0.7375 GB, free: 1.234 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004503/0.4108, allocations: 2.387 MB / 0.7398 GB, free: 14.81 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007119/0.4116, allocations: 1.132 MB / 0.7409 GB, free: 13.65 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004318/0.412, allocations: 83.41 kB / 0.741 GB, free: 13.57 MB / 0.545 GB Notification: Performance of SimCode: time 8.71e-07/0.412, allocations: 0 / 0.741 GB, free: 13.57 MB / 0.545 GB Notification: Performance of Templates: time 0.03425/0.4463, allocations: 23.99 MB / 0.7644 GB, free: 5.57 MB / 0.5606 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FifthOrder_AVRII.pipe 2>&1)