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.001462/0.001462, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.382/1.382, allocations: 222.9 MB / 238.8 MB, free: 4.758 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.001567/0.001567, allocations: 188.5 kB / 289.1 MB, free: 2.504 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5654/0.5654, allocations: 91.89 MB / 431.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001522, allocations: 79.88 kB / 0.5012 GB, free: 8.168 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4665/0.4681, allocations: 71.26 MB / 0.5708 GB, free: 36.51 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.TwoAreas.Two_Areas_PSAT): time 0.01229/0.4804, allocations: 14.89 MB / 0.5853 GB, free: 26.64 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.009926/0.4904, allocations: 4.24 MB / 0.5895 GB, free: 23.57 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003981/0.4944, allocations: 28.09 kB / 0.5895 GB, free: 23.57 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002673/0.4971, allocations: 0.5325 MB / 0.59 GB, free: 23.36 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006356/0.5035, allocations: 1.388 MB / 0.5914 GB, free: 22.41 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003152/0.5067, allocations: 1.176 MB / 0.5925 GB, free: 21.75 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006589/0.5133, allocations: 3.835 MB / 0.5963 GB, free: 19.85 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001685/0.515, allocations: 0.6806 MB / 0.5969 GB, free: 19.49 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003338/0.5184, allocations: 1.439 MB / 0.5983 GB, free: 18.83 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00382/0.5222, allocations: 1.969 MB / 0.6003 GB, free: 17.93 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001425/0.5236, allocations: 196 kB / 0.6004 GB, free: 17.93 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002379/0.526, allocations: 333.7 kB / 0.6008 GB, free: 17.89 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009375/0.527, allocations: 0.6731 MB / 0.6014 GB, free: 17.47 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002294/0.5293, allocations: 1.586 MB / 0.603 GB, free: 16.45 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006079/0.5354, allocations: 4.402 MB / 0.6073 GB, free: 14.59 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.5354, allocations: 0 / 0.6073 GB, free: 14.59 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.5354, allocations: 0 / 0.6073 GB, free: 14.59 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001932/0.5356, allocations: 5.156 kB / 0.6073 GB, free: 14.58 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.02943/0.565, allocations: 5.78 MB / 0.6129 GB, free: 12.13 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.361e-05/0.5651, allocations: 13.56 kB / 0.6129 GB, free: 12.12 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01473/0.5799, allocations: 2.045 MB / 0.6149 GB, free: 11.71 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007024/0.587, allocations: 2.031 MB / 0.6169 GB, free: 10.41 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006532/0.5876, allocations: 437.9 kB / 0.6173 GB, free: 10.06 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001494/0.5892, allocations: 194.8 kB / 0.6175 GB, free: 9.996 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007596/0.5968, allocations: 2.308 MB / 0.6198 GB, free: 9.125 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.746e-05/0.5968, allocations: 0 / 0.6198 GB, free: 9.125 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002373/0.5971, allocations: 72.17 kB / 0.6198 GB, free: 9.07 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.868e-05/0.5971, allocations: 45.66 kB / 0.6199 GB, free: 9.066 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005159/0.6023, allocations: 2.326 MB / 0.6221 GB, free: 8.234 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.01845/0.6208, allocations: 9.712 MB / 0.6316 GB, free: 15.91 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009801/0.6306, allocations: 4.172 MB / 0.6357 GB, free: 11.52 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003351/0.634, allocations: 1.618 MB / 0.6373 GB, free: 9.898 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003383/0.6344, allocations: 37.95 kB / 0.6373 GB, free: 9.863 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.242e-05/0.6344, allocations: 64.5 kB / 0.6374 GB, free: 9.789 MB / 446.1 MB Notification: Performance of pre-optimization done (n=223): time 4.749e-06/0.6345, allocations: 0 / 0.6374 GB, free: 9.789 MB / 446.1 MB Notification: Performance of matching and sorting (n=223): time 0.09136/0.7258, allocations: 20.08 MB / 0.657 GB, free: 5.648 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.113e-05/0.7259, allocations: 77.34 kB / 0.6571 GB, free: 5.562 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006948/0.7329, allocations: 2.698 MB / 0.6597 GB, free: 2.852 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001118/0.734, allocations: 69.7 kB / 0.6598 GB, free: 2.777 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001354/0.7354, allocations: 1.169 MB / 0.6609 GB, free: 1.598 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001964/0.7374, allocations: 0.805 MB / 0.6617 GB, free: 0.7812 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002786/0.7402, allocations: 0.5894 MB / 0.6623 GB, free: 188 kB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.7403, allocations: 301.1 kB / 0.6626 GB, free: 15.89 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003607/0.7439, allocations: 1.791 MB / 0.6643 GB, free: 14.09 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00385/0.7478, allocations: 2.154 MB / 0.6664 GB, free: 11.86 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.05987/0.8077, allocations: 13.08 MB / 0.6792 GB, free: 14.64 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-05/0.8077, allocations: 4 kB / 0.6792 GB, free: 14.64 MB / 494.1 MB Notification: Performance of matching and sorting (n=429) (initialization): time 0.02493/0.8327, allocations: 7.448 MB / 0.6865 GB, free: 7.117 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.637e-05/0.8328, allocations: 8 kB / 0.6865 GB, free: 7.109 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.813e-05/0.8328, allocations: 4 kB / 0.6865 GB, free: 7.105 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01391/0.8467, allocations: 3.235 MB / 0.6896 GB, free: 3.828 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008669/0.8554, allocations: 1.428 MB / 0.691 GB, free: 2.398 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03036/0.8858, allocations: 15.54 MB / 0.7062 GB, free: 2.176 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00636/0.8922, allocations: 393.1 kB / 0.7066 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001356/0.8936, allocations: 120 kB / 0.7067 GB, free: 1.672 MB / 0.4981 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.0039/0.8975, allocations: 0.4983 MB / 0.7072 GB, free: 1.168 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002152/0.8997, allocations: 304.2 kB / 0.7075 GB, free: 0.8672 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02864/0.9284, allocations: 8.118 MB / 0.7154 GB, free: 8.715 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.362e-05/0.9284, allocations: 24 kB / 0.7154 GB, free: 8.691 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.9285, allocations: 0 / 0.7154 GB, free: 8.691 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.256e-05/0.9286, allocations: 7.969 kB / 0.7154 GB, free: 8.684 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.03965/0.9682, allocations: 12.15 MB / 0.7273 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.183e-05/0.9683, allocations: 4 kB / 0.7273 GB, free: 12.32 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002064/0.9704, allocations: 223.7 kB / 0.7275 GB, free: 12.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01451/0.9849, allocations: 4.168 MB / 0.7316 GB, free: 7.922 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001049/0.986, allocations: 51.92 kB / 0.7316 GB, free: 7.871 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04469/1.031, allocations: 15.15 MB / 0.7464 GB, free: 8.57 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/1.031, allocations: 0 / 0.7464 GB, free: 8.57 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03593/1.067, allocations: 10.14 MB / 0.7563 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002569/1.069, allocations: 464.6 kB / 0.7568 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00288/1.072, allocations: 47.94 kB / 0.7568 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005623/1.078, allocations: 167.8 kB / 0.757 GB, free: 13.71 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002714/1.081, allocations: 374.3 kB / 0.7573 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007148/1.081, allocations: 52 kB / 0.7574 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004423/1.086, allocations: 1.779 MB / 0.7591 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.653e-06/1.086, allocations: 0 / 0.7591 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007728/1.094, allocations: 1.097 MB / 0.7602 GB, free: 10.41 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.001223/1.095, allocations: 160.8 kB / 0.7603 GB, free: 10.24 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01817/1.113, allocations: 6.347 MB / 0.7665 GB, free: 3.637 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.423e-06/1.113, allocations: 4.062 kB / 0.7665 GB, free: 3.633 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01293/1.126, allocations: 3.3 MB / 0.7698 GB, free: 324 kB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008597/1.135, allocations: 230.1 kB / 0.77 GB, free: 96 kB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3402/1.475, allocations: 6.765 MB / 0.7766 GB, free: 162.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001455/1.476, allocations: 1.759 MB / 0.7783 GB, free: 161.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002185/1.479, allocations: 255.8 kB / 0.7786 GB, free: 161.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008307/1.48, allocations: 162.3 kB / 0.7787 GB, free: 161.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.242e-06/1.48, allocations: 0 / 0.7787 GB, free: 161.5 MB / 0.5606 GB Notification: Performance of Templates: time 0.1084/1.588, allocations: 51.67 MB / 0.8292 GB, free: 136.8 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)