Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_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.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.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_dev_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_dev_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.001244/0.001243, allocations: 100.1 kB / 15.88 MB, free: 12 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.393/1.393, allocations: 222.9 MB / 239.5 MB, free: 4.746 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.001484/0.001485, allocations: 192.5 kB / 289.8 MB, free: 2.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5263/0.5263, allocations: 91.91 MB / 431.8 MB, free: 9.426 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001654/0.001655, allocations: 79.88 kB / 0.5019 GB, free: 8.141 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3795/0.3812, allocations: 71.26 MB / 0.5714 GB, free: 36.5 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.005638/0.3869, allocations: 6.525 MB / 0.5778 GB, free: 32.74 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00327/0.3902, allocations: 1.906 MB / 0.5797 GB, free: 31.6 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004032/0.3906, allocations: 10.22 kB / 0.5797 GB, free: 31.6 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004163/0.3911, allocations: 165.5 kB / 0.5798 GB, free: 31.53 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00134/0.3924, allocations: 0.6793 MB / 0.5805 GB, free: 31.09 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009433/0.3934, allocations: 0.5516 MB / 0.5811 GB, free: 30.81 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009103/0.3943, allocations: 1.309 MB / 0.5823 GB, free: 30.18 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003157/0.3946, allocations: 252.8 kB / 0.5826 GB, free: 30.06 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004624/0.3951, allocations: 0.5362 MB / 0.5831 GB, free: 29.82 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005222/0.3956, allocations: 0.7211 MB / 0.5838 GB, free: 29.48 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001166/0.3958, allocations: 66.12 kB / 0.5839 GB, free: 29.48 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000333/0.3961, allocations: 192.3 kB / 0.584 GB, free: 29.45 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001725/0.3963, allocations: 259.4 kB / 0.5843 GB, free: 29.29 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003433/0.3966, allocations: 0.5745 MB / 0.5849 GB, free: 28.92 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007317/0.3974, allocations: 1.112 MB / 0.5859 GB, free: 28.48 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.3974, allocations: 3.625 kB / 0.5859 GB, free: 28.48 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.3974, allocations: 0 / 0.5859 GB, free: 28.48 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.633e-05/0.3974, allocations: 0 / 0.5859 GB, free: 28.48 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.007535/0.4049, allocations: 2.485 MB / 0.5884 GB, free: 27.33 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.405, allocations: 12.03 kB / 0.5884 GB, free: 27.33 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00474/0.4097, allocations: 0.7583 MB / 0.5891 GB, free: 27.18 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000984/0.4107, allocations: 0.8002 MB / 0.5899 GB, free: 26.61 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002626/0.411, allocations: 260.5 kB / 0.5902 GB, free: 26.39 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001538/0.4112, allocations: 74.16 kB / 0.5902 GB, free: 26.37 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002316/0.4135, allocations: 1.166 MB / 0.5914 GB, free: 25.91 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.9e-05/0.4135, allocations: 3.938 kB / 0.5914 GB, free: 25.91 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.955e-05/0.4136, allocations: 26.03 kB / 0.5914 GB, free: 25.89 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.833e-05/0.4136, allocations: 20.91 kB / 0.5914 GB, free: 25.88 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001945/0.4156, allocations: 0.9502 MB / 0.5923 GB, free: 25.57 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.005668/0.4213, allocations: 3.585 MB / 0.5958 GB, free: 23.4 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007345/0.4286, allocations: 2.296 MB / 0.5981 GB, free: 22.62 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001442/0.4301, allocations: 0.6579 MB / 0.5987 GB, free: 22.36 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001225/0.4302, allocations: 17.41 kB / 0.5987 GB, free: 22.36 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.544e-05/0.4303, allocations: 47.62 kB / 0.5988 GB, free: 22.3 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 3.977e-06/0.4303, allocations: 0 / 0.5988 GB, free: 22.3 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02974/0.46, allocations: 6.872 MB / 0.6055 GB, free: 21 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.407e-05/0.4602, allocations: 100.7 kB / 0.6056 GB, free: 20.9 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001579/0.4618, allocations: 0.9659 MB / 0.6065 GB, free: 20.48 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001809/0.462, allocations: 41.42 kB / 0.6066 GB, free: 20.44 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003312/0.4623, allocations: 457.7 kB / 0.607 GB, free: 20.08 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003268/0.4626, allocations: 317 kB / 0.6073 GB, free: 19.83 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004673/0.4631, allocations: 256.7 kB / 0.6076 GB, free: 19.71 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.864e-05/0.4632, allocations: 301.9 kB / 0.6078 GB, free: 19.42 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001415/0.4646, allocations: 0.6947 MB / 0.6085 GB, free: 19.16 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001568/0.4662, allocations: 0.9159 MB / 0.6094 GB, free: 18.68 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02176/0.4879, allocations: 5.058 MB / 0.6144 GB, free: 16.91 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.586e-05/0.488, allocations: 1.469 kB / 0.6144 GB, free: 16.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01214/0.5001, allocations: 4.138 MB / 0.6184 GB, free: 14.16 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.029e-05/0.5002, allocations: 6.031 kB / 0.6184 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.684e-05/0.5002, allocations: 8 kB / 0.6184 GB, free: 14.15 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004751/0.505, allocations: 1.517 MB / 0.6199 GB, free: 12.63 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001164/0.5062, allocations: 263.6 kB / 0.6201 GB, free: 12.38 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01521/0.5214, allocations: 7.629 MB / 0.6276 GB, free: 4.594 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001709/0.5231, allocations: 170.9 kB / 0.6278 GB, free: 4.426 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/0.5233, allocations: 51.98 kB / 0.6278 GB, free: 4.375 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.0005759/0.5238, allocations: 260.6 kB / 0.6281 GB, free: 4.113 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009353/0.5248, allocations: 340.8 kB / 0.6284 GB, free: 3.77 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01039/0.5352, allocations: 3.592 MB / 0.6319 GB, free: 168 kB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.879e-05/0.5353, allocations: 15.88 kB / 0.6319 GB, free: 152 kB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.5e-05/0.5353, allocations: 8 kB / 0.6319 GB, free: 144 kB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.38e-05/0.5353, allocations: 3.984 kB / 0.6319 GB, free: 140 kB / 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.01453/0.5498, allocations: 5.133 MB / 0.6369 GB, free: 10.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.806e-06/0.5499, allocations: 0 / 0.6369 GB, free: 10.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005811/0.5505, allocations: 111.8 kB / 0.637 GB, free: 10.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005181/0.5557, allocations: 1.575 MB / 0.6386 GB, free: 9.211 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.705e-05/0.5558, allocations: 27.94 kB / 0.6386 GB, free: 9.184 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01739/0.5732, allocations: 9.889 MB / 0.6483 GB, free: 14.95 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/0.5732, allocations: 3.984 kB / 0.6483 GB, free: 14.95 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01367/0.5869, allocations: 4.605 MB / 0.6528 GB, free: 10.32 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006433/0.5876, allocations: 203.5 kB / 0.653 GB, free: 10.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003283/0.588, allocations: 23.98 kB / 0.653 GB, free: 10.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001215/0.5892, allocations: 83.91 kB / 0.6531 GB, free: 9.992 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005961/0.5898, allocations: 176.7 kB / 0.6532 GB, free: 9.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.452e-05/0.5899, allocations: 27.92 kB / 0.6533 GB, free: 9.793 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0009452/0.5908, allocations: 0.6434 MB / 0.6539 GB, free: 9.141 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5909, allocations: 0 / 0.6539 GB, free: 9.141 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001576/0.5924, allocations: 435.6 kB / 0.6543 GB, free: 8.715 MB / 462.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.0002985/0.5927, allocations: 143.7 kB / 0.6544 GB, free: 8.566 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005799/0.5986, allocations: 2.284 MB / 0.6567 GB, free: 6.266 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.027e-06/0.5986, allocations: 4 kB / 0.6567 GB, free: 6.262 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003824/0.6024, allocations: 1.314 MB / 0.6579 GB, free: 4.926 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001733/0.6042, allocations: 341.7 kB / 0.6583 GB, free: 4.578 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004272/0.6085, allocations: 2.487 MB / 0.6607 GB, free: 2.066 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006058/0.6091, allocations: 1.077 MB / 0.6618 GB, free: 0.9609 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003239/0.6094, allocations: 79.41 kB / 0.6618 GB, free: 0.8828 MB / 462.1 MB Notification: Performance of SimCode: time 2.034e-06/0.6095, allocations: 0 / 0.6618 GB, free: 0.8828 MB / 462.1 MB Notification: Performance of Templates: time 0.02539/0.6348, allocations: 21.31 MB / 0.6826 GB, free: 11.55 MB / 494.1 MB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)