Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.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_Discrete,tolerance=0.001,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="OpenIPSL_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_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001308/0.001308, allocations: 102.2 kB / 16.36 MB, free: 6.469 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.44/1.44, allocations: 222.9 MB / 240 MB, free: 4.602 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.001613/0.001613, allocations: 192.4 kB / 290.3 MB, free: 2.312 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4951/0.4951, allocations: 78.54 MB / 419 MB, free: 3.145 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 83.88 kB / 498.9 MB, free: 5.707 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1687/0.1702, allocations: 68.18 MB / 0.5538 GB, free: 1.488 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.2872/0.4574, allocations: 6.19 MB / 0.5598 GB, free: 36.41 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.006215/0.4637, allocations: 1.857 MB / 0.5616 GB, free: 35.86 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001818/0.4656, allocations: 10.34 kB / 0.5617 GB, free: 35.86 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001177/0.4668, allocations: 218.7 kB / 0.5619 GB, free: 35.86 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004125/0.471, allocations: 0.7474 MB / 0.5626 GB, free: 35.71 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.00244/0.4734, allocations: 0.5922 MB / 0.5632 GB, free: 35.63 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002749/0.4762, allocations: 1.373 MB / 0.5645 GB, free: 35.41 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006197/0.4768, allocations: 286.3 kB / 0.5648 GB, free: 35.36 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001137/0.478, allocations: 0.5813 MB / 0.5654 GB, free: 35.2 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009827/0.479, allocations: 0.7579 MB / 0.5661 GB, free: 35 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001774/0.4791, allocations: 104.3 kB / 0.5662 GB, free: 35 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006957/0.4798, allocations: 240.2 kB / 0.5664 GB, free: 35 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002904/0.4802, allocations: 293.5 kB / 0.5667 GB, free: 34.92 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006334/0.4808, allocations: 0.6114 MB / 0.5673 GB, free: 34.69 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001835/0.4826, allocations: 1.488 MB / 0.5688 GB, free: 34.34 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.4827, allocations: 0 / 0.5688 GB, free: 34.34 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.4827, allocations: 0 / 0.5688 GB, free: 34.34 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.485e-05/0.4827, allocations: 0.5 kB / 0.5688 GB, free: 34.34 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: 178 * Number of variables: 178 Notification: Performance of Generate backend data structure: time 0.01047/0.4932, allocations: 2.487 MB / 0.5712 GB, free: 33.46 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.719e-05/0.4933, allocations: 12.44 kB / 0.5712 GB, free: 33.45 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007457/0.5007, allocations: 0.7627 MB / 0.5719 GB, free: 33.37 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002184/0.503, allocations: 0.7962 MB / 0.5727 GB, free: 32.97 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003275/0.5033, allocations: 259.9 kB / 0.573 GB, free: 32.78 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002046/0.5035, allocations: 73.06 kB / 0.573 GB, free: 32.78 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003102/0.5066, allocations: 1.18 MB / 0.5742 GB, free: 32.65 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.122e-05/0.5067, allocations: 3.938 kB / 0.5742 GB, free: 32.64 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001086/0.5068, allocations: 24.91 kB / 0.5742 GB, free: 32.64 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.774e-05/0.5068, allocations: 21.88 kB / 0.5742 GB, free: 32.64 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002481/0.5093, allocations: 0.9503 MB / 0.5752 GB, free: 32.64 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.006786/0.5161, allocations: 3.529 MB / 0.5786 GB, free: 31.32 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008547/0.5247, allocations: 2.306 MB / 0.5809 GB, free: 30.53 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001749/0.5265, allocations: 0.6548 MB / 0.5815 GB, free: 30.28 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001559/0.5267, allocations: 20.41 kB / 0.5815 GB, free: 30.27 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.938e-05/0.5267, allocations: 45.38 kB / 0.5816 GB, free: 30.22 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 4.118e-06/0.5267, allocations: 0 / 0.5816 GB, free: 30.22 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.03053/0.5572, allocations: 6.75 MB / 0.5882 GB, free: 28.91 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.508e-05/0.5574, allocations: 91.73 kB / 0.5882 GB, free: 28.82 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002199/0.5596, allocations: 0.9677 MB / 0.5892 GB, free: 28.4 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002014/0.5598, allocations: 48.95 kB / 0.5892 GB, free: 28.35 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004125/0.5602, allocations: 451.9 kB / 0.5897 GB, free: 27.99 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004478/0.5607, allocations: 318.7 kB / 0.59 GB, free: 27.75 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000881/0.5616, allocations: 256.8 kB / 0.5902 GB, free: 27.63 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.491e-05/0.5617, allocations: 302.3 kB / 0.5905 GB, free: 27.33 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001928/0.5636, allocations: 0.6982 MB / 0.5912 GB, free: 27.07 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002023/0.5657, allocations: 0.9153 MB / 0.5921 GB, free: 26.59 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02281/0.5885, allocations: 5.06 MB / 0.597 GB, free: 25.12 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.108e-05/0.5886, allocations: 1.406 kB / 0.597 GB, free: 25.12 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01363/0.6022, allocations: 4.15 MB / 0.6011 GB, free: 24.06 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.988e-05/0.6023, allocations: 7.641 kB / 0.6011 GB, free: 24.06 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.136e-05/0.6023, allocations: 4.688 kB / 0.6011 GB, free: 24.06 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005626/0.6079, allocations: 1.518 MB / 0.6026 GB, free: 23.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001397/0.6094, allocations: 256.5 kB / 0.6028 GB, free: 23.76 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01873/0.6281, allocations: 8.268 MB / 0.6109 GB, free: 18.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001931/0.6301, allocations: 172.8 kB / 0.6111 GB, free: 18.77 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003154/0.6304, allocations: 57.25 kB / 0.6111 GB, free: 18.75 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 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.0008812/0.6313, allocations: 265 kB / 0.6114 GB, free: 18.54 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001339/0.6327, allocations: 339.3 kB / 0.6117 GB, free: 18.35 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01069/0.6434, allocations: 3.59 MB / 0.6152 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.275e-05/0.6435, allocations: 8 kB / 0.6152 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.627e-05/0.6435, allocations: 8 kB / 0.6152 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-05/0.6436, allocations: 8.438 kB / 0.6152 GB, free: 15.32 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.01324/0.6568, allocations: 5.117 MB / 0.6202 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.677e-05/0.6569, allocations: 6.625 kB / 0.6202 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006076/0.6575, allocations: 115.9 kB / 0.6203 GB, free: 9.977 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004673/0.6622, allocations: 1.578 MB / 0.6219 GB, free: 8.391 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001408/0.6623, allocations: 20 kB / 0.6219 GB, free: 8.371 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01666/0.679, allocations: 10.76 MB / 0.6324 GB, free: 13.27 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.679, allocations: 0 / 0.6324 GB, free: 13.27 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01387/0.6929, allocations: 4.625 MB / 0.6369 GB, free: 8.613 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006394/0.6936, allocations: 208.3 kB / 0.6371 GB, free: 8.391 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001867/0.6938, allocations: 24 kB / 0.6371 GB, free: 8.367 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009821/0.6948, allocations: 84.97 kB / 0.6372 GB, free: 8.285 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006323/0.6954, allocations: 176.7 kB / 0.6374 GB, free: 8.113 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.887e-05/0.6955, allocations: 27.98 kB / 0.6374 GB, free: 8.086 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009395/0.6965, allocations: 0.6395 MB / 0.638 GB, free: 7.438 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.6965, allocations: 4 kB / 0.638 GB, free: 7.434 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001599/0.6981, allocations: 435.6 kB / 0.6384 GB, free: 7.008 MB / 446.1 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.0003543/0.6984, allocations: 127.2 kB / 0.6386 GB, free: 6.871 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005964/0.7044, allocations: 2.297 MB / 0.6408 GB, free: 4.566 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.7045, allocations: 0 / 0.6408 GB, free: 4.566 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003791/0.7083, allocations: 1.327 MB / 0.6421 GB, free: 3.223 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00164/0.7099, allocations: 347.2 kB / 0.6424 GB, free: 2.871 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004175/0.7141, allocations: 2.057 MB / 0.6444 GB, free: 0.8203 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006992/0.7148, allocations: 1.077 MB / 0.6455 GB, free: 15.71 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004636/0.7153, allocations: 99.19 kB / 0.6456 GB, free: 15.62 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002316/0.7155, allocations: 75.41 kB / 0.6457 GB, free: 15.54 MB / 462.1 MB Notification: Performance of SimCode: time 1.282e-06/0.7155, allocations: 0 / 0.6457 GB, free: 15.54 MB / 462.1 MB Notification: Performance of Templates: time 0.03537/0.7509, allocations: 21.43 MB / 0.6666 GB, free: 10.33 MB / 478.1 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile (rm -f OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)