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.001091/0.001091, allocations: 108.5 kB / 15.99 MB, free: 6.367 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.267/1.267, allocations: 222.9 MB / 239.6 MB, free: 4.738 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.001494/0.001494, allocations: 196.5 kB / 289.9 MB, free: 2.473 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4266/0.4266, allocations: 78.53 MB / 418.6 MB, free: 3.297 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 75.88 kB / 497.6 MB, free: 6.727 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1382, allocations: 68.18 MB / 0.5525 GB, free: 2.504 MB / 430.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.2488/0.3871, allocations: 6.505 MB / 0.5589 GB, free: 36.2 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003491/0.3906, allocations: 1.885 MB / 0.5607 GB, free: 35.65 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006058/0.3912, allocations: 11.97 kB / 0.5607 GB, free: 35.65 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005101/0.3918, allocations: 167.3 kB / 0.5609 GB, free: 35.64 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001653/0.3935, allocations: 0.6692 MB / 0.5615 GB, free: 35.49 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.00115/0.3946, allocations: 0.5438 MB / 0.5621 GB, free: 35.41 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001314/0.3959, allocations: 1.366 MB / 0.5634 GB, free: 35.34 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004002/0.3963, allocations: 281.6 kB / 0.5637 GB, free: 35.29 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006723/0.397, allocations: 0.5833 MB / 0.5642 GB, free: 35.16 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007074/0.3977, allocations: 0.7513 MB / 0.565 GB, free: 34.98 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001569/0.3979, allocations: 105.3 kB / 0.5651 GB, free: 34.98 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005183/0.3984, allocations: 246.6 kB / 0.5653 GB, free: 34.97 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000229/0.3987, allocations: 289.8 kB / 0.5656 GB, free: 34.91 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004919/0.3992, allocations: 0.6137 MB / 0.5662 GB, free: 34.7 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001158/0.4003, allocations: 1.137 MB / 0.5673 GB, free: 34.52 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.4004, allocations: 0.7188 kB / 0.5673 GB, free: 34.52 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.4004, allocations: 0 / 0.5673 GB, free: 34.52 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.41e-05/0.4004, allocations: 3.219 kB / 0.5673 GB, free: 34.52 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.007482/0.4079, allocations: 2.485 MB / 0.5697 GB, free: 33.64 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/0.4079, allocations: 14.19 kB / 0.5697 GB, free: 33.64 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004522/0.4125, allocations: 0.7587 MB / 0.5705 GB, free: 33.56 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00115/0.4136, allocations: 0.7978 MB / 0.5712 GB, free: 33.17 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002783/0.4139, allocations: 256.1 kB / 0.5715 GB, free: 32.98 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001501/0.4141, allocations: 78.8 kB / 0.5716 GB, free: 32.98 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002274/0.4164, allocations: 1.174 MB / 0.5727 GB, free: 32.85 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.245e-05/0.4164, allocations: 5.469 kB / 0.5727 GB, free: 32.85 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.065e-05/0.4165, allocations: 30.12 kB / 0.5727 GB, free: 32.85 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.704e-05/0.4165, allocations: 16.28 kB / 0.5728 GB, free: 32.85 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001725/0.4183, allocations: 0.9574 MB / 0.5737 GB, free: 32.83 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.004728/0.423, allocations: 3.543 MB / 0.5772 GB, free: 31.55 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006473/0.4295, allocations: 2.308 MB / 0.5794 GB, free: 30.89 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001134/0.4306, allocations: 0.6548 MB / 0.5801 GB, free: 30.63 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001026/0.4307, allocations: 20.19 kB / 0.5801 GB, free: 30.63 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.109e-05/0.4308, allocations: 42.5 kB / 0.5801 GB, free: 30.58 MB / 430.1 MB Notification: Performance of pre-optimization done (n=92): time 4.078e-06/0.4308, allocations: 0.75 kB / 0.5801 GB, free: 30.58 MB / 430.1 MB Notification: Performance of matching and sorting (n=92): time 0.02578/0.4566, allocations: 6.753 MB / 0.5867 GB, free: 29.27 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.4567, allocations: 96.75 kB / 0.5868 GB, free: 29.17 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00148/0.4582, allocations: 0.9677 MB / 0.5877 GB, free: 28.75 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002066/0.4584, allocations: 41.7 kB / 0.5878 GB, free: 28.71 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002977/0.4587, allocations: 457.5 kB / 0.5882 GB, free: 28.35 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000322/0.4591, allocations: 314.1 kB / 0.5885 GB, free: 28.11 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004491/0.4595, allocations: 254.9 kB / 0.5888 GB, free: 27.99 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.502e-05/0.4596, allocations: 309.6 kB / 0.5891 GB, free: 27.69 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001418/0.461, allocations: 0.6982 MB / 0.5897 GB, free: 27.43 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001521/0.4625, allocations: 0.9166 MB / 0.5906 GB, free: 26.95 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02123/0.4838, allocations: 5.068 MB / 0.5956 GB, free: 25.47 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.875e-05/0.4838, allocations: 5.344 kB / 0.5956 GB, free: 25.47 MB / 430.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.0131/0.4969, allocations: 4.143 MB / 0.5996 GB, free: 24.41 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.44e-05/0.497, allocations: 7.594 kB / 0.5996 GB, free: 24.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.366e-05/0.497, allocations: 6.188 kB / 0.5996 GB, free: 24.41 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005562/0.5026, allocations: 1.519 MB / 0.6011 GB, free: 24.13 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001427/0.5041, allocations: 255.3 kB / 0.6014 GB, free: 24.11 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01895/0.523, allocations: 8.282 MB / 0.6095 GB, free: 19.57 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001738/0.5248, allocations: 165.8 kB / 0.6096 GB, free: 19.47 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001306/0.525, allocations: 56.84 kB / 0.6097 GB, free: 19.45 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.0006012/0.5256, allocations: 266.7 kB / 0.6099 GB, free: 19.24 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009672/0.5266, allocations: 341.7 kB / 0.6103 GB, free: 19.04 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01044/0.537, allocations: 3.589 MB / 0.6138 GB, free: 16.27 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.537, allocations: 8 kB / 0.6138 GB, free: 16.27 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.228e-05/0.5371, allocations: 12.44 kB / 0.6138 GB, free: 16.25 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.245e-05/0.5371, allocations: 7.984 kB / 0.6138 GB, free: 16.25 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.01191/0.549, allocations: 5.131 MB / 0.6188 GB, free: 11.01 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.127e-06/0.549, allocations: 4.438 kB / 0.6188 GB, free: 11.01 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00053/0.5496, allocations: 109 kB / 0.6189 GB, free: 10.9 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004658/0.5542, allocations: 1.58 MB / 0.6204 GB, free: 9.316 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.84e-05/0.5544, allocations: 23.92 kB / 0.6205 GB, free: 9.293 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01678/0.5711, allocations: 10.77 MB / 0.631 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.5712, allocations: 0.625 kB / 0.631 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01379/0.585, allocations: 4.613 MB / 0.6355 GB, free: 9.543 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005026/0.5855, allocations: 211.5 kB / 0.6357 GB, free: 9.316 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003906/0.586, allocations: 20 kB / 0.6357 GB, free: 9.297 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/0.5872, allocations: 85.33 kB / 0.6358 GB, free: 9.215 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005989/0.5878, allocations: 180.7 kB / 0.636 GB, free: 9.039 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001163/0.588, allocations: 24 kB / 0.636 GB, free: 9.016 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0009453/0.5889, allocations: 0.6434 MB / 0.6366 GB, free: 8.359 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5889, allocations: 2.25 kB / 0.6366 GB, free: 8.359 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001768/0.5907, allocations: 439.6 kB / 0.637 GB, free: 7.93 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.0003211/0.591, allocations: 127.2 kB / 0.6372 GB, free: 7.793 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006114/0.5972, allocations: 2.313 MB / 0.6394 GB, free: 5.469 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.5972, allocations: 4.062 kB / 0.6394 GB, free: 5.465 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003877/0.6011, allocations: 1.323 MB / 0.6407 GB, free: 4.125 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001915/0.603, allocations: 340.3 kB / 0.641 GB, free: 3.777 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004788/0.6078, allocations: 2.498 MB / 0.6435 GB, free: 1.277 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006978/0.6085, allocations: 1.077 MB / 0.6445 GB, free: 176 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000344/0.6089, allocations: 79.41 kB / 0.6446 GB, free: 96 kB / 446.1 MB Notification: Performance of SimCode: time 6.21e-07/0.6089, allocations: 0 / 0.6446 GB, free: 96 kB / 446.1 MB Notification: Performance of Templates: time 0.0276/0.6365, allocations: 21.34 MB / 0.6654 GB, free: 10.94 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 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)