Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001765/0.001765, allocations: 108 kB / 15.6 MB, free: 132 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.392/1.392, allocations: 222.9 MB / 239.3 MB, free: 4.566 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.001556/0.001556, allocations: 184.5 kB / 289.5 MB, free: 2.297 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4917/0.4917, allocations: 78.52 MB / 418.2 MB, free: 3.141 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001718/0.001718, allocations: 79.88 kB / 497.4 MB, free: 6.375 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1587/0.1605, allocations: 68.18 MB / 0.5524 GB, free: 2.156 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.2818/0.4423, allocations: 6.193 MB / 0.5584 GB, free: 36.21 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004219/0.4466, allocations: 1.859 MB / 0.5602 GB, free: 35.67 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008681/0.4475, allocations: 9.969 kB / 0.5602 GB, free: 35.67 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006302/0.4482, allocations: 213.2 kB / 0.5604 GB, free: 35.66 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001975/0.4502, allocations: 0.7484 MB / 0.5612 GB, free: 35.52 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/Electrical/Machines/PSAT/Order4.mo:25:3-30:9:writable] Warning: In relation order4.xq <> order4.x1q, <> on Real numbers is only allowed inside functions. Notification: Performance of NFTyping.typeClassSections: time 0.001205/0.4514, allocations: 0.5857 MB / 0.5617 GB, free: 35.44 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001471/0.4529, allocations: 1.372 MB / 0.5631 GB, free: 35.3 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004339/0.4533, allocations: 287.2 kB / 0.5634 GB, free: 35.25 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008437/0.4542, allocations: 0.5785 MB / 0.5639 GB, free: 35.09 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007248/0.4549, allocations: 0.7483 MB / 0.5647 GB, free: 34.9 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001511/0.4551, allocations: 104.8 kB / 0.5648 GB, free: 34.9 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004952/0.4556, allocations: 244.4 kB / 0.565 GB, free: 34.89 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002203/0.4558, allocations: 294.3 kB / 0.5653 GB, free: 34.81 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004519/0.4563, allocations: 0.6065 MB / 0.5659 GB, free: 34.59 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001385/0.4577, allocations: 1.479 MB / 0.5673 GB, free: 34.23 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.4577, allocations: 0 / 0.5673 GB, free: 34.23 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4577, allocations: 4.438 kB / 0.5673 GB, free: 34.23 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.553e-05/0.4577, allocations: 0 / 0.5673 GB, free: 34.23 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.007654/0.4654, allocations: 2.479 MB / 0.5697 GB, free: 33.36 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.4654, allocations: 9.625 kB / 0.5697 GB, free: 33.36 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004743/0.4702, allocations: 0.772 MB / 0.5705 GB, free: 33.27 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001141/0.4713, allocations: 0.7892 MB / 0.5713 GB, free: 32.87 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002513/0.4716, allocations: 258.9 kB / 0.5715 GB, free: 32.68 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001356/0.4717, allocations: 72.33 kB / 0.5716 GB, free: 32.68 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002108/0.4739, allocations: 1.182 MB / 0.5727 GB, free: 32.55 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.028e-05/0.4739, allocations: 3.938 kB / 0.5727 GB, free: 32.54 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.27e-05/0.474, allocations: 28.69 kB / 0.5728 GB, free: 32.54 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.522e-05/0.474, allocations: 19.12 kB / 0.5728 GB, free: 32.54 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001732/0.4757, allocations: 0.9545 MB / 0.5737 GB, free: 32.53 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.005119/0.4809, allocations: 3.55 MB / 0.5772 GB, free: 31.24 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006636/0.4875, allocations: 2.303 MB / 0.5794 GB, free: 30.57 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001309/0.4889, allocations: 0.6534 MB / 0.5801 GB, free: 30.31 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.7e-05/0.489, allocations: 19.95 kB / 0.5801 GB, free: 30.31 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.409e-05/0.489, allocations: 45.34 kB / 0.5801 GB, free: 30.26 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 3.075e-06/0.489, allocations: 0 / 0.5801 GB, free: 30.26 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02728/0.5163, allocations: 6.75 MB / 0.5867 GB, free: 28.95 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001486/0.5165, allocations: 94.7 kB / 0.5868 GB, free: 28.85 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001694/0.5182, allocations: 0.9673 MB / 0.5878 GB, free: 28.43 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002609/0.5185, allocations: 43.41 kB / 0.5878 GB, free: 28.39 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002923/0.5188, allocations: 455.1 kB / 0.5882 GB, free: 28.03 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003516/0.5191, allocations: 317.9 kB / 0.5885 GB, free: 27.79 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004576/0.5196, allocations: 258.1 kB / 0.5888 GB, free: 27.67 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.985e-05/0.5197, allocations: 301.1 kB / 0.5891 GB, free: 27.37 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001654/0.5213, allocations: 0.7066 MB / 0.5898 GB, free: 27.11 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001679/0.523, allocations: 0.9118 MB / 0.5906 GB, free: 26.62 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02259/0.5456, allocations: 5.074 MB / 0.5956 GB, free: 25.14 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-05/0.5457, allocations: 2.719 kB / 0.5956 GB, free: 25.14 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01443/0.5601, allocations: 4.145 MB / 0.5997 GB, free: 24.09 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.761e-05/0.5602, allocations: 8.875 kB / 0.5997 GB, free: 24.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.384e-05/0.5602, allocations: 5.875 kB / 0.5997 GB, free: 24.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005794/0.566, allocations: 1.523 MB / 0.6012 GB, free: 23.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00136/0.5674, allocations: 256.2 kB / 0.6014 GB, free: 23.78 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02059/0.588, allocations: 8.275 MB / 0.6095 GB, free: 18.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001975/0.5901, allocations: 169 kB / 0.6096 GB, free: 18.86 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003131/0.5904, allocations: 58.22 kB / 0.6097 GB, free: 18.84 MB / 430.1 MB Warning: Assuming fixed start value for the following 4 variables: order4.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 order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" type: Real order4.e1q:VARIABLE(start = order4.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: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * Top-level inputs: 0 Notification: Strong component statistics for initialization (151): * Single equations (assignments): 150 * 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): 1 system {(18,13,25.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008833/0.5913, allocations: 272.6 kB / 0.61 GB, free: 18.62 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001212/0.5926, allocations: 333 kB / 0.6103 GB, free: 18.44 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01141/0.604, allocations: 3.591 MB / 0.6138 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.206e-05/0.6041, allocations: 12 kB / 0.6138 GB, free: 15.69 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.112e-05/0.6041, allocations: 8 kB / 0.6138 GB, free: 15.68 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.36e-05/0.6041, allocations: 3.984 kB / 0.6138 GB, free: 15.68 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 postOpt removeSimpleEquations (simulation): time 0.01382/0.6179, allocations: 5.126 MB / 0.6188 GB, free: 10.45 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.859e-05/0.618, allocations: 3.938 kB / 0.6188 GB, free: 10.44 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006353/0.6187, allocations: 109.7 kB / 0.6189 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005087/0.6238, allocations: 1.583 MB / 0.6205 GB, free: 8.746 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001858/0.624, allocations: 19.98 kB / 0.6205 GB, free: 8.727 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01804/0.642, allocations: 10.76 MB / 0.631 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.6421, allocations: 0 / 0.631 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01474/0.6568, allocations: 4.617 MB / 0.6355 GB, free: 8.977 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005462/0.6574, allocations: 211.5 kB / 0.6357 GB, free: 8.75 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003765/0.6578, allocations: 21.56 kB / 0.6357 GB, free: 8.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/0.659, allocations: 87.89 kB / 0.6358 GB, free: 8.645 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005793/0.6596, allocations: 172.8 kB / 0.636 GB, free: 8.473 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.649e-05/0.6597, allocations: 20 kB / 0.636 GB, free: 8.453 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001043/0.6608, allocations: 0.6473 MB / 0.6366 GB, free: 7.797 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6608, allocations: 0 / 0.6366 GB, free: 7.797 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001752/0.6626, allocations: 439.6 kB / 0.637 GB, free: 7.367 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vm,aVRTypeII.vr1,aVRTypeII.vr2,aVRTypeII.vf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003171/0.6629, allocations: 128 kB / 0.6372 GB, free: 7.23 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00666/0.6696, allocations: 2.321 MB / 0.6394 GB, free: 4.906 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.6696, allocations: 448 / 0.6394 GB, free: 4.906 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004115/0.6737, allocations: 1.322 MB / 0.6407 GB, free: 3.566 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001836/0.6756, allocations: 353.6 kB / 0.6411 GB, free: 3.207 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004738/0.6804, allocations: 2.078 MB / 0.6431 GB, free: 1.133 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008783/0.6813, allocations: 1.077 MB / 0.6441 GB, free: 28 kB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005879/0.6819, allocations: 106.6 kB / 0.6442 GB, free: 15.92 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002971/0.6822, allocations: 71.36 kB / 0.6443 GB, free: 15.85 MB / 462.1 MB Notification: Performance of SimCode: time 1.532e-06/0.6822, allocations: 0 / 0.6443 GB, free: 15.85 MB / 462.1 MB Notification: Performance of Templates: time 0.03793/0.7201, allocations: 21.43 MB / 0.6652 GB, free: 10.64 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)