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.006017/0.006017, allocations: 101.5 kB / 15.73 MB, free: 6.047 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.427/1.427, allocations: 222.9 MB / 239.4 MB, free: 4.555 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.001547/0.001547, allocations: 184.5 kB / 289.7 MB, free: 2.273 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4895/0.4895, allocations: 78.53 MB / 418.4 MB, free: 3.215 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001837, allocations: 80.09 kB / 0.5536 GB, free: 0.9922 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3885/0.3904, allocations: 68.17 MB / 0.6202 GB, free: 9.758 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.006382/0.3968, allocations: 6.563 MB / 0.6266 GB, free: 3.672 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.004135/0.401, allocations: 1.958 MB / 0.6285 GB, free: 1.707 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00133/0.4024, allocations: 8 kB / 0.6285 GB, free: 1.699 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001092/0.4035, allocations: 250 kB / 0.6288 GB, free: 1.453 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002922/0.4065, allocations: 0.8522 MB / 0.6296 GB, free: 0.6016 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.001493/0.408, allocations: 0.6216 MB / 0.6302 GB, free: 15.98 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002511/0.4105, allocations: 1.588 MB / 0.6318 GB, free: 14.39 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007016/0.4112, allocations: 326.4 kB / 0.6321 GB, free: 14.06 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001296/0.4125, allocations: 0.6535 MB / 0.6327 GB, free: 13.4 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001459/0.414, allocations: 0.8245 MB / 0.6335 GB, free: 12.57 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005437/0.4145, allocations: 120 kB / 0.6336 GB, free: 12.46 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009817/0.4155, allocations: 263.8 kB / 0.6339 GB, free: 12.2 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000609/0.4162, allocations: 326.6 kB / 0.6342 GB, free: 11.88 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001216/0.4174, allocations: 0.6758 MB / 0.6349 GB, free: 11.2 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002594/0.42, allocations: 1.664 MB / 0.6365 GB, free: 9.535 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.42, allocations: 0 / 0.6365 GB, free: 9.535 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.42, allocations: 0 / 0.6365 GB, free: 9.535 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.86e-05/0.4201, allocations: 0 / 0.6365 GB, free: 9.535 MB / 446.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.01069/0.4308, allocations: 2.688 MB / 0.6391 GB, free: 6.781 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.745e-05/0.4309, allocations: 8.031 kB / 0.6391 GB, free: 6.773 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005511/0.4364, allocations: 0.7748 MB / 0.6399 GB, free: 5.996 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002164/0.4386, allocations: 0.8786 MB / 0.6407 GB, free: 5.062 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003621/0.439, allocations: 268.1 kB / 0.641 GB, free: 4.762 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003386/0.4393, allocations: 91.84 kB / 0.6411 GB, free: 4.672 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002726/0.4421, allocations: 1.086 MB / 0.6421 GB, free: 3.574 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.251e-05/0.4421, allocations: 4 kB / 0.6421 GB, free: 3.57 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001257/0.4422, allocations: 24 kB / 0.6422 GB, free: 3.547 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.444e-05/0.4423, allocations: 23.98 kB / 0.6422 GB, free: 3.523 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002332/0.4446, allocations: 0.9916 MB / 0.6432 GB, free: 2.531 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 preOpt removeSimpleEquations (simulation): time 0.007972/0.4526, allocations: 3.796 MB / 0.6469 GB, free: 14.56 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00795/0.4606, allocations: 2.373 MB / 0.6492 GB, free: 12.09 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001713/0.4623, allocations: 0.6839 MB / 0.6498 GB, free: 11.41 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001603/0.4625, allocations: 16.98 kB / 0.6499 GB, free: 11.39 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002028/0.4646, allocations: 0.8215 MB / 0.6507 GB, free: 10.55 MB / 462.1 MB Notification: Performance of pre-optimization done (n=96): time 3.837e-06/0.4646, allocations: 0 / 0.6507 GB, free: 10.55 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.03067/0.4953, allocations: 7.077 MB / 0.6576 GB, free: 3.406 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.587e-05/0.4954, allocations: 119.8 kB / 0.6577 GB, free: 3.266 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002144/0.4976, allocations: 1.083 MB / 0.6587 GB, free: 2.168 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000301/0.4979, allocations: 45.7 kB / 0.6588 GB, free: 2.117 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005118/0.4984, allocations: 496.8 kB / 0.6593 GB, free: 1.625 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006282/0.499, allocations: 358.9 kB / 0.6596 GB, free: 1.27 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008548/0.4999, allocations: 287.5 kB / 0.6599 GB, free: 0.9844 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.5, allocations: 301.1 kB / 0.6602 GB, free: 0.6875 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001881/0.5019, allocations: 0.7614 MB / 0.6609 GB, free: 15.92 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002016/0.5039, allocations: 0.9459 MB / 0.6618 GB, free: 14.93 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02489/0.5289, allocations: 5.575 MB / 0.6673 GB, free: 9.277 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.486e-05/0.5289, allocations: 4 kB / 0.6673 GB, free: 9.273 MB / 478.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01516/0.5441, allocations: 4.332 MB / 0.6715 GB, free: 4.914 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.394e-05/0.5442, allocations: 59.41 kB / 0.6716 GB, free: 4.844 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.963e-05/0.5443, allocations: 4 kB / 0.6716 GB, free: 4.84 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005948/0.5502, allocations: 1.516 MB / 0.6731 GB, free: 3.32 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001679/0.5519, allocations: 291.6 kB / 0.6733 GB, free: 3.035 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02139/0.5734, allocations: 8.268 MB / 0.6814 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002314/0.5757, allocations: 198.8 kB / 0.6816 GB, free: 10.41 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003915/0.5761, allocations: 59.97 kB / 0.6817 GB, free: 10.36 MB / 494.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 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: 13 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 2 * 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.001102/0.5773, allocations: 307 kB / 0.6819 GB, free: 10.04 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004188/0.5777, allocations: 130.3 kB / 0.6821 GB, free: 9.914 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01377/0.5915, allocations: 3.873 MB / 0.6859 GB, free: 6.004 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.05e-05/0.5916, allocations: 8 kB / 0.6859 GB, free: 5.996 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.839e-05/0.5916, allocations: 15.94 kB / 0.6859 GB, free: 5.98 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.267e-05/0.5916, allocations: 7.922 kB / 0.6859 GB, free: 5.973 MB / 494.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.01659/0.6082, allocations: 5.456 MB / 0.6912 GB, free: 420 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-05/0.6083, allocations: 0 / 0.6912 GB, free: 420 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007238/0.609, allocations: 95.91 kB / 0.6913 GB, free: 324 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006087/0.6151, allocations: 1.614 MB / 0.6929 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000251/0.6154, allocations: 20 kB / 0.6929 GB, free: 14.68 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02272/0.6381, allocations: 9.599 MB / 0.7023 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.6382, allocations: 0 / 0.7023 GB, free: 4.789 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01603/0.6542, allocations: 4.731 MB / 0.7069 GB, free: 24 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005612/0.6548, allocations: 227.2 kB / 0.7071 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004561/0.6553, allocations: 24.08 kB / 0.7071 GB, free: 15.76 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00147/0.6568, allocations: 111.8 kB / 0.7072 GB, free: 15.65 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007487/0.6576, allocations: 192.8 kB / 0.7074 GB, free: 15.46 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001461/0.6577, allocations: 32 kB / 0.7075 GB, free: 15.43 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001428/0.6592, allocations: 0.7274 MB / 0.7082 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.11e-07/0.6592, allocations: 0 / 0.7082 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001973/0.6612, allocations: 475.5 kB / 0.7086 GB, free: 14.23 MB / 0.5137 GB 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 (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 {(21,11,21.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003928/0.6616, allocations: 140.6 kB / 0.7088 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007128/0.6687, allocations: 2.501 MB / 0.7112 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 9.277e-06/0.6687, allocations: 4 kB / 0.7112 GB, free: 11.54 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004918/0.6737, allocations: 1.619 MB / 0.7128 GB, free: 9.883 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001406/0.6751, allocations: 115.8 kB / 0.7129 GB, free: 9.773 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004921/0.68, allocations: 2.244 MB / 0.7151 GB, free: 7.504 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008797/0.681, allocations: 1.12 MB / 0.7162 GB, free: 6.352 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0005541/0.6815, allocations: 120.1 kB / 0.7163 GB, free: 6.23 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003796/0.6819, allocations: 83.41 kB / 0.7164 GB, free: 6.148 MB / 0.5137 GB Notification: Performance of SimCode: time 8.22e-07/0.6819, allocations: 0 / 0.7164 GB, free: 6.148 MB / 0.5137 GB Notification: Performance of Templates: time 0.04223/0.7242, allocations: 23.68 MB / 0.7395 GB, free: 14.46 MB / 0.545 GB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile (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)