Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.conf.json 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/Modelica 4.0.0+maint.om/package.mo", uses=false) 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/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") translateModel(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008147/0.0008147, allocations: 181 kB / 15.45 MB, free: 6.227 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.204/1.204, allocations: 223.3 MB / 239.5 MB, free: 1.605 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007825/0.0007825, allocations: 103.7 kB / 290.7 MB, free: 13.79 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4262/0.4262, allocations: 78.62 MB / 420.4 MB, free: 44.1 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003318/0.0003318, allocations: 16 kB / 0.4888 GB, free: 2.52 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/0.2959, allocations: 69.34 MB / 0.5565 GB, free: 38.95 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.004865/0.3008, allocations: 6.045 MB / 0.5624 GB, free: 36.32 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.003308/0.3042, allocations: 1.9 MB / 0.5643 GB, free: 35.53 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004615/0.3046, allocations: 11.03 kB / 0.5643 GB, free: 35.53 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003901/0.305, allocations: 171 kB / 0.5644 GB, free: 35.46 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001434/0.3065, allocations: 0.6602 MB / 0.5651 GB, free: 35.17 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/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.001145/0.3076, allocations: 0.5396 MB / 0.5656 GB, free: 35.07 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.001303/0.3089, allocations: 1.308 MB / 0.5669 GB, free: 34.63 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00034/0.3093, allocations: 254.5 kB / 0.5671 GB, free: 34.51 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005476/0.3098, allocations: 0.5242 MB / 0.5676 GB, free: 34.27 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005545/0.3104, allocations: 0.6975 MB / 0.5683 GB, free: 33.95 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001226/0.3105, allocations: 55.5 kB / 0.5684 GB, free: 33.95 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004004/0.3109, allocations: 178.8 kB / 0.5685 GB, free: 33.92 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001552/0.3111, allocations: 238.9 kB / 0.5688 GB, free: 33.78 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003252/0.3114, allocations: 0.5801 MB / 0.5693 GB, free: 33.39 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008457/0.3123, allocations: 1.401 MB / 0.5707 GB, free: 32.86 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.036e-05/0.3123, allocations: 7.875 kB / 0.5707 GB, free: 32.85 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3123, allocations: 0 / 0.5707 GB, free: 32.85 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.1e-05/0.3123, allocations: 0 / 0.5707 GB, free: 32.85 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.006145/0.3185, allocations: 2.31 MB / 0.573 GB, free: 31.83 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.3185, allocations: 8.812 kB / 0.573 GB, free: 31.83 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004421/0.323, allocations: 0.7629 MB / 0.5737 GB, free: 31.69 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009556/0.3239, allocations: 0.7995 MB / 0.5745 GB, free: 31.12 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002136/0.3242, allocations: 272.9 kB / 0.5748 GB, free: 30.9 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001306/0.3243, allocations: 73.12 kB / 0.5748 GB, free: 30.88 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001972/0.3263, allocations: 1.242 MB / 0.576 GB, free: 30.41 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.974e-05/0.3263, allocations: 3.938 kB / 0.5761 GB, free: 30.4 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.232e-05/0.3264, allocations: 29.97 kB / 0.5761 GB, free: 30.38 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.225e-05/0.3264, allocations: 21.62 kB / 0.5761 GB, free: 30.38 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001743/0.3281, allocations: 1.018 MB / 0.5771 GB, free: 30.06 MB / 426.7 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.004583/0.3327, allocations: 3.617 MB / 0.5806 GB, free: 27.89 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006439/0.3392, allocations: 2.858 MB / 0.5834 GB, free: 27.04 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001164/0.3404, allocations: 0.727 MB / 0.5841 GB, free: 26.77 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001025/0.3405, allocations: 15.16 kB / 0.5841 GB, free: 26.77 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.296e-05/0.3405, allocations: 43.25 kB / 0.5842 GB, free: 26.72 MB / 426.7 MB Notification: Performance of pre-optimization done (n=92): time 2.635e-06/0.3405, allocations: 0 / 0.5842 GB, free: 26.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=92): time 0.02389/0.3644, allocations: 8.26 MB / 0.5923 GB, free: 25.24 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.976e-05/0.3645, allocations: 98.08 kB / 0.5923 GB, free: 25.14 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001129/0.3656, allocations: 0.965 MB / 0.5933 GB, free: 24.72 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001031/0.3658, allocations: 41.89 kB / 0.5933 GB, free: 24.68 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000251/0.366, allocations: 462.9 kB / 0.5938 GB, free: 24.31 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002363/0.3663, allocations: 315.8 kB / 0.5941 GB, free: 24.07 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001521/0.3664, allocations: 130 kB / 0.5942 GB, free: 24.01 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 3.845e-05/0.3665, allocations: 306.8 kB / 0.5945 GB, free: 23.71 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001326/0.3678, allocations: 0.7554 MB / 0.5952 GB, free: 23.45 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001442/0.3692, allocations: 0.9779 MB / 0.5962 GB, free: 22.95 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01987/0.3891, allocations: 5.495 MB / 0.6015 GB, free: 21.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.231e-05/0.3892, allocations: 1.062 kB / 0.6015 GB, free: 21.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01284/0.402, allocations: 4.975 MB / 0.6064 GB, free: 20.29 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.986e-05/0.4021, allocations: 6.906 kB / 0.6064 GB, free: 20.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.242e-05/0.4021, allocations: 5.188 kB / 0.6064 GB, free: 20.29 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005384/0.4075, allocations: 1.8 MB / 0.6082 GB, free: 19.97 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001288/0.4088, allocations: 260.5 kB / 0.6084 GB, free: 19.94 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01638/0.4252, allocations: 8.621 MB / 0.6168 GB, free: 11.81 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001497/0.4268, allocations: 202.9 kB / 0.617 GB, free: 11.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001911/0.427, allocations: 55.97 kB / 0.6171 GB, free: 11.55 MB / 426.7 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: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vf,aVRTypeII.vr2,aVRTypeII.vr1,aVRTypeII.vm) * Top-level inputs: 0 Notification: Strong component statistics for initialization (151): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * 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.0005931/0.4276, allocations: 268.5 kB / 0.6173 GB, free: 11.29 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009209/0.4285, allocations: 363 kB / 0.6177 GB, free: 10.92 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0106/0.4391, allocations: 4.424 MB / 0.622 GB, free: 6.477 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.419e-05/0.4392, allocations: 15.94 kB / 0.622 GB, free: 6.461 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.405e-05/0.4392, allocations: 8 kB / 0.622 GB, free: 6.453 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.985e-05/0.4392, allocations: 3.984 kB / 0.622 GB, free: 6.449 MB / 426.7 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.01286/0.4521, allocations: 5.977 MB / 0.6279 GB, free: 376 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/0.4521, allocations: 0 / 0.6279 GB, free: 376 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006051/0.4528, allocations: 115.8 kB / 0.628 GB, free: 260 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005334/0.4581, allocations: 1.864 MB / 0.6298 GB, free: 14.38 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001592/0.4583, allocations: 27.92 kB / 0.6298 GB, free: 14.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01796/0.4763, allocations: 10.8 MB / 0.6404 GB, free: 3.215 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.4763, allocations: 4 kB / 0.6404 GB, free: 3.211 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01407/0.4904, allocations: 5.527 MB / 0.6458 GB, free: 13.66 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000417/0.4909, allocations: 211.5 kB / 0.646 GB, free: 13.43 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002982/0.4912, allocations: 16 kB / 0.646 GB, free: 13.41 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/0.4923, allocations: 127.9 kB / 0.6461 GB, free: 13.29 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005356/0.4928, allocations: 164.7 kB / 0.6463 GB, free: 13.13 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.419e-05/0.4929, allocations: 35.92 kB / 0.6463 GB, free: 13.09 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0008497/0.4938, allocations: 0.6356 MB / 0.6469 GB, free: 12.45 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.4938, allocations: 4 kB / 0.6469 GB, free: 12.45 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001421/0.4952, allocations: 443.6 kB / 0.6474 GB, free: 12.01 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 6 (order2.delta,order2.w,order4.delta,order4.w,order4.e1q,order4.e1d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 4 (aVRTypeII.vm,aVRTypeII.vr1,aVRTypeII.vr2,aVRTypeII.vf) * Top-level inputs: 0 Notification: Strong component statistics for simulation (61): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * 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 {(20,12,23.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002413/0.4954, allocations: 128 kB / 0.6475 GB, free: 11.88 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005767/0.5012, allocations: 2.565 MB / 0.65 GB, free: 9.293 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.5012, allocations: 0 / 0.65 GB, free: 9.293 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003718/0.505, allocations: 1.55 MB / 0.6515 GB, free: 7.73 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001435/0.5064, allocations: 360.5 kB / 0.6518 GB, free: 7.367 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0038/0.5102, allocations: 2.532 MB / 0.6543 GB, free: 4.82 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005605/0.5108, allocations: 1.081 MB / 0.6554 GB, free: 3.707 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0003576/0.5112, allocations: 107.3 kB / 0.6555 GB, free: 3.598 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002209/0.5114, allocations: 67.42 kB / 0.6555 GB, free: 3.531 MB / 458.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5114, allocations: 3.938 kB / 0.6555 GB, free: 3.527 MB / 458.7 MB Notification: Performance of Templates: time 0.03019/0.5416, allocations: 19.17 MB / 0.6743 GB, free: 368 kB / 474.7 MB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)