Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr OpenIPSL_dev_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.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 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_dev_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_dev_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.001347/0.001347, allocations: 107.8 kB / 16.41 MB, free: 6.488 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.431/1.431, allocations: 222.9 MB / 240.1 MB, free: 4.371 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.001647/0.001647, allocations: 192.5 kB / 290.4 MB, free: 2.102 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5673/0.5673, allocations: 91.9 MB / 432.4 MB, free: 9.141 MB / 302.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001769/0.001769, allocations: 82.42 kB / 0.5734 GB, free: 33.43 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1524/0.1542, allocations: 71.28 MB / 0.643 GB, free: 3.539 MB / 446.1 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete): time 0.007285/0.1615, allocations: 6.222 MB / 0.6491 GB, free: 13.29 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.004194/0.1657, allocations: 1.853 MB / 0.6509 GB, free: 11.43 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001165/0.1669, allocations: 8 kB / 0.6509 GB, free: 11.42 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008507/0.1678, allocations: 222.1 kB / 0.6511 GB, free: 11.2 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002892/0.1708, allocations: 0.7511 MB / 0.6519 GB, free: 10.45 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001678/0.1724, allocations: 0.5837 MB / 0.6524 GB, free: 9.875 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002268/0.1747, allocations: 1.382 MB / 0.6538 GB, free: 8.488 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006832/0.1754, allocations: 283.9 kB / 0.6541 GB, free: 8.195 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001363/0.1768, allocations: 0.5834 MB / 0.6546 GB, free: 7.609 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001466/0.1783, allocations: 0.7506 MB / 0.6554 GB, free: 6.855 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005522/0.1789, allocations: 107.9 kB / 0.6555 GB, free: 6.75 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001041/0.1799, allocations: 251.8 kB / 0.6557 GB, free: 6.504 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004827/0.1804, allocations: 286.7 kB / 0.656 GB, free: 6.223 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001035/0.1814, allocations: 0.6097 MB / 0.6566 GB, free: 5.609 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001779/0.1832, allocations: 1.495 MB / 0.658 GB, free: 4.109 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1832, allocations: 0 / 0.658 GB, free: 4.109 MB / 462.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.1833, allocations: 0 / 0.658 GB, free: 4.109 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.307e-05/0.1833, allocations: 4 kB / 0.658 GB, free: 4.105 MB / 462.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.007651/0.1909, allocations: 2.487 MB / 0.6605 GB, free: 1.566 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.191, allocations: 8.031 kB / 0.6605 GB, free: 1.559 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004782/0.1958, allocations: 0.7672 MB / 0.6612 GB, free: 0.7891 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001389/0.1972, allocations: 0.7968 MB / 0.662 GB, free: 15.93 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002938/0.1975, allocations: 256.2 kB / 0.6622 GB, free: 15.65 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001532/0.1977, allocations: 72 kB / 0.6623 GB, free: 15.58 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002229/0.1999, allocations: 1.166 MB / 0.6634 GB, free: 14.39 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.377e-05/0.1999, allocations: 11.88 kB / 0.6635 GB, free: 14.38 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.884e-05/0.2, allocations: 28 kB / 0.6635 GB, free: 14.35 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.64e-05/0.2, allocations: 16 kB / 0.6635 GB, free: 14.33 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001845/0.2019, allocations: 0.9538 MB / 0.6644 GB, free: 13.38 MB / 478.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.005902/0.2078, allocations: 3.558 MB / 0.6679 GB, free: 9.629 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006853/0.2147, allocations: 2.307 MB / 0.6702 GB, free: 7.23 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001294/0.216, allocations: 0.6517 MB / 0.6708 GB, free: 6.574 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.58e-05/0.2161, allocations: 16.64 kB / 0.6708 GB, free: 6.559 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/0.2161, allocations: 47.16 kB / 0.6709 GB, free: 6.504 MB / 478.1 MB Notification: Performance of pre-optimization done (n=92): time 3.256e-06/0.2162, allocations: 0 / 0.6709 GB, free: 6.504 MB / 478.1 MB Notification: Performance of matching and sorting (n=92): time 0.02645/0.2426, allocations: 6.87 MB / 0.6776 GB, free: 15.57 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/0.2428, allocations: 93.77 kB / 0.6777 GB, free: 15.46 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001354/0.2441, allocations: 0.9656 MB / 0.6786 GB, free: 14.48 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001958/0.2443, allocations: 45.7 kB / 0.6786 GB, free: 14.43 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003613/0.2447, allocations: 464.8 kB / 0.6791 GB, free: 13.97 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000334/0.2451, allocations: 311.6 kB / 0.6794 GB, free: 13.66 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004229/0.2455, allocations: 255.5 kB / 0.6796 GB, free: 13.41 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.2456, allocations: 305.1 kB / 0.6799 GB, free: 13.11 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00132/0.2469, allocations: 0.6988 MB / 0.6806 GB, free: 12.41 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001464/0.2484, allocations: 0.9185 MB / 0.6815 GB, free: 11.42 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02125/0.2697, allocations: 5.057 MB / 0.6864 GB, free: 6.281 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.306e-05/0.2697, allocations: 0 / 0.6864 GB, free: 6.281 MB / 494.1 MB Notification: Performance of matching and sorting (n=181) (initialization): time 0.01229/0.282, allocations: 4.145 MB / 0.6905 GB, free: 2.121 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.923e-05/0.2821, allocations: 7.938 kB / 0.6905 GB, free: 2.113 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.927e-05/0.2821, allocations: 8 kB / 0.6905 GB, free: 2.105 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00507/0.2872, allocations: 1.52 MB / 0.692 GB, free: 0.582 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/0.2885, allocations: 259.6 kB / 0.6922 GB, free: 336 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01812/0.3066, allocations: 8.264 MB / 0.7003 GB, free: 7.914 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001687/0.3083, allocations: 171 kB / 0.7005 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001057/0.3085, allocations: 51.97 kB / 0.7005 GB, free: 7.695 MB / 0.4981 GB 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.0006175/0.3091, allocations: 273.1 kB / 0.7008 GB, free: 7.422 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009497/0.31, allocations: 328.9 kB / 0.7011 GB, free: 7.09 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01107/0.3211, allocations: 3.58 MB / 0.7046 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.605e-05/0.3212, allocations: 8 kB / 0.7046 GB, free: 3.484 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-05/0.3212, allocations: 12 kB / 0.7046 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-05/0.3212, allocations: 7.969 kB / 0.7046 GB, free: 3.465 MB / 0.4981 GB 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.01374/0.335, allocations: 5.139 MB / 0.7096 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/0.335, allocations: 7.938 kB / 0.7096 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005991/0.3356, allocations: 107.9 kB / 0.7097 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005126/0.3408, allocations: 1.579 MB / 0.7113 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001274/0.3409, allocations: 23.98 kB / 0.7113 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01868/0.3596, allocations: 10.75 MB / 0.7218 GB, free: 1.398 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3596, allocations: 0 / 0.7218 GB, free: 1.398 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01382/0.3735, allocations: 4.609 MB / 0.7263 GB, free: 12.76 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000544/0.374, allocations: 207.5 kB / 0.7265 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001554/0.3742, allocations: 16 kB / 0.7265 GB, free: 12.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009558/0.3752, allocations: 91.89 kB / 0.7266 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000565/0.3757, allocations: 176.7 kB / 0.7268 GB, free: 12.26 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.421e-05/0.3758, allocations: 20 kB / 0.7268 GB, free: 12.24 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0008435/0.3767, allocations: 0.6473 MB / 0.7274 GB, free: 11.58 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.3767, allocations: 0 / 0.7274 GB, free: 11.58 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001405/0.3781, allocations: 447.5 kB / 0.7278 GB, free: 11.14 MB / 0.5294 GB 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.0002786/0.3784, allocations: 127.2 kB / 0.728 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.005658/0.384, allocations: 2.288 MB / 0.7302 GB, free: 8.707 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.3841, allocations: 0 / 0.7302 GB, free: 8.707 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.003726/0.3878, allocations: 1.318 MB / 0.7315 GB, free: 7.375 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001592/0.3894, allocations: 352.2 kB / 0.7318 GB, free: 7.016 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004008/0.3934, allocations: 2.083 MB / 0.7339 GB, free: 4.895 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006404/0.3941, allocations: 1.081 MB / 0.7349 GB, free: 3.785 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003047/0.3944, allocations: 75.42 kB / 0.735 GB, free: 3.711 MB / 0.5294 GB Notification: Performance of SimCode: time 1.343e-06/0.3944, allocations: 0 / 0.735 GB, free: 3.711 MB / 0.5294 GB Notification: Performance of Templates: time 0.02869/0.4231, allocations: 21.44 MB / 0.7559 GB, free: 14.22 MB / 0.5606 GB make -j1 -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.makefile (rm -f OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; mkfifo OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe ; head -c 1048576 < OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe >> ../files/OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.sim & ./OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_dev_OpenIPSL.Examples.PSATSystems.Discretization.FourthOrder_AVRII_Discrete.pipe 2>&1)