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.001542/0.001542, allocations: 172.9 kB / 16.07 MB, free: 5.73 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.289/1.289, allocations: 222.9 MB / 239.7 MB, free: 10.2 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.0007361/0.0007362, allocations: 96.84 kB / 290.4 MB, free: 11.02 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4286/0.4286, allocations: 78.42 MB / 419.6 MB, free: 9.754 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005164/0.0005165, allocations: 8.219 kB / 499.1 MB, free: 10.67 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2616/0.2622, allocations: 68.75 MB / 0.5545 GB, free: 20.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.004742/0.2669, allocations: 6.501 MB / 0.5609 GB, free: 13.7 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002647/0.2696, allocations: 1.908 MB / 0.5627 GB, free: 11.79 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005115/0.2702, allocations: 12 kB / 0.5627 GB, free: 11.78 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000396/0.2706, allocations: 162.9 kB / 0.5629 GB, free: 11.62 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001355/0.2719, allocations: 0.6709 MB / 0.5635 GB, free: 10.95 MB / 378.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.0009409/0.2729, allocations: 0.5481 MB / 0.5641 GB, free: 10.4 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001027/0.2739, allocations: 1.308 MB / 0.5654 GB, free: 9.086 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002985/0.2742, allocations: 256.6 kB / 0.5656 GB, free: 8.828 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004438/0.2747, allocations: 0.5132 MB / 0.5661 GB, free: 8.312 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004688/0.2752, allocations: 0.692 MB / 0.5668 GB, free: 7.617 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000104/0.2753, allocations: 56 kB / 0.5668 GB, free: 7.562 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003321/0.2756, allocations: 187.8 kB / 0.567 GB, free: 7.379 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001304/0.2758, allocations: 242.7 kB / 0.5672 GB, free: 7.141 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002892/0.2761, allocations: 0.5511 MB / 0.5678 GB, free: 6.586 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006336/0.2767, allocations: 1.085 MB / 0.5688 GB, free: 5.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.466e-06/0.2767, allocations: 4 kB / 0.5688 GB, free: 5.496 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2767, allocations: 0 / 0.5688 GB, free: 5.496 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.2767, allocations: 0 / 0.5688 GB, free: 5.496 MB / 378.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.006563/0.2833, allocations: 2.248 MB / 0.571 GB, free: 3.195 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.104e-05/0.2833, allocations: 11.97 kB / 0.5711 GB, free: 3.184 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004741/0.2881, allocations: 0.7594 MB / 0.5718 GB, free: 2.422 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009738/0.2891, allocations: 0.7968 MB / 0.5726 GB, free: 1.566 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002039/0.2893, allocations: 260.2 kB / 0.5728 GB, free: 1.277 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001263/0.2894, allocations: 72 kB / 0.5729 GB, free: 1.207 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002185/0.2916, allocations: 1.174 MB / 0.574 GB, free: 12 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.2916, allocations: 7.875 kB / 0.574 GB, free: 4 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.853e-05/0.2918, allocations: 32.06 kB / 0.5741 GB, free: 15.97 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.535e-05/0.2918, allocations: 16 kB / 0.5741 GB, free: 15.95 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001832/0.2936, allocations: 0.9498 MB / 0.575 GB, free: 15 MB / 394.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.005561/0.2992, allocations: 3.55 MB / 0.5785 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007178/0.3064, allocations: 2.305 MB / 0.5807 GB, free: 8.867 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001316/0.3077, allocations: 0.6556 MB / 0.5814 GB, free: 8.207 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001054/0.3078, allocations: 20.64 kB / 0.5814 GB, free: 8.188 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.176e-05/0.3079, allocations: 43.22 kB / 0.5814 GB, free: 8.137 MB / 394.7 MB Notification: Performance of pre-optimization done (n=92): time 2.635e-06/0.3079, allocations: 0 / 0.5814 GB, free: 8.137 MB / 394.7 MB Notification: Performance of matching and sorting (n=92): time 0.02641/0.3343, allocations: 6.753 MB / 0.588 GB, free: 1.328 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.373e-05/0.3344, allocations: 97.7 kB / 0.5881 GB, free: 1.215 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001313/0.3357, allocations: 0.9579 MB / 0.5891 GB, free: 244 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001976/0.3359, allocations: 45.7 kB / 0.5891 GB, free: 192 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003291/0.3363, allocations: 468.7 kB / 0.5895 GB, free: 15.72 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002974/0.3366, allocations: 303.7 kB / 0.5898 GB, free: 15.42 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001709/0.3368, allocations: 133.6 kB / 0.59 GB, free: 15.29 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.924e-05/0.3369, allocations: 305.1 kB / 0.5903 GB, free: 14.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001399/0.3383, allocations: 0.6949 MB / 0.5909 GB, free: 14.29 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001526/0.3398, allocations: 0.9185 MB / 0.5918 GB, free: 13.3 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02118/0.361, allocations: 5.059 MB / 0.5968 GB, free: 8.168 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.147e-06/0.361, allocations: 0 / 0.5968 GB, free: 8.168 MB / 410.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01231/0.3734, allocations: 4.148 MB / 0.6008 GB, free: 4.004 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.661e-05/0.3734, allocations: 4 kB / 0.6008 GB, free: 4 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.489e-05/0.3734, allocations: 11.94 kB / 0.6008 GB, free: 3.988 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005002/0.3784, allocations: 1.511 MB / 0.6023 GB, free: 2.473 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001119/0.3796, allocations: 263.6 kB / 0.6026 GB, free: 2.215 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01693/0.3965, allocations: 7.621 MB / 0.61 GB, free: 10.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001455/0.398, allocations: 178.9 kB / 0.6102 GB, free: 10.27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001244/0.3981, allocations: 51.98 kB / 0.6102 GB, free: 10.22 MB / 426.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 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.0005037/0.3987, allocations: 258.6 kB / 0.6105 GB, free: 9.961 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009158/0.3996, allocations: 332.8 kB / 0.6108 GB, free: 9.625 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0112/0.4108, allocations: 3.592 MB / 0.6143 GB, free: 6.012 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.524e-05/0.4108, allocations: 11.94 kB / 0.6143 GB, free: 6 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.148e-05/0.4109, allocations: 8 kB / 0.6143 GB, free: 5.992 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.562e-05/0.4109, allocations: 3.984 kB / 0.6143 GB, free: 5.988 MB / 426.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.01344/0.4243, allocations: 5.126 MB / 0.6193 GB, free: 0.7578 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.221e-06/0.4244, allocations: 0 / 0.6193 GB, free: 0.7578 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005375/0.4249, allocations: 107.9 kB / 0.6194 GB, free: 0.6523 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005209/0.4301, allocations: 1.582 MB / 0.621 GB, free: 15.06 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.215e-05/0.4302, allocations: 23.94 kB / 0.621 GB, free: 15.04 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01735/0.4476, allocations: 9.905 MB / 0.6307 GB, free: 4.797 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4476, allocations: 0 / 0.6307 GB, free: 4.797 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01397/0.4616, allocations: 4.609 MB / 0.6352 GB, free: 164 kB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003542/0.462, allocations: 215.4 kB / 0.6354 GB, free: 15.93 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000167/0.4622, allocations: 20 kB / 0.6354 GB, free: 15.91 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009575/0.4631, allocations: 83.91 kB / 0.6355 GB, free: 15.83 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000486/0.4636, allocations: 168.7 kB / 0.6356 GB, free: 15.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.129e-05/0.4637, allocations: 27.94 kB / 0.6357 GB, free: 15.64 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0007753/0.4645, allocations: 0.6473 MB / 0.6363 GB, free: 14.98 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4645, allocations: 0 / 0.6363 GB, free: 14.98 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00118/0.4657, allocations: 435.6 kB / 0.6367 GB, free: 14.55 MB / 458.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 (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.0002351/0.4659, allocations: 135.1 kB / 0.6368 GB, free: 14.41 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005622/0.4715, allocations: 2.289 MB / 0.6391 GB, free: 12.1 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.4716, allocations: 4.062 kB / 0.6391 GB, free: 12.1 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003792/0.4754, allocations: 1.33 MB / 0.6404 GB, free: 10.75 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001414/0.4768, allocations: 346.9 kB / 0.6407 GB, free: 10.4 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003878/0.4807, allocations: 2.469 MB / 0.6431 GB, free: 7.906 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000631/0.4814, allocations: 1.081 MB / 0.6442 GB, free: 6.797 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002984/0.4817, allocations: 79.42 kB / 0.6443 GB, free: 6.719 MB / 458.7 MB Notification: Performance of SimCode: time 3.91e-07/0.4817, allocations: 0 / 0.6443 GB, free: 6.719 MB / 458.7 MB Notification: Performance of Templates: time 0.02651/0.5082, allocations: 21.2 MB / 0.665 GB, free: 1.469 MB / 474.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)