Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.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_Continuous,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_release_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_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00139/0.00139, allocations: 173.1 kB / 16.07 MB, free: 5.73 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.265/1.265, allocations: 222.9 MB / 239.7 MB, free: 10.22 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000736/0.000736, allocations: 95.11 kB / 290.4 MB, free: 11.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.4146/0.4146, allocations: 78.43 MB / 419.6 MB, free: 9.777 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003539/0.0003539, allocations: 8 kB / 499.1 MB, free: 10.7 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2596, allocations: 68.75 MB / 0.5545 GB, free: 20.25 MB / 378.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous): time 0.005482/0.2651, allocations: 6.864 MB / 0.5612 GB, free: 13.36 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003462/0.2686, allocations: 2.001 MB / 0.5632 GB, free: 11.35 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001083/0.2697, allocations: 15.94 kB / 0.5632 GB, free: 11.34 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008499/0.2706, allocations: 186.8 kB / 0.5634 GB, free: 11.15 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002049/0.2727, allocations: 0.7112 MB / 0.5641 GB, free: 10.44 MB / 378.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.00112/0.2738, allocations: 0.5925 MB / 0.5646 GB, free: 9.852 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00128/0.2751, allocations: 1.495 MB / 0.5661 GB, free: 8.348 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003578/0.2755, allocations: 293.2 kB / 0.5664 GB, free: 8.051 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005353/0.2761, allocations: 0.5637 MB / 0.5669 GB, free: 7.484 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000552/0.2766, allocations: 0.7426 MB / 0.5676 GB, free: 6.738 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001176/0.2767, allocations: 63.94 kB / 0.5677 GB, free: 6.676 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003859/0.2771, allocations: 191.9 kB / 0.5679 GB, free: 6.488 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001684/0.2773, allocations: 258.7 kB / 0.5681 GB, free: 6.234 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003353/0.2777, allocations: 0.5976 MB / 0.5687 GB, free: 5.633 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007314/0.2784, allocations: 1.225 MB / 0.5699 GB, free: 4.406 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.2784, allocations: 0 / 0.5699 GB, free: 4.406 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2784, allocations: 0 / 0.5699 GB, free: 4.406 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.216e-05/0.2784, allocations: 4 kB / 0.5699 GB, free: 4.402 MB / 378.7 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.007167/0.2856, allocations: 2.423 MB / 0.5723 GB, free: 1.914 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.2857, allocations: 12.03 kB / 0.5723 GB, free: 1.902 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004941/0.2906, allocations: 0.771 MB / 0.5731 GB, free: 1.129 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001331/0.2919, allocations: 0.8902 MB / 0.5739 GB, free: 188 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002534/0.2922, allocations: 260.2 kB / 0.5742 GB, free: 15.89 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001603/0.2924, allocations: 83.91 kB / 0.5743 GB, free: 15.8 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002038/0.2944, allocations: 1.086 MB / 0.5753 GB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.2945, allocations: 4 kB / 0.5753 GB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.136e-05/0.2946, allocations: 28 kB / 0.5753 GB, free: 14.68 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.674e-05/0.2946, allocations: 20 kB / 0.5754 GB, free: 14.66 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001996/0.2966, allocations: 0.9955 MB / 0.5763 GB, free: 13.66 MB / 394.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.006397/0.303, allocations: 3.808 MB / 0.5801 GB, free: 9.68 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007223/0.3102, allocations: 2.383 MB / 0.5824 GB, free: 7.203 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001379/0.3116, allocations: 0.6746 MB / 0.583 GB, free: 6.523 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001091/0.3118, allocations: 24.92 kB / 0.5831 GB, free: 6.5 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001542/0.3133, allocations: 0.8197 MB / 0.5839 GB, free: 5.664 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 4.128e-06/0.3133, allocations: 0 / 0.5839 GB, free: 5.664 MB / 394.7 MB Notification: Performance of matching and sorting (n=96): time 0.02735/0.3407, allocations: 7.093 MB / 0.5908 GB, free: 14.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.399e-05/0.3408, allocations: 115.8 kB / 0.5909 GB, free: 14.37 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001529/0.3423, allocations: 1.083 MB / 0.592 GB, free: 13.27 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000189/0.3425, allocations: 49.73 kB / 0.592 GB, free: 13.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003641/0.3429, allocations: 496.8 kB / 0.5925 GB, free: 12.72 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003357/0.3432, allocations: 355 kB / 0.5928 GB, free: 12.37 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001882/0.3434, allocations: 145.6 kB / 0.593 GB, free: 12.22 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.006e-05/0.3435, allocations: 301.1 kB / 0.5932 GB, free: 11.93 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001534/0.3451, allocations: 0.7652 MB / 0.594 GB, free: 11.16 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001632/0.3467, allocations: 0.9381 MB / 0.5949 GB, free: 10.18 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02284/0.3696, allocations: 5.578 MB / 0.6004 GB, free: 4.52 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.241e-05/0.3696, allocations: 4 kB / 0.6004 GB, free: 4.516 MB / 410.7 MB Notification: Performance of matching and sorting (n=196) (initialization): time 0.01279/0.3824, allocations: 4.328 MB / 0.6046 GB, free: 164 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.304e-05/0.3825, allocations: 63.41 kB / 0.6046 GB, free: 88 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.3825, allocations: 4 kB / 0.6047 GB, free: 84 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005164/0.3877, allocations: 1.508 MB / 0.6061 GB, free: 14.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001441/0.3892, allocations: 299.6 kB / 0.6064 GB, free: 14.28 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01689/0.4061, allocations: 7.621 MB / 0.6139 GB, free: 6.512 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00177/0.4079, allocations: 202.8 kB / 0.614 GB, free: 6.312 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001207/0.408, allocations: 51.98 kB / 0.6141 GB, free: 6.262 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: 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.0005507/0.4086, allocations: 307.1 kB / 0.6144 GB, free: 5.949 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001961/0.4088, allocations: 126.4 kB / 0.6145 GB, free: 5.824 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0122/0.421, allocations: 3.869 MB / 0.6183 GB, free: 1.922 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.413e-05/0.4211, allocations: 12 kB / 0.6183 GB, free: 1.91 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.605e-05/0.4211, allocations: 11.92 kB / 0.6183 GB, free: 1.898 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.813e-05/0.4211, allocations: 11.92 kB / 0.6183 GB, free: 1.887 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.0143/0.4354, allocations: 5.457 MB / 0.6236 GB, free: 12.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.139e-05/0.4355, allocations: 0 / 0.6236 GB, free: 12.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006197/0.4361, allocations: 99.89 kB / 0.6237 GB, free: 12.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005549/0.4417, allocations: 1.61 MB / 0.6253 GB, free: 10.61 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002226/0.4419, allocations: 23.98 kB / 0.6253 GB, free: 10.58 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01827/0.4602, allocations: 8.75 MB / 0.6339 GB, free: 1.547 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.4602, allocations: 0 / 0.6339 GB, free: 1.547 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01389/0.4741, allocations: 4.737 MB / 0.6385 GB, free: 12.77 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004189/0.4746, allocations: 227.4 kB / 0.6387 GB, free: 12.53 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002072/0.4748, allocations: 19.98 kB / 0.6387 GB, free: 12.51 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001133/0.4759, allocations: 111.8 kB / 0.6389 GB, free: 12.4 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005528/0.4765, allocations: 196.6 kB / 0.639 GB, free: 12.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.494e-05/0.4766, allocations: 31.98 kB / 0.6391 GB, free: 12.18 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001036/0.4776, allocations: 0.7313 MB / 0.6398 GB, free: 11.44 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4776, allocations: 0 / 0.6398 GB, free: 11.44 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001324/0.479, allocations: 467.5 kB / 0.6402 GB, free: 10.98 MB / 458.7 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 (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.0002494/0.4792, allocations: 131.2 kB / 0.6404 GB, free: 10.84 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005905/0.4852, allocations: 2.509 MB / 0.6428 GB, free: 8.297 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.4852, allocations: 128 / 0.6428 GB, free: 8.297 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00424/0.4894, allocations: 1.604 MB / 0.6444 GB, free: 6.66 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009936/0.4904, allocations: 119.6 kB / 0.6445 GB, free: 6.543 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003776/0.4942, allocations: 2.722 MB / 0.6471 GB, free: 3.785 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006387/0.4949, allocations: 1.124 MB / 0.6482 GB, free: 2.633 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003252/0.4952, allocations: 83.41 kB / 0.6483 GB, free: 2.551 MB / 458.7 MB Notification: Performance of SimCode: time 5.71e-07/0.4952, allocations: 0 / 0.6483 GB, free: 2.551 MB / 458.7 MB Notification: Performance of Templates: time 0.0278/0.523, allocations: 23.3 MB / 0.6711 GB, free: 11.24 MB / 490.7 MB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Continuous.pipe 2>&1)