Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.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_Discretized_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008004/0.0008004, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.293/1.293, allocations: 223.3 MB / 239 MB, free: 5.547 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.0009768/0.0009769, allocations: 180.6 kB / 290.3 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4943/0.4943, allocations: 91.91 MB / 433.3 MB, free: 10.39 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003342/0.0003343, allocations: 8 kB / 0.5042 GB, free: 7.664 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2931/0.2934, allocations: 72.46 MB / 0.5749 GB, free: 36.47 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.004713/0.2982, allocations: 6.213 MB / 0.581 GB, free: 32.49 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003257/0.3015, allocations: 1.978 MB / 0.5829 GB, free: 31.08 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009612/0.3025, allocations: 14.09 kB / 0.5829 GB, free: 31.08 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000857/0.3033, allocations: 173.4 kB / 0.5831 GB, free: 31 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002091/0.3055, allocations: 0.6552 MB / 0.5837 GB, free: 30.58 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001104/0.3066, allocations: 0.5478 MB / 0.5843 GB, free: 30.31 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00135/0.3079, allocations: 1.433 MB / 0.5857 GB, free: 29.59 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004349/0.3084, allocations: 282.3 kB / 0.586 GB, free: 29.48 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006714/0.309, allocations: 0.5598 MB / 0.5865 GB, free: 29.24 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005935/0.3097, allocations: 0.732 MB / 0.5872 GB, free: 28.93 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001161/0.3098, allocations: 63.69 kB / 0.5873 GB, free: 28.93 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003658/0.3101, allocations: 182.8 kB / 0.5874 GB, free: 28.89 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001781/0.3103, allocations: 257.5 kB / 0.5877 GB, free: 28.75 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001721/0.3105, allocations: 235.4 kB / 0.5879 GB, free: 28.59 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007901/0.3113, allocations: 1.247 MB / 0.5891 GB, free: 28.22 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3113, allocations: 0.625 kB / 0.5891 GB, free: 28.22 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3113, allocations: 0.5312 kB / 0.5891 GB, free: 28.22 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.3113, allocations: 0 / 0.5891 GB, free: 28.22 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: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.007008/0.3184, allocations: 2.529 MB / 0.5916 GB, free: 27.09 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.3184, allocations: 12.62 kB / 0.5916 GB, free: 27.08 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004674/0.3231, allocations: 0.791 MB / 0.5924 GB, free: 26.92 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001271/0.3244, allocations: 0.8554 MB / 0.5932 GB, free: 26.37 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000223/0.3246, allocations: 271.5 kB / 0.5935 GB, free: 26.14 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001531/0.3248, allocations: 88.41 kB / 0.5936 GB, free: 26.11 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002342/0.3271, allocations: 1.459 MB / 0.595 GB, free: 25.53 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.724e-05/0.3271, allocations: 1 kB / 0.595 GB, free: 25.53 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.34e-05/0.3272, allocations: 34.23 kB / 0.595 GB, free: 25.5 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.616e-05/0.3273, allocations: 19.78 kB / 0.595 GB, free: 25.5 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001835/0.3291, allocations: 1.061 MB / 0.5961 GB, free: 25.16 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.005251/0.3344, allocations: 3.798 MB / 0.5998 GB, free: 22.92 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00721/0.3416, allocations: 3.09 MB / 0.6028 GB, free: 21.86 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001442/0.343, allocations: 0.8314 MB / 0.6036 GB, free: 21.54 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001096/0.3432, allocations: 24.44 kB / 0.6036 GB, free: 21.54 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001463/0.3446, allocations: 0.8047 MB / 0.6044 GB, free: 21.23 MB / 430.1 MB Notification: Performance of pre-optimization done (n=115): time 2.796e-06/0.3446, allocations: 0 / 0.6044 GB, free: 21.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=115): time 0.02804/0.3727, allocations: 8.824 MB / 0.613 GB, free: 19.62 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.3728, allocations: 198.9 kB / 0.6132 GB, free: 19.41 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001564/0.3744, allocations: 1.077 MB / 0.6143 GB, free: 18.97 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001611/0.3746, allocations: 51.14 kB / 0.6143 GB, free: 18.92 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002853/0.3749, allocations: 487.5 kB / 0.6148 GB, free: 18.54 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002887/0.3752, allocations: 330.8 kB / 0.6151 GB, free: 18.29 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.569e-05/0.3753, allocations: 35.44 kB / 0.6152 GB, free: 18.26 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.756e-05/0.3754, allocations: 372.5 kB / 0.6155 GB, free: 17.92 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001512/0.3769, allocations: 0.808 MB / 0.6163 GB, free: 17.64 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001642/0.3785, allocations: 1.153 MB / 0.6174 GB, free: 16.96 MB / 430.1 MB Notification: The given system is mixed-determined. [index = 2] Notification: Performance of analyzeInitialSystem (initialization): time 0.01964/0.3982, allocations: 6.057 MB / 0.6233 GB, free: 11.54 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-05/0.3982, allocations: 3.938 kB / 0.6233 GB, free: 11.54 MB / 430.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01192/0.4101, allocations: 5.219 MB / 0.6284 GB, free: 6.289 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.21e-05/0.4102, allocations: 63.41 kB / 0.6285 GB, free: 6.215 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.749e-05/0.4102, allocations: 8 kB / 0.6285 GB, free: 6.207 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004958/0.4152, allocations: 1.844 MB / 0.6303 GB, free: 4.359 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/0.4164, allocations: 319.5 kB / 0.6306 GB, free: 4.047 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01738/0.4337, allocations: 8.831 MB / 0.6392 GB, free: 11.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001764/0.4355, allocations: 230.8 kB / 0.6395 GB, free: 10.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001344/0.4357, allocations: 71.97 kB / 0.6395 GB, free: 10.77 MB / 446.1 MB Warning: Assuming fixed start value for the following 3 variables: 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 Warning: The initial conditions are over specified. The following 4 initial equations are redundant, so they are removed from the initialization sytem: $DER.aVRTypeII.firstOrder2.y = 0.0 $DER.aVRTypeII.derivativeBlock.x = 0.0 aVRTypeII.ExcitationSystem.y = 0.0 aVRTypeII.simpleLagLim.state = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.firstOrder2.y,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.simpleLagLim.state) * Top-level inputs: 0 Notification: Strong component statistics for initialization (185): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 2 * 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 {18 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005956/0.4363, allocations: 338.7 kB / 0.6398 GB, free: 10.43 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001755/0.438, allocations: 0.6844 MB / 0.6405 GB, free: 9.73 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01352/0.4516, allocations: 4.993 MB / 0.6454 GB, free: 4.703 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.649e-05/0.4516, allocations: 15.98 kB / 0.6454 GB, free: 4.688 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/0.4516, allocations: 8 kB / 0.6454 GB, free: 4.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.558e-05/0.4517, allocations: 7.969 kB / 0.6454 GB, free: 4.672 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.0155/0.4672, allocations: 6.552 MB / 0.6518 GB, free: 14.01 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.327e-06/0.4672, allocations: 0 / 0.6518 GB, free: 14.01 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005459/0.4678, allocations: 111.8 kB / 0.6519 GB, free: 13.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005732/0.4735, allocations: 2.008 MB / 0.6539 GB, free: 11.89 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001147/0.4736, allocations: 27.98 kB / 0.6539 GB, free: 11.86 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02094/0.4946, allocations: 12.01 MB / 0.6656 GB, free: 15.44 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4946, allocations: 0 / 0.6656 GB, free: 15.44 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01552/0.5101, allocations: 6.021 MB / 0.6715 GB, free: 9.375 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000481/0.5107, allocations: 239.1 kB / 0.6718 GB, free: 9.121 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000194/0.5109, allocations: 40.06 kB / 0.6718 GB, free: 9.082 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001142/0.512, allocations: 147.9 kB / 0.6719 GB, free: 8.938 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004884/0.5125, allocations: 176.6 kB / 0.6721 GB, free: 8.762 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.67e-05/0.5126, allocations: 35.98 kB / 0.6721 GB, free: 8.727 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001018/0.5136, allocations: 0.7199 MB / 0.6728 GB, free: 8 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.5136, allocations: 0 / 0.6728 GB, free: 8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00156/0.5152, allocations: 487.7 kB / 0.6733 GB, free: 7.523 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(20,23.0%) 12} * Non-linear torn systems: 1 {4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.000261/0.5155, allocations: 147 kB / 0.6734 GB, free: 7.371 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006246/0.5217, allocations: 2.847 MB / 0.6762 GB, free: 4.488 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.022e-06/0.5218, allocations: 0 / 0.6762 GB, free: 4.488 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00385/0.5256, allocations: 1.598 MB / 0.6778 GB, free: 2.867 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001845/0.5275, allocations: 0.5888 MB / 0.6784 GB, free: 2.258 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003993/0.5315, allocations: 2.748 MB / 0.681 GB, free: 15.48 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006023/0.5321, allocations: 1.152 MB / 0.6822 GB, free: 14.29 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000406/0.5325, allocations: 128.9 kB / 0.6823 GB, free: 14.16 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002313/0.5328, allocations: 79.42 kB / 0.6824 GB, free: 14.09 MB / 494.1 MB Notification: Performance of SimCode: time 4.51e-07/0.5328, allocations: 0 / 0.6824 GB, free: 14.09 MB / 494.1 MB Notification: Performance of Templates: time 0.03057/0.5633, allocations: 21.32 MB / 0.7032 GB, free: 8.816 MB / 0.4981 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe 2>&1)