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.006412/0.006411, allocations: 94.7 kB / 15.73 MB, free: 6.039 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.365/1.365, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001384/0.001385, allocations: 192.4 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.47/0.47, allocations: 78.52 MB / 418.4 MB, free: 3.117 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 76.11 kB / 0.5536 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3022/0.3037, allocations: 68.17 MB / 0.6202 GB, free: 9.66 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.005429/0.3092, allocations: 6.57 MB / 0.6266 GB, free: 3.625 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003547/0.3128, allocations: 1.962 MB / 0.6285 GB, free: 1.656 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000691/0.3135, allocations: 8 kB / 0.6285 GB, free: 1.648 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006261/0.3142, allocations: 237.9 kB / 0.6288 GB, free: 1.414 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001626/0.3158, allocations: 0.8127 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.001031/0.3168, allocations: 0.6211 MB / 0.6302 GB, free: 15.98 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001629/0.3185, allocations: 1.585 MB / 0.6317 GB, free: 14.39 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000487/0.319, allocations: 326.4 kB / 0.632 GB, free: 14.06 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008056/0.3198, allocations: 0.6613 MB / 0.6327 GB, free: 13.4 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009018/0.3207, allocations: 0.8128 MB / 0.6335 GB, free: 12.58 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001975/0.3209, allocations: 124 kB / 0.6336 GB, free: 12.46 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004928/0.3214, allocations: 251.9 kB / 0.6338 GB, free: 12.21 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002848/0.3217, allocations: 338.6 kB / 0.6342 GB, free: 11.88 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000544/0.3223, allocations: 0.6641 MB / 0.6348 GB, free: 11.21 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00173/0.324, allocations: 1.682 MB / 0.6364 GB, free: 9.531 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.324, allocations: 0 / 0.6364 GB, free: 9.531 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.324, allocations: 8 kB / 0.6365 GB, free: 9.523 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.789e-05/0.324, allocations: 0 / 0.6365 GB, free: 9.523 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.008383/0.3324, allocations: 2.722 MB / 0.6391 GB, free: 6.73 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.3325, allocations: 8.031 kB / 0.6391 GB, free: 6.723 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005026/0.3375, allocations: 0.7874 MB / 0.6399 GB, free: 5.934 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001592/0.3391, allocations: 0.8834 MB / 0.6407 GB, free: 4.996 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002804/0.3394, allocations: 260.2 kB / 0.641 GB, free: 4.703 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001521/0.3396, allocations: 95.89 kB / 0.6411 GB, free: 4.609 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002105/0.3417, allocations: 1.086 MB / 0.6421 GB, free: 3.512 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.866e-05/0.3417, allocations: 3.938 kB / 0.6422 GB, free: 3.508 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.996e-05/0.3418, allocations: 32 kB / 0.6422 GB, free: 3.477 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.696e-05/0.3419, allocations: 16 kB / 0.6422 GB, free: 3.461 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002003/0.3439, allocations: 0.9877 MB / 0.6432 GB, free: 2.473 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.006276/0.3501, allocations: 3.809 MB / 0.6469 GB, free: 14.49 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007478/0.3576, allocations: 2.371 MB / 0.6492 GB, free: 12.02 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001481/0.3592, allocations: 0.6762 MB / 0.6499 GB, free: 11.34 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001124/0.3593, allocations: 20.97 kB / 0.6499 GB, free: 11.32 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001622/0.3609, allocations: 0.8255 MB / 0.6507 GB, free: 10.48 MB / 462.1 MB Notification: Performance of pre-optimization done (n=96): time 2.685e-06/0.3609, allocations: 0 / 0.6507 GB, free: 10.48 MB / 462.1 MB Notification: Performance of matching and sorting (n=96): time 0.02793/0.3889, allocations: 7.082 MB / 0.6576 GB, free: 3.332 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.313e-05/0.389, allocations: 119.7 kB / 0.6577 GB, free: 3.191 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001835/0.3908, allocations: 1.087 MB / 0.6588 GB, free: 2.09 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002432/0.3911, allocations: 45.7 kB / 0.6588 GB, free: 2.039 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003829/0.3915, allocations: 0.4937 MB / 0.6593 GB, free: 1.539 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004044/0.3919, allocations: 368.9 kB / 0.6597 GB, free: 1.176 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005594/0.3925, allocations: 291.5 kB / 0.6599 GB, free: 0.8867 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.3926, allocations: 301.1 kB / 0.6602 GB, free: 0.5898 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001589/0.3942, allocations: 0.7652 MB / 0.661 GB, free: 15.82 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001824/0.396, allocations: 0.9381 MB / 0.6619 GB, free: 14.84 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02316/0.4192, allocations: 5.575 MB / 0.6673 GB, free: 9.184 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-05/0.4192, allocations: 0 / 0.6673 GB, free: 9.184 MB / 478.1 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01441/0.4336, allocations: 4.344 MB / 0.6716 GB, free: 4.812 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.208e-05/0.4338, allocations: 59.34 kB / 0.6716 GB, free: 4.742 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.745e-05/0.4338, allocations: 4 kB / 0.6716 GB, free: 4.738 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005583/0.4394, allocations: 1.516 MB / 0.6731 GB, free: 3.219 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001479/0.4409, allocations: 295.6 kB / 0.6734 GB, free: 2.93 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01971/0.4606, allocations: 8.278 MB / 0.6815 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001965/0.4626, allocations: 203 kB / 0.6817 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003051/0.4629, allocations: 51.98 kB / 0.6817 GB, free: 10.25 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.0007894/0.4637, allocations: 311.3 kB / 0.682 GB, free: 9.93 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004072/0.4642, allocations: 135.1 kB / 0.6821 GB, free: 9.797 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01301/0.4772, allocations: 3.873 MB / 0.6859 GB, free: 5.887 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.972e-05/0.4772, allocations: 12 kB / 0.6859 GB, free: 5.875 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.947e-05/0.4772, allocations: 4 kB / 0.6859 GB, free: 5.871 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.193e-05/0.4773, allocations: 15.92 kB / 0.686 GB, free: 5.855 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.01499/0.4923, allocations: 5.46 MB / 0.6913 GB, free: 296 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.199e-05/0.4923, allocations: 4 kB / 0.6913 GB, free: 292 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006277/0.493, allocations: 103.8 kB / 0.6914 GB, free: 188 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005595/0.4986, allocations: 1.602 MB / 0.693 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001845/0.4988, allocations: 19.98 kB / 0.693 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02064/0.5194, allocations: 9.615 MB / 0.7024 GB, free: 4.656 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.5195, allocations: 8 kB / 0.7024 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01448/0.5339, allocations: 4.747 MB / 0.707 GB, free: 15.87 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005137/0.5345, allocations: 227.9 kB / 0.7072 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003064/0.5348, allocations: 16 kB / 0.7072 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001224/0.536, allocations: 115.9 kB / 0.7074 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005943/0.5367, allocations: 192.7 kB / 0.7075 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.932e-05/0.5368, allocations: 23.98 kB / 0.7076 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.001312/0.5381, allocations: 0.7274 MB / 0.7083 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5381, allocations: 0 / 0.7083 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001542/0.5397, allocations: 475.6 kB / 0.7087 GB, free: 14.09 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.0002878/0.5399, allocations: 141.5 kB / 0.7089 GB, free: 13.94 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00621/0.5462, allocations: 2.513 MB / 0.7113 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.5462, allocations: 0 / 0.7113 GB, free: 11.38 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004313/0.5505, allocations: 1.618 MB / 0.7129 GB, free: 9.727 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009855/0.5515, allocations: 118.6 kB / 0.713 GB, free: 9.613 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00429/0.5558, allocations: 2.295 MB / 0.7152 GB, free: 7.289 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008469/0.5567, allocations: 1.116 MB / 0.7163 GB, free: 6.141 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0004903/0.5572, allocations: 120 kB / 0.7165 GB, free: 6.02 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003179/0.5575, allocations: 83.41 kB / 0.7165 GB, free: 5.938 MB / 0.5137 GB Notification: Performance of SimCode: time 8.32e-07/0.5575, allocations: 0 / 0.7165 GB, free: 5.938 MB / 0.5137 GB Notification: Performance of Templates: time 0.03647/0.594, allocations: 23.68 MB / 0.7397 GB, free: 14.26 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)