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.0008248/0.0008249, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.485/1.485, allocations: 223.3 MB / 239.4 MB, free: 5.469 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.00113/0.00113, allocations: 184.5 kB / 290.6 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.55/0.55, allocations: 91.94 MB / 433.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004517/0.0004521, allocations: 12 kB / 0.5048 GB, free: 7.258 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4641/0.4646, allocations: 72.46 MB / 0.5755 GB, free: 36.72 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.007071/0.4717, allocations: 6.062 MB / 0.5814 GB, free: 32.72 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004862/0.4766, allocations: 1.902 MB / 0.5833 GB, free: 31.38 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009062/0.4776, allocations: 11.34 kB / 0.5833 GB, free: 31.38 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005467/0.4781, allocations: 163.7 kB / 0.5835 GB, free: 31.31 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001911/0.48, allocations: 0.6769 MB / 0.5841 GB, free: 30.87 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001224/0.4813, allocations: 0.5395 MB / 0.5847 GB, free: 30.6 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001263/0.4826, allocations: 1.314 MB / 0.5859 GB, free: 29.96 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000374/0.4829, allocations: 246.9 kB / 0.5862 GB, free: 29.86 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005481/0.4835, allocations: 0.5121 MB / 0.5867 GB, free: 29.62 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000583/0.4841, allocations: 0.6889 MB / 0.5873 GB, free: 29.32 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001096/0.4842, allocations: 55.28 kB / 0.5874 GB, free: 29.32 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004356/0.4846, allocations: 189.4 kB / 0.5876 GB, free: 29.27 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001691/0.4848, allocations: 239.5 kB / 0.5878 GB, free: 29.13 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003806/0.4852, allocations: 0.5783 MB / 0.5884 GB, free: 28.74 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001139/0.4864, allocations: 1.406 MB / 0.5897 GB, free: 28.2 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.4864, allocations: 1 kB / 0.5898 GB, free: 28.2 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.4864, allocations: 3.094 kB / 0.5898 GB, free: 28.2 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.4864, allocations: 0 / 0.5898 GB, free: 28.2 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.00777/0.4942, allocations: 2.297 MB / 0.592 GB, free: 27.19 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.586e-05/0.4942, allocations: 11.91 kB / 0.592 GB, free: 27.19 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005277/0.4995, allocations: 0.7675 MB / 0.5928 GB, free: 27.04 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001581/0.5011, allocations: 0.7955 MB / 0.5935 GB, free: 26.48 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003366/0.5015, allocations: 275.9 kB / 0.5938 GB, free: 26.25 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001754/0.5017, allocations: 72.94 kB / 0.5939 GB, free: 26.23 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002693/0.5044, allocations: 1.239 MB / 0.5951 GB, free: 25.76 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.016e-05/0.5044, allocations: 3.938 kB / 0.5951 GB, free: 25.76 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001023/0.5045, allocations: 29.69 kB / 0.5951 GB, free: 25.73 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.25e-05/0.5045, allocations: 17.78 kB / 0.5951 GB, free: 25.73 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002295/0.5068, allocations: 1.018 MB / 0.5961 GB, free: 25.42 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.006766/0.5136, allocations: 3.662 MB / 0.5997 GB, free: 23.23 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008433/0.5221, allocations: 2.856 MB / 0.6025 GB, free: 22.39 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001781/0.5239, allocations: 0.725 MB / 0.6032 GB, free: 22.12 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001047/0.524, allocations: 21.03 kB / 0.6032 GB, free: 22.12 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.88e-05/0.5241, allocations: 43.95 kB / 0.6033 GB, free: 22.07 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 3.337e-06/0.5241, allocations: 0 / 0.6033 GB, free: 22.07 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.03231/0.5564, allocations: 8.431 MB / 0.6115 GB, free: 20.58 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/0.5565, allocations: 94.98 kB / 0.6116 GB, free: 20.48 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001648/0.5582, allocations: 0.967 MB / 0.6125 GB, free: 20.07 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002601/0.5585, allocations: 41.86 kB / 0.6126 GB, free: 20.02 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003274/0.5588, allocations: 460.8 kB / 0.613 GB, free: 19.66 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003452/0.5592, allocations: 313.8 kB / 0.6133 GB, free: 19.42 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001926/0.5594, allocations: 138.1 kB / 0.6134 GB, free: 19.35 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.03e-05/0.5594, allocations: 301.1 kB / 0.6137 GB, free: 19.05 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001663/0.5611, allocations: 0.757 MB / 0.6145 GB, free: 18.79 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001767/0.5629, allocations: 0.9798 MB / 0.6154 GB, free: 18.3 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02287/0.5857, allocations: 5.499 MB / 0.6208 GB, free: 14.73 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-05/0.5858, allocations: 0 / 0.6208 GB, free: 14.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01326/0.5991, allocations: 4.969 MB / 0.6256 GB, free: 9.746 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.652e-05/0.5992, allocations: 8 kB / 0.6256 GB, free: 9.738 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.767e-05/0.5992, allocations: 4 kB / 0.6257 GB, free: 9.734 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00547/0.6047, allocations: 1.79 MB / 0.6274 GB, free: 7.941 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/0.6059, allocations: 255.6 kB / 0.6276 GB, free: 7.691 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01774/0.6237, allocations: 8.633 MB / 0.6361 GB, free: 14.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00201/0.6257, allocations: 202.9 kB / 0.6363 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001196/0.6259, allocations: 51.97 kB / 0.6363 GB, free: 14.66 MB / 446.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.000684/0.6266, allocations: 263.1 kB / 0.6366 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001053/0.6276, allocations: 364.8 kB / 0.6369 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01372/0.6414, allocations: 4.432 MB / 0.6412 GB, free: 9.578 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.123e-05/0.6414, allocations: 11.94 kB / 0.6413 GB, free: 9.566 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.547e-05/0.6414, allocations: 8 kB / 0.6413 GB, free: 9.559 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.373e-05/0.6415, allocations: 3.984 kB / 0.6413 GB, free: 9.555 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.01653/0.658, allocations: 5.985 MB / 0.6471 GB, free: 3.465 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-05/0.6581, allocations: 0 / 0.6471 GB, free: 3.465 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007176/0.6588, allocations: 115.8 kB / 0.6472 GB, free: 3.352 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006353/0.6652, allocations: 1.871 MB / 0.649 GB, free: 1.473 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002095/0.6654, allocations: 19.94 kB / 0.6491 GB, free: 1.453 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02139/0.6868, allocations: 10.79 MB / 0.6596 GB, free: 6.324 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.6869, allocations: 0 / 0.6596 GB, free: 6.324 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01662/0.7035, allocations: 5.523 MB / 0.665 GB, free: 0.7734 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005824/0.7041, allocations: 219.5 kB / 0.6652 GB, free: 0.5391 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001591/0.7043, allocations: 20 kB / 0.6652 GB, free: 0.5195 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00109/0.7054, allocations: 119.9 kB / 0.6653 GB, free: 412 kB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005626/0.706, allocations: 176.7 kB / 0.6655 GB, free: 236 kB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.782e-05/0.7061, allocations: 23.94 kB / 0.6655 GB, free: 212 kB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008496/0.7069, allocations: 0.6434 MB / 0.6662 GB, free: 15.55 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7069, allocations: 0 / 0.6662 GB, free: 15.55 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001391/0.7083, allocations: 447.6 kB / 0.6666 GB, free: 15.12 MB / 478.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.0002909/0.7086, allocations: 123.2 kB / 0.6667 GB, free: 14.99 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006599/0.7152, allocations: 2.573 MB / 0.6692 GB, free: 12.39 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.7153, allocations: 3.938 kB / 0.6692 GB, free: 12.39 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004538/0.7198, allocations: 1.533 MB / 0.6707 GB, free: 10.84 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001886/0.7217, allocations: 365.9 kB / 0.6711 GB, free: 10.47 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004284/0.726, allocations: 2.53 MB / 0.6735 GB, free: 7.922 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006754/0.7267, allocations: 1.088 MB / 0.6746 GB, free: 6.797 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004145/0.7272, allocations: 103.3 kB / 0.6747 GB, free: 6.691 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002319/0.7274, allocations: 71.41 kB / 0.6748 GB, free: 6.621 MB / 478.1 MB Notification: Performance of SimCode: time 2.204e-06/0.7274, allocations: 0 / 0.6748 GB, free: 6.621 MB / 478.1 MB Notification: Performance of Templates: time 0.03432/0.7617, allocations: 19.16 MB / 0.6935 GB, free: 3.469 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)