Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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_release_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_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00573/0.00573, allocations: 169.6 kB / 15.13 MB, free: 6.023 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 223.3 MB / 239.1 MB, free: 15.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007996/0.0007996, allocations: 96.42 kB / 290.3 MB, free: 4.535 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4786/0.4786, allocations: 78.61 MB / 420 MB, free: 36.52 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003528/0.0003528, allocations: 16 kB / 499.9 MB, free: 7.23 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.135, allocations: 69.35 MB / 0.5559 GB, free: 1.816 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.005433/0.1405, allocations: 5.68 MB / 0.5615 GB, free: 12.11 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.003304/0.1439, allocations: 1.815 MB / 0.5632 GB, free: 10.29 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003752/0.1443, allocations: 8 kB / 0.5632 GB, free: 10.28 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003686/0.1446, allocations: 154.8 kB / 0.5634 GB, free: 10.13 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001455/0.1461, allocations: 0.6178 MB / 0.564 GB, free: 9.508 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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.001049/0.1472, allocations: 0.5097 MB / 0.5645 GB, free: 9.004 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.001183/0.1484, allocations: 1.238 MB / 0.5657 GB, free: 7.762 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003407/0.1487, allocations: 232 kB / 0.5659 GB, free: 7.527 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005358/0.1492, allocations: 0.5055 MB / 0.5664 GB, free: 7.02 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006653/0.1499, allocations: 0.6689 MB / 0.5671 GB, free: 6.348 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001173/0.1501, allocations: 56 kB / 0.5671 GB, free: 6.293 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003579/0.1504, allocations: 179.9 kB / 0.5673 GB, free: 6.117 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001752/0.1506, allocations: 234.8 kB / 0.5675 GB, free: 5.887 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001622/0.1508, allocations: 213 kB / 0.5677 GB, free: 5.672 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008852/0.1517, allocations: 1.087 MB / 0.5688 GB, free: 4.582 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1517, allocations: 0 / 0.5688 GB, free: 4.582 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1517, allocations: 0 / 0.5688 GB, free: 4.582 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.081e-05/0.1517, allocations: 0 / 0.5688 GB, free: 4.582 MB / 442.7 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.007413/0.1591, allocations: 2.306 MB / 0.571 GB, free: 2.223 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.1592, allocations: 12.03 kB / 0.571 GB, free: 2.211 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004865/0.164, allocations: 0.7749 MB / 0.5718 GB, free: 1.434 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009984/0.165, allocations: 0.7548 MB / 0.5725 GB, free: 0.6211 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002953/0.1654, allocations: 272.2 kB / 0.5728 GB, free: 324 kB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001433/0.1655, allocations: 76 kB / 0.5729 GB, free: 248 kB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2412/0.4067, allocations: 1.237 MB / 0.5741 GB, free: 44.11 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.4068, allocations: 0 / 0.5741 GB, free: 44.11 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-05/0.4069, allocations: 27.62 kB / 0.5741 GB, free: 44.11 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.795e-05/0.4069, allocations: 22.88 kB / 0.5741 GB, free: 44.11 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001969/0.4089, allocations: 1.008 MB / 0.5751 GB, free: 44.11 MB / 442.7 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.005464/0.4144, allocations: 3.627 MB / 0.5787 GB, free: 42.98 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007726/0.4221, allocations: 2.862 MB / 0.5814 GB, free: 42.52 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001343/0.4235, allocations: 0.719 MB / 0.5821 GB, free: 42.49 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.568e-05/0.4236, allocations: 15.94 kB / 0.5822 GB, free: 42.49 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.244e-05/0.4236, allocations: 47.78 kB / 0.5822 GB, free: 42.45 MB / 442.7 MB Notification: Performance of pre-optimization done (n=92): time 3.827e-06/0.4236, allocations: 0 / 0.5822 GB, free: 42.45 MB / 442.7 MB Notification: Performance of matching and sorting (n=92): time 0.02858/0.4522, allocations: 8.213 MB / 0.5902 GB, free: 41.76 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.811e-05/0.4523, allocations: 99.89 kB / 0.5903 GB, free: 41.66 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001209/0.4535, allocations: 0.9585 MB / 0.5913 GB, free: 41.51 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001/0.4536, allocations: 43.89 kB / 0.5913 GB, free: 41.48 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002643/0.4539, allocations: 460.5 kB / 0.5917 GB, free: 41.32 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002566/0.4542, allocations: 313 kB / 0.592 GB, free: 41.12 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.46e-05/0.4543, allocations: 29.44 kB / 0.5921 GB, free: 41.12 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.4544, allocations: 359.2 kB / 0.5924 GB, free: 40.82 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001473/0.4559, allocations: 0.7577 MB / 0.5932 GB, free: 40.8 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001409/0.4573, allocations: 0.9692 MB / 0.5941 GB, free: 40.54 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001386/0.4587, allocations: 0.8391 MB / 0.5949 GB, free: 40.18 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.4587, allocations: 3.219 kB / 0.5949 GB, free: 40.18 MB / 442.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01257/0.4713, allocations: 4.918 MB / 0.5997 GB, free: 39.07 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.135e-05/0.4713, allocations: 5.938 kB / 0.5997 GB, free: 39.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.096e-05/0.4714, allocations: 6.062 kB / 0.5997 GB, free: 39.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005576/0.4769, allocations: 1.875 MB / 0.6016 GB, free: 38.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/0.478, allocations: 262.2 kB / 0.6018 GB, free: 38.72 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01823/0.4962, allocations: 8.764 MB / 0.6104 GB, free: 35.01 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001699/0.4979, allocations: 205.6 kB / 0.6106 GB, free: 34.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.4981, allocations: 49.8 kB / 0.6106 GB, free: 34.92 MB / 442.7 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 order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" 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 (150): * Single equations (assignments): 149 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {20 12} Notification: Performance of prepare postOptimizeDAE: time 0.0005321/0.4986, allocations: 263.4 kB / 0.6109 GB, free: 34.71 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009612/0.4996, allocations: 360.9 kB / 0.6112 GB, free: 34.55 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.013/0.5126, allocations: 4.412 MB / 0.6155 GB, free: 33.64 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.66e-05/0.5126, allocations: 9.375 kB / 0.6155 GB, free: 33.64 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.461e-05/0.5127, allocations: 7.812 kB / 0.6155 GB, free: 33.64 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-05/0.5127, allocations: 6.156 kB / 0.6155 GB, free: 33.64 MB / 442.7 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.01624/0.5289, allocations: 5.977 MB / 0.6214 GB, free: 31.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/0.529, allocations: 0 / 0.6214 GB, free: 31.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006342/0.5296, allocations: 112.4 kB / 0.6215 GB, free: 31.85 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005976/0.5356, allocations: 1.87 MB / 0.6233 GB, free: 31.52 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000133/0.5358, allocations: 20.12 kB / 0.6233 GB, free: 31.51 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01729/0.5531, allocations: 10.8 MB / 0.6339 GB, free: 24.21 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.5531, allocations: 4 kB / 0.6339 GB, free: 24.21 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01394/0.567, allocations: 5.511 MB / 0.6393 GB, free: 18.68 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003395/0.5674, allocations: 212.4 kB / 0.6395 GB, free: 18.45 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001366/0.5675, allocations: 24 kB / 0.6395 GB, free: 18.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009829/0.5685, allocations: 123.9 kB / 0.6396 GB, free: 18.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004371/0.569, allocations: 169.9 kB / 0.6398 GB, free: 18.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.943e-05/0.569, allocations: 24 kB / 0.6398 GB, free: 18.11 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006703/0.5697, allocations: 0.6356 MB / 0.6404 GB, free: 17.47 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5697, allocations: 4 kB / 0.6404 GB, free: 17.46 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001156/0.5709, allocations: 434.6 kB / 0.6408 GB, free: 17.04 MB / 442.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(20,23.0%) 12} * Non-linear torn systems: 1 {3 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002198/0.5711, allocations: 139.6 kB / 0.641 GB, free: 16.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005463/0.5766, allocations: 2.587 MB / 0.6435 GB, free: 14.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.5766, allocations: 1.375 kB / 0.6435 GB, free: 14.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003694/0.5803, allocations: 1.534 MB / 0.645 GB, free: 12.77 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/0.5815, allocations: 373.9 kB / 0.6454 GB, free: 12.39 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002923/0.5844, allocations: 2.438 MB / 0.6477 GB, free: 9.977 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00033/0.5848, allocations: 1.077 MB / 0.6488 GB, free: 8.871 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000307/0.5851, allocations: 98.86 kB / 0.6489 GB, free: 8.773 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001973/0.5853, allocations: 71.41 kB / 0.6489 GB, free: 8.703 MB / 442.7 MB Notification: Performance of SimCode: time 3.8e-07/0.5853, allocations: 0 / 0.6489 GB, free: 8.703 MB / 442.7 MB Notification: Performance of Templates: time 0.02504/0.6103, allocations: 19.28 MB / 0.6678 GB, free: 5.59 MB / 458.7 MB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)