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.001167/0.001166, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.425/1.425, allocations: 222.9 MB / 238.8 MB, free: 4.711 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.001927/0.001928, allocations: 192.4 kB / 289.1 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.547/0.547, allocations: 91.9 MB / 431.2 MB, free: 9.426 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001701/0.001701, allocations: 79.88 kB / 0.5012 GB, free: 8.145 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.485/0.4867, allocations: 71.26 MB / 0.5708 GB, free: 36.44 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.007645/0.4944, allocations: 6.529 MB / 0.5772 GB, free: 32.69 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.006077/0.5005, allocations: 1.91 MB / 0.579 GB, free: 31.51 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0017/0.5023, allocations: 8.156 kB / 0.579 GB, free: 31.51 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001006/0.5034, allocations: 167.2 kB / 0.5792 GB, free: 31.45 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003033/0.5064, allocations: 0.6737 MB / 0.5799 GB, free: 31.01 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001551/0.508, allocations: 0.5563 MB / 0.5804 GB, free: 30.72 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002064/0.5101, allocations: 1.31 MB / 0.5817 GB, free: 30.09 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005913/0.5107, allocations: 244.6 kB / 0.5819 GB, free: 29.98 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000987/0.5117, allocations: 0.5456 MB / 0.5825 GB, free: 29.72 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00108/0.5128, allocations: 0.7112 MB / 0.5831 GB, free: 29.4 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001906/0.513, allocations: 67.06 kB / 0.5832 GB, free: 29.4 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000571/0.5135, allocations: 196.4 kB / 0.5834 GB, free: 29.36 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002054/0.5138, allocations: 253.8 kB / 0.5836 GB, free: 29.2 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004936/0.5143, allocations: 0.5673 MB / 0.5842 GB, free: 28.84 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001172/0.5154, allocations: 1.443 MB / 0.5856 GB, free: 28.19 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/0.5154, allocations: 0 / 0.5856 GB, free: 28.19 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.5155, allocations: 0 / 0.5856 GB, free: 28.19 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.5155, allocations: 4 kB / 0.5856 GB, free: 28.18 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.008979/0.5245, allocations: 2.477 MB / 0.588 GB, free: 27.04 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.364e-05/0.5246, allocations: 9.688 kB / 0.588 GB, free: 27.04 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005212/0.5298, allocations: 0.7624 MB / 0.5888 GB, free: 26.89 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001611/0.5314, allocations: 0.7912 MB / 0.5896 GB, free: 26.33 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003393/0.5318, allocations: 261 kB / 0.5898 GB, free: 26.11 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002514/0.5321, allocations: 73.88 kB / 0.5899 GB, free: 26.09 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002908/0.535, allocations: 1.173 MB / 0.591 GB, free: 25.62 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.392e-05/0.535, allocations: 7.922 kB / 0.591 GB, free: 25.61 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.994e-05/0.5351, allocations: 26.84 kB / 0.5911 GB, free: 25.59 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.905e-05/0.5351, allocations: 16.59 kB / 0.5911 GB, free: 25.59 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002094/0.5372, allocations: 0.9521 MB / 0.592 GB, free: 25.29 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.006688/0.5439, allocations: 3.58 MB / 0.5955 GB, free: 23.11 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007569/0.5515, allocations: 2.303 MB / 0.5977 GB, free: 22.33 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00171/0.5533, allocations: 0.6584 MB / 0.5984 GB, free: 22.07 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001926/0.5535, allocations: 17.28 kB / 0.5984 GB, free: 22.07 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.138e-05/0.5536, allocations: 47.53 kB / 0.5984 GB, free: 22.01 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 5.22e-06/0.5536, allocations: 0 / 0.5984 GB, free: 22.01 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.03437/0.588, allocations: 6.873 MB / 0.6052 GB, free: 20.71 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001417/0.5882, allocations: 97.67 kB / 0.6053 GB, free: 20.61 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002494/0.5907, allocations: 0.9675 MB / 0.6062 GB, free: 20.19 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003618/0.5911, allocations: 42.3 kB / 0.6062 GB, free: 20.14 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005896/0.5917, allocations: 464.2 kB / 0.6067 GB, free: 19.78 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006022/0.5923, allocations: 318.7 kB / 0.607 GB, free: 19.53 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009303/0.5932, allocations: 256.7 kB / 0.6072 GB, free: 19.41 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.941e-05/0.5933, allocations: 301.1 kB / 0.6075 GB, free: 19.12 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001784/0.5951, allocations: 0.6947 MB / 0.6082 GB, free: 18.86 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001895/0.597, allocations: 0.9125 MB / 0.6091 GB, free: 18.38 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02442/0.6214, allocations: 5.062 MB / 0.614 GB, free: 16.61 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.58e-05/0.6216, allocations: 1.875 kB / 0.614 GB, free: 16.61 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01482/0.6364, allocations: 4.136 MB / 0.6181 GB, free: 13.82 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.087e-05/0.6365, allocations: 8 kB / 0.6181 GB, free: 13.81 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.17e-05/0.6365, allocations: 4 kB / 0.6181 GB, free: 13.8 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005071/0.6416, allocations: 1.517 MB / 0.6196 GB, free: 12.29 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/0.6429, allocations: 259.6 kB / 0.6198 GB, free: 12.03 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01697/0.6599, allocations: 7.623 MB / 0.6273 GB, free: 4.258 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002116/0.6621, allocations: 174.9 kB / 0.6274 GB, free: 4.086 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003226/0.6624, allocations: 55.98 kB / 0.6275 GB, free: 4.031 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.0009433/0.6634, allocations: 255.8 kB / 0.6277 GB, free: 3.773 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001439/0.6648, allocations: 340.8 kB / 0.628 GB, free: 3.43 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01101/0.6759, allocations: 3.604 MB / 0.6316 GB, free: 15.81 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.997e-05/0.6759, allocations: 15.94 kB / 0.6316 GB, free: 15.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-05/0.676, allocations: 4 kB / 0.6316 GB, free: 15.79 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.842e-05/0.676, allocations: 7.984 kB / 0.6316 GB, free: 15.79 MB / 446.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.01675/0.6928, allocations: 5.129 MB / 0.6366 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-05/0.6928, allocations: 0 / 0.6366 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006736/0.6935, allocations: 111.8 kB / 0.6367 GB, free: 10.45 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005593/0.6991, allocations: 1.575 MB / 0.6382 GB, free: 8.863 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002309/0.6994, allocations: 31.92 kB / 0.6383 GB, free: 8.832 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01949/0.7189, allocations: 9.874 MB / 0.6479 GB, free: 14.62 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.778e-06/0.719, allocations: 0 / 0.6479 GB, free: 14.62 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01476/0.7337, allocations: 4.608 MB / 0.6524 GB, free: 9.984 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007017/0.7345, allocations: 211.5 kB / 0.6526 GB, free: 9.758 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005249/0.735, allocations: 20 kB / 0.6526 GB, free: 9.738 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001425/0.7365, allocations: 87.89 kB / 0.6527 GB, free: 9.652 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000726/0.7372, allocations: 172.7 kB / 0.6529 GB, free: 9.484 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001356/0.7373, allocations: 27.92 kB / 0.6529 GB, free: 9.457 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001153/0.7385, allocations: 0.6473 MB / 0.6535 GB, free: 8.801 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.7385, allocations: 0 / 0.6535 GB, free: 8.801 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002044/0.7406, allocations: 443.6 kB / 0.654 GB, free: 8.367 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.000379/0.741, allocations: 127.2 kB / 0.6541 GB, free: 8.234 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006491/0.7475, allocations: 2.292 MB / 0.6563 GB, free: 5.926 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.7475, allocations: 4.375 kB / 0.6563 GB, free: 5.922 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004203/0.7517, allocations: 1.317 MB / 0.6576 GB, free: 4.582 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002054/0.7538, allocations: 348.1 kB / 0.6579 GB, free: 4.23 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004866/0.7587, allocations: 2.443 MB / 0.6603 GB, free: 1.77 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007995/0.7595, allocations: 1.081 MB / 0.6614 GB, free: 0.6602 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004872/0.76, allocations: 103.3 kB / 0.6615 GB, free: 0.5547 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002863/0.7603, allocations: 71.42 kB / 0.6616 GB, free: 496 kB / 462.1 MB Notification: Performance of SimCode: time 1.062e-06/0.7603, allocations: 0 / 0.6616 GB, free: 496 kB / 462.1 MB Notification: Performance of Templates: time 0.0355/0.7958, allocations: 19.58 MB / 0.6807 GB, free: 12.91 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)