Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_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.0.1/package.mo", uses=false) Using package OpenIPSL with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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_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_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.001178/0.001178, allocations: 99 kB / 15.05 MB, free: 1.105 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.232/1.232, allocations: 223.2 MB / 238.9 MB, free: 5.473 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.001164/0.001164, allocations: 177 kB / 290.2 MB, free: 2.172 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4013/0.4013, allocations: 78.53 MB / 419.8 MB, free: 4.328 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003267/0.0003268, allocations: 12 kB / 499.7 MB, free: 6.387 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.111, allocations: 69.36 MB / 0.5557 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous): time 0.1826/0.2937, allocations: 5.909 MB / 0.5615 GB, free: 37.45 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002654/0.2964, allocations: 1.997 MB / 0.5634 GB, free: 37.17 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003974/0.2968, allocations: 11.66 kB / 0.5634 GB, free: 37.17 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004832/0.2973, allocations: 172.9 kB / 0.5636 GB, free: 37.11 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001351/0.2986, allocations: 0.7248 MB / 0.5643 GB, free: 37.02 MB / 430.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/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.0009478/0.2996, allocations: 0.5417 MB / 0.5648 GB, free: 36.99 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009394/0.3005, allocations: 1.011 MB / 0.5658 GB, free: 36.94 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003164/0.3009, allocations: 271.2 kB / 0.5661 GB, free: 36.9 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00054/0.3014, allocations: 0.5639 MB / 0.5666 GB, free: 36.79 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006414/0.3021, allocations: 0.7261 MB / 0.5673 GB, free: 36.6 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001135/0.3022, allocations: 60.47 kB / 0.5674 GB, free: 36.6 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003243/0.3025, allocations: 173.2 kB / 0.5675 GB, free: 36.59 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001739/0.3027, allocations: 251.1 kB / 0.5678 GB, free: 36.52 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001477/0.3029, allocations: 234.6 kB / 0.568 GB, free: 36.45 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007641/0.3036, allocations: 1.206 MB / 0.5692 GB, free: 36.26 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.803e-06/0.3036, allocations: 0 / 0.5692 GB, free: 36.26 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3036, allocations: 2.656 kB / 0.5692 GB, free: 36.26 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.283e-05/0.3037, allocations: 0 / 0.5692 GB, free: 36.26 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.007074/0.3107, allocations: 2.53 MB / 0.5717 GB, free: 35.31 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.748e-05/0.3108, allocations: 8.844 kB / 0.5717 GB, free: 35.31 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004605/0.3154, allocations: 0.7871 MB / 0.5724 GB, free: 35.21 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001269/0.3167, allocations: 0.8625 MB / 0.5733 GB, free: 34.84 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000224/0.3169, allocations: 273.8 kB / 0.5735 GB, free: 34.64 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000151/0.3171, allocations: 88.88 kB / 0.5736 GB, free: 34.64 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002271/0.3193, allocations: 1.451 MB / 0.575 GB, free: 34.12 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/0.3194, allocations: 0 / 0.575 GB, free: 34.12 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.643e-05/0.3195, allocations: 32.66 kB / 0.5751 GB, free: 34.1 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.419e-05/0.3195, allocations: 24.77 kB / 0.5751 GB, free: 34.09 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001732/0.3212, allocations: 1.056 MB / 0.5761 GB, free: 33.75 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.004677/0.3259, allocations: 3.966 MB / 0.58 GB, free: 31.28 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007118/0.333, allocations: 3.102 MB / 0.583 GB, free: 30.22 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.962e-05/0.3331, allocations: 21.45 kB / 0.583 GB, free: 30.22 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001345/0.3345, allocations: 0.8099 MB / 0.5838 GB, free: 29.91 MB / 430.1 MB Notification: Performance of pre-optimization done (n=115): time 3.016e-06/0.3345, allocations: 2.344 kB / 0.5838 GB, free: 29.91 MB / 430.1 MB Notification: Performance of matching and sorting (n=115): time 0.02922/0.3637, allocations: 8.631 MB / 0.5923 GB, free: 28.3 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.3639, allocations: 199.5 kB / 0.5925 GB, free: 28.1 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001532/0.3654, allocations: 1.081 MB / 0.5935 GB, free: 27.65 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001854/0.3656, allocations: 46.77 kB / 0.5936 GB, free: 27.6 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003017/0.3659, allocations: 486.9 kB / 0.594 GB, free: 27.22 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002975/0.3662, allocations: 330.9 kB / 0.5943 GB, free: 26.97 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.34e-05/0.3663, allocations: 35.06 kB / 0.5944 GB, free: 26.94 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.156e-05/0.3664, allocations: 374 kB / 0.5947 GB, free: 26.61 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001544/0.368, allocations: 0.8075 MB / 0.5955 GB, free: 26.32 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001655/0.3696, allocations: 1.143 MB / 0.5966 GB, free: 25.65 MB / 430.1 MB Notification: The given system is mixed-determined. [index = 2] Notification: Performance of analyzeInitialSystem (initialization): time 0.02211/0.3918, allocations: 6.056 MB / 0.6025 GB, free: 23.73 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.886e-05/0.3918, allocations: 2.094 kB / 0.6025 GB, free: 23.73 MB / 430.1 MB Notification: Performance of matching and sorting (n=216) (initialization): time 0.01478/0.4066, allocations: 5.225 MB / 0.6077 GB, free: 22.43 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.785e-05/0.4067, allocations: 63.52 kB / 0.6077 GB, free: 22.37 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.476e-05/0.4067, allocations: 13.08 kB / 0.6077 GB, free: 22.37 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006053/0.4128, allocations: 1.852 MB / 0.6095 GB, free: 22.06 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001458/0.4143, allocations: 308 kB / 0.6098 GB, free: 22.03 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01806/0.4323, allocations: 9.243 MB / 0.6189 GB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00182/0.4342, allocations: 242.6 kB / 0.6191 GB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001256/0.4343, allocations: 75.97 kB / 0.6192 GB, free: 12.53 MB / 430.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.0005474/0.4349, allocations: 336.2 kB / 0.6195 GB, free: 12.19 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001625/0.4365, allocations: 0.6885 MB / 0.6202 GB, free: 11.49 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01305/0.4496, allocations: 4.999 MB / 0.625 GB, free: 6.465 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.507e-05/0.4496, allocations: 12 kB / 0.625 GB, free: 6.453 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.436e-05/0.4496, allocations: 11.98 kB / 0.6251 GB, free: 6.441 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.19e-05/0.4497, allocations: 10 kB / 0.6251 GB, free: 6.434 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 postOpt removeSimpleEquations (simulation): time 0.0145/0.4642, allocations: 6.597 MB / 0.6315 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.236e-05/0.4642, allocations: 0 / 0.6315 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005629/0.4648, allocations: 108.8 kB / 0.6316 GB, free: 15.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006092/0.4709, allocations: 2.006 MB / 0.6336 GB, free: 13.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001555/0.4711, allocations: 23.98 kB / 0.6336 GB, free: 13.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02245/0.4935, allocations: 12.5 MB / 0.6458 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.4936, allocations: 4 kB / 0.6458 GB, free: 0.6719 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0157/0.5093, allocations: 6.066 MB / 0.6517 GB, free: 10.54 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003985/0.5097, allocations: 235.2 kB / 0.6519 GB, free: 10.29 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001893/0.5099, allocations: 24 kB / 0.652 GB, free: 10.27 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/0.511, allocations: 151.9 kB / 0.6521 GB, free: 10.12 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004509/0.5115, allocations: 177.3 kB / 0.6523 GB, free: 9.945 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.046e-05/0.5116, allocations: 35.98 kB / 0.6523 GB, free: 9.91 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0009663/0.5126, allocations: 0.7199 MB / 0.653 GB, free: 9.184 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5126, allocations: 4 kB / 0.653 GB, free: 9.18 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001416/0.514, allocations: 491.6 kB / 0.6535 GB, free: 8.699 MB / 462.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.0002377/0.5142, allocations: 142.2 kB / 0.6536 GB, free: 8.555 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006133/0.5204, allocations: 2.856 MB / 0.6564 GB, free: 5.664 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.5204, allocations: 0 / 0.6564 GB, free: 5.664 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004/0.5244, allocations: 1.592 MB / 0.658 GB, free: 4.055 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001421/0.5259, allocations: 0.5718 MB / 0.6585 GB, free: 3.457 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003818/0.5297, allocations: 2.765 MB / 0.6612 GB, free: 0.6992 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006217/0.5303, allocations: 1.181 MB / 0.6624 GB, free: 15.49 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0003822/0.5307, allocations: 120.3 kB / 0.6625 GB, free: 15.37 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002196/0.5309, allocations: 83.41 kB / 0.6626 GB, free: 15.29 MB / 478.1 MB Notification: Performance of SimCode: time 4.41e-07/0.5309, allocations: 0 / 0.6626 GB, free: 15.29 MB / 478.1 MB Notification: Performance of Templates: time 0.02997/0.5609, allocations: 21.28 MB / 0.6834 GB, free: 10.21 MB / 494.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.makefile Environment - environmentSimulation: (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discretized_Continuous.pipe 2>&1) Environment - environmentSimulation: