Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_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_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.001121, allocations: 99.55 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.225/1.225, allocations: 223.2 MB / 238.9 MB, free: 5.441 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.001074/0.001074, allocations: 185.1 kB / 290.2 MB, free: 2.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4206/0.4206, allocations: 78.52 MB / 419.8 MB, free: 4.328 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003407/0.0003408, allocations: 12 kB / 499.6 MB, free: 6.367 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1084, allocations: 69.38 MB / 0.5557 GB, free: 0.9453 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.1912/0.2996, allocations: 5.727 MB / 0.5613 GB, free: 37.15 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003354/0.303, allocations: 1.938 MB / 0.5632 GB, free: 36.89 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009006/0.3039, allocations: 12.31 kB / 0.5632 GB, free: 36.89 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008043/0.3048, allocations: 176.8 kB / 0.5633 GB, free: 36.82 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002195/0.307, allocations: 0.7071 MB / 0.564 GB, free: 36.74 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.001136/0.3081, allocations: 0.5218 MB / 0.5645 GB, free: 36.72 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001871/0.31, allocations: 0.9933 MB / 0.5655 GB, free: 36.67 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005026/0.3105, allocations: 261.1 kB / 0.5658 GB, free: 36.63 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008983/0.3114, allocations: 0.561 MB / 0.5663 GB, free: 36.52 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009926/0.3124, allocations: 0.7135 MB / 0.567 GB, free: 36.37 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001844/0.3126, allocations: 60.41 kB / 0.5671 GB, free: 36.37 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004519/0.3131, allocations: 168.8 kB / 0.5672 GB, free: 36.36 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002085/0.3133, allocations: 250.1 kB / 0.5675 GB, free: 36.29 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002217/0.3135, allocations: 228.5 kB / 0.5677 GB, free: 36.21 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008789/0.3144, allocations: 1.193 MB / 0.5689 GB, free: 36.03 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.3144, allocations: 0 / 0.5689 GB, free: 36.03 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3145, allocations: 0.625 kB / 0.5689 GB, free: 36.03 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.475e-05/0.3145, allocations: 0 / 0.5689 GB, free: 36.03 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: 190 * Number of variables: 190 Notification: Performance of Generate backend data structure: time 0.007377/0.3219, allocations: 2.505 MB / 0.5713 GB, free: 35.09 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.308e-05/0.3219, allocations: 11.88 kB / 0.5713 GB, free: 35.09 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004723/0.3266, allocations: 0.7845 MB / 0.5721 GB, free: 35 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001275/0.3279, allocations: 0.8441 MB / 0.5729 GB, free: 34.63 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002135/0.3281, allocations: 266 kB / 0.5732 GB, free: 34.43 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000152/0.3283, allocations: 87.17 kB / 0.5732 GB, free: 34.43 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001886/0.3302, allocations: 1.139 MB / 0.5743 GB, free: 34.14 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.3302, allocations: 0 / 0.5743 GB, free: 34.14 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.843e-05/0.3303, allocations: 32.84 kB / 0.5744 GB, free: 34.11 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.238e-05/0.3303, allocations: 17.34 kB / 0.5744 GB, free: 34.11 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001812/0.3322, allocations: 1.05 MB / 0.5754 GB, free: 33.77 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.005545/0.3377, allocations: 4.105 MB / 0.5794 GB, free: 31.31 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007122/0.3449, allocations: 2.907 MB / 0.5823 GB, free: 30.43 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001124/0.345, allocations: 28.33 kB / 0.5823 GB, free: 30.42 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001462/0.3465, allocations: 0.8703 MB / 0.5831 GB, free: 30.09 MB / 430.1 MB Notification: Performance of pre-optimization done (n=96): time 2.765e-06/0.3465, allocations: 0 / 0.5831 GB, free: 30.09 MB / 430.1 MB Notification: Performance of matching and sorting (n=96): time 0.02887/0.3754, allocations: 8.637 MB / 0.5916 GB, free: 28.53 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.213e-05/0.3754, allocations: 115.2 kB / 0.5917 GB, free: 28.41 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001616/0.3771, allocations: 1.069 MB / 0.5927 GB, free: 27.96 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001892/0.3773, allocations: 49.83 kB / 0.5928 GB, free: 27.91 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002945/0.3776, allocations: 494.2 kB / 0.5933 GB, free: 27.53 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003103/0.3779, allocations: 353.2 kB / 0.5936 GB, free: 27.25 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.407e-05/0.378, allocations: 30.34 kB / 0.5936 GB, free: 27.23 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.166e-05/0.3781, allocations: 362 kB / 0.594 GB, free: 26.9 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001569/0.3797, allocations: 0.8214 MB / 0.5948 GB, free: 26.61 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001674/0.3813, allocations: 0.9893 MB / 0.5957 GB, free: 26.17 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001801/0.3832, allocations: 0.956 MB / 0.5967 GB, free: 25.71 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.227e-05/0.3832, allocations: 0 / 0.5967 GB, free: 25.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01442/0.3976, allocations: 5.157 MB / 0.6017 GB, free: 24.46 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.222e-05/0.3977, allocations: 65.45 kB / 0.6018 GB, free: 24.39 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.435e-05/0.3977, allocations: 7.188 kB / 0.6018 GB, free: 24.39 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006552/0.4043, allocations: 1.902 MB / 0.6036 GB, free: 24.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001485/0.4058, allocations: 296.6 kB / 0.6039 GB, free: 24.05 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02051/0.4263, allocations: 9.457 MB / 0.6131 GB, free: 18.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001862/0.4282, allocations: 240.8 kB / 0.6134 GB, free: 18.64 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/0.4284, allocations: 56.84 kB / 0.6134 GB, free: 18.59 MB / 430.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 aVRTypeII.firstOrder2.y:VARIABLE(flow=false start = aVRTypeII.firstOrder2.y_start fixed = true ) "Connector of Real output signal" 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 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (164): * Single equations (assignments): 161 * 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 {19 14} Notification: Performance of prepare postOptimizeDAE: time 0.0004988/0.4289, allocations: 298.1 kB / 0.6137 GB, free: 18.29 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001788/0.4291, allocations: 128.1 kB / 0.6138 GB, free: 18.16 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01217/0.4412, allocations: 4.713 MB / 0.6184 GB, free: 13.42 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/0.4413, allocations: 12 kB / 0.6185 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.4413, allocations: 8 kB / 0.6185 GB, free: 13.4 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.883e-05/0.4413, allocations: 3.984 kB / 0.6185 GB, free: 13.39 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.01361/0.4549, allocations: 6.34 MB / 0.6247 GB, free: 6.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.284e-06/0.455, allocations: 0 / 0.6247 GB, free: 6.93 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005352/0.4555, allocations: 108.8 kB / 0.6248 GB, free: 6.824 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005267/0.4608, allocations: 1.89 MB / 0.6266 GB, free: 4.93 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001263/0.4609, allocations: 20 kB / 0.6266 GB, free: 4.91 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01944/0.4804, allocations: 10.09 MB / 0.6365 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.4804, allocations: 0 / 0.6365 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01554/0.496, allocations: 5.654 MB / 0.642 GB, free: 4.852 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004759/0.4965, allocations: 233.8 kB / 0.6422 GB, free: 4.605 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002503/0.4967, allocations: 23.98 kB / 0.6422 GB, free: 4.582 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001236/0.498, allocations: 143.9 kB / 0.6424 GB, free: 4.441 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005616/0.4986, allocations: 192.7 kB / 0.6426 GB, free: 4.254 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.444e-05/0.4987, allocations: 27.98 kB / 0.6426 GB, free: 4.227 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001158/0.4998, allocations: 0.7157 MB / 0.6433 GB, free: 3.504 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.4998, allocations: 0 / 0.6433 GB, free: 3.504 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001622/0.5015, allocations: 483.4 kB / 0.6438 GB, free: 3.031 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d,aVRTypeII.ExcitationSystem.x_scaled[1],aVRTypeII.derivativeBlock.x,aVRTypeII.firstOrder2.y,aVRTypeII.simpleLagLim.state) * Number of discrete variables: 2 ($whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(21,21.8%) 11} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003004/0.5018, allocations: 131.9 kB / 0.6439 GB, free: 2.891 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006669/0.5085, allocations: 2.778 MB / 0.6466 GB, free: 88 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.5085, allocations: 4.062 kB / 0.6466 GB, free: 84 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004705/0.5132, allocations: 1.826 MB / 0.6484 GB, free: 14.21 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008181/0.5141, allocations: 94.91 kB / 0.6485 GB, free: 14.12 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004096/0.5182, allocations: 2.678 MB / 0.6511 GB, free: 11.46 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006344/0.5188, allocations: 1.143 MB / 0.6522 GB, free: 10.28 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004664/0.5193, allocations: 115.8 kB / 0.6523 GB, free: 10.17 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002625/0.5196, allocations: 79.42 kB / 0.6524 GB, free: 10.09 MB / 462.1 MB Notification: Performance of SimCode: time 7.81e-07/0.5196, allocations: 1.219 kB / 0.6524 GB, free: 10.09 MB / 462.1 MB Notification: Performance of Templates: time 0.03197/0.5516, allocations: 21.28 MB / 0.6732 GB, free: 5.023 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile Environment - environmentSimulation: (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1) Environment - environmentSimulation: