Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.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.TwoAreaOld.FourthOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001416/0.001416, allocations: 177.2 kB / 15.78 MB, free: 6.352 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.442/1.442, allocations: 223.3 MB / 239.8 MB, free: 0 / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007881/0.000788, allocations: 94.11 kB / 290.9 MB, free: 4.645 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.1.0-master/package.mo): time 0.5113/0.5113, allocations: 78.62 MB / 420.7 MB, free: 36.55 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003635/0.0003637, allocations: 16 kB / 0.4888 GB, free: 7.262 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1395/0.1399, allocations: 69.37 MB / 0.5565 GB, free: 1.832 MB / 426.7 MB Notification: Performance of NFInst.instantiate(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI): time 0.006146/0.1461, allocations: 5.877 MB / 0.5623 GB, free: 11.93 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.004054/0.1501, allocations: 1.936 MB / 0.5642 GB, free: 9.992 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001064/0.1512, allocations: 12 kB / 0.5642 GB, free: 9.98 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009557/0.1522, allocations: 174.8 kB / 0.5643 GB, free: 9.809 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002338/0.1546, allocations: 0.651 MB / 0.565 GB, free: 9.156 MB / 442.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.001491/0.1561, allocations: 0.5443 MB / 0.5655 GB, free: 8.617 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.002171/0.1583, allocations: 1.382 MB / 0.5668 GB, free: 7.23 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006365/0.1589, allocations: 265.1 kB / 0.5671 GB, free: 6.961 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001091/0.16, allocations: 0.5405 MB / 0.5676 GB, free: 6.418 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001229/0.1613, allocations: 0.7195 MB / 0.5683 GB, free: 5.695 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004105/0.1617, allocations: 59.98 kB / 0.5684 GB, free: 5.637 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007989/0.1625, allocations: 175.9 kB / 0.5686 GB, free: 5.465 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000428/0.1629, allocations: 262.8 kB / 0.5688 GB, free: 5.207 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004622/0.1634, allocations: 229 kB / 0.569 GB, free: 4.977 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00168/0.1651, allocations: 1.212 MB / 0.5702 GB, free: 3.762 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.1651, allocations: 4 kB / 0.5702 GB, free: 3.758 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1651, allocations: 0 / 0.5702 GB, free: 3.758 MB / 442.7 MB Notification: Performance of Transformations before backend: time 6.84e-05/0.1652, allocations: 0 / 0.5702 GB, free: 3.758 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 187 * Number of variables: 187 Notification: Performance of Generate backend data structure: time 0.008896/0.1741, allocations: 2.478 MB / 0.5726 GB, free: 1.211 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.1741, allocations: 8.031 kB / 0.5726 GB, free: 1.203 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005342/0.1795, allocations: 0.7865 MB / 0.5734 GB, free: 424 kB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.304/0.4836, allocations: 0.8353 MB / 0.5742 GB, free: 43.94 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002761/0.4839, allocations: 236.7 kB / 0.5744 GB, free: 43.78 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001763/0.4841, allocations: 82.56 kB / 0.5745 GB, free: 43.78 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002057/0.4861, allocations: 1.153 MB / 0.5757 GB, free: 43.7 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.258e-05/0.4862, allocations: 0 / 0.5757 GB, free: 43.7 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.6e-05/0.4863, allocations: 32.44 kB / 0.5757 GB, free: 43.7 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.441e-05/0.4863, allocations: 18.94 kB / 0.5757 GB, free: 43.7 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001968/0.4882, allocations: 1.069 MB / 0.5767 GB, free: 43.69 MB / 442.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.005885/0.4941, allocations: 3.94 MB / 0.5806 GB, free: 42.55 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007724/0.5019, allocations: 2.883 MB / 0.5834 GB, free: 42.09 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001481/0.5034, allocations: 0.7464 MB / 0.5841 GB, free: 42.06 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.121e-05/0.5035, allocations: 21.34 kB / 0.5842 GB, free: 42.06 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/0.5035, allocations: 49.08 kB / 0.5842 GB, free: 42.01 MB / 442.7 MB Notification: Performance of pre-optimization done (n=93): time 3.326e-06/0.5035, allocations: 0 / 0.5842 GB, free: 42.01 MB / 442.7 MB Notification: Performance of matching and sorting (n=93): time 0.02973/0.5333, allocations: 8.36 MB / 0.5924 GB, free: 41.38 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.303e-05/0.5334, allocations: 144.4 kB / 0.5925 GB, free: 41.22 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001605/0.535, allocations: 1.07 MB / 0.5936 GB, free: 41.06 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002198/0.5352, allocations: 42.45 kB / 0.5936 GB, free: 41.03 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003363/0.5355, allocations: 0.4922 MB / 0.5941 GB, free: 40.83 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002561/0.5358, allocations: 347 kB / 0.5944 GB, free: 40.57 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.332e-05/0.5359, allocations: 30.5 kB / 0.5944 GB, free: 40.54 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.81e-05/0.536, allocations: 364.6 kB / 0.5948 GB, free: 40.21 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001387/0.5374, allocations: 0.8151 MB / 0.5956 GB, free: 39.93 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001447/0.5388, allocations: 0.9925 MB / 0.5965 GB, free: 39.48 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001537/0.5404, allocations: 0.9577 MB / 0.5975 GB, free: 39.04 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/0.5404, allocations: 3.344 kB / 0.5975 GB, free: 39.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=186) (initialization): time 0.01323/0.5536, allocations: 5.133 MB / 0.6025 GB, free: 37.79 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001234/0.5538, allocations: 235.3 kB / 0.6027 GB, free: 37.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.423e-05/0.5538, allocations: 9.391 kB / 0.6027 GB, free: 37.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005789/0.5596, allocations: 1.854 MB / 0.6045 GB, free: 37.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001359/0.561, allocations: 280.5 kB / 0.6048 GB, free: 37.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01877/0.5798, allocations: 8.776 MB / 0.6134 GB, free: 33.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001839/0.5816, allocations: 229.7 kB / 0.6136 GB, free: 33.37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001311/0.5818, allocations: 56.41 kB / 0.6137 GB, free: 33.36 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.178e-05/0.5818, allocations: 4.625 kB / 0.6137 GB, free: 33.36 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01444/0.5962, allocations: 4.98 MB / 0.6185 GB, free: 32.19 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.928e-05/0.5963, allocations: 3.406 kB / 0.6185 GB, free: 32.19 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006802/0.6031, allocations: 1.849 MB / 0.6203 GB, free: 31.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001524/0.6047, allocations: 270.2 kB / 0.6206 GB, free: 31.86 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02019/0.6249, allocations: 8.8 MB / 0.6292 GB, free: 28.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001975/0.6269, allocations: 213.2 kB / 0.6294 GB, free: 28.04 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001382/0.6271, allocations: 53.94 kB / 0.6294 GB, free: 28.02 MB / 442.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 order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" fixed = true ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" fixed = true ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(flow=false start = order4.delta0 unit = "rad" fixed = true ) "Rotor angle" 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (155): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {19 13} Notification: Performance of prepare postOptimizeDAE: time 0.0007317/0.6278, allocations: 372.2 kB / 0.6298 GB, free: 27.71 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002629/0.6281, allocations: 126.2 kB / 0.6299 GB, free: 27.64 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0126/0.6407, allocations: 4.596 MB / 0.6344 GB, free: 24.14 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.969e-05/0.6408, allocations: 12.52 kB / 0.6344 GB, free: 24.13 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.099e-05/0.6408, allocations: 5.031 kB / 0.6344 GB, free: 24.13 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.679e-05/0.6408, allocations: 7.938 kB / 0.6344 GB, free: 24.12 MB / 442.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.01466/0.6555, allocations: 6.236 MB / 0.6405 GB, free: 17.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.727e-05/0.6556, allocations: 0 / 0.6405 GB, free: 17.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00078/0.6564, allocations: 112.3 kB / 0.6406 GB, free: 17.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005178/0.6616, allocations: 1.789 MB / 0.6424 GB, free: 15.89 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002338/0.6618, allocations: 20 kB / 0.6424 GB, free: 15.87 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01525/0.6771, allocations: 7.617 MB / 0.6498 GB, free: 8.121 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.608e-06/0.6771, allocations: 0 / 0.6498 GB, free: 8.121 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01421/0.6914, allocations: 5.518 MB / 0.6552 GB, free: 2.578 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006924/0.6921, allocations: 231.2 kB / 0.6554 GB, free: 2.332 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002392/0.6924, allocations: 20 kB / 0.6555 GB, free: 2.312 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001198/0.6936, allocations: 135.9 kB / 0.6556 GB, free: 2.18 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005664/0.6942, allocations: 180.7 kB / 0.6558 GB, free: 2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.393e-05/0.6942, allocations: 28 kB / 0.6558 GB, free: 1.973 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001015/0.6953, allocations: 0.7194 MB / 0.6565 GB, free: 1.246 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.6953, allocations: 0 / 0.6565 GB, free: 1.246 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002265/0.6975, allocations: 0.7467 MB / 0.6572 GB, free: 0.5 MB / 442.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,aVRTypeIchange1_1.firstOrder.y,aVRTypeIchange1_1.firstOrder2.y,aVRTypeIchange1_1.transferFunction.x_scaled[1],aVRTypeIchange1_1.transferFunction.x_scaled[2]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(19,24.4%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002624/0.6978, allocations: 144 kB / 0.6573 GB, free: 360 kB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01195/0.7098, allocations: 4.835 MB / 0.6621 GB, free: 11.47 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.054e-06/0.7098, allocations: 0 / 0.6621 GB, free: 11.47 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004503/0.7143, allocations: 1.654 MB / 0.6637 GB, free: 9.797 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001042/0.7154, allocations: 116.5 kB / 0.6638 GB, free: 9.684 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004199/0.7196, allocations: 2.723 MB / 0.6665 GB, free: 6.973 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007571/0.7204, allocations: 1.133 MB / 0.6676 GB, free: 5.812 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003484/0.7208, allocations: 83.41 kB / 0.6676 GB, free: 5.73 MB / 458.7 MB Notification: Performance of SimCode: time 1.994e-06/0.7208, allocations: 0 / 0.6676 GB, free: 5.73 MB / 458.7 MB Notification: Performance of Templates: time 0.02823/0.749, allocations: 21.81 MB / 0.6889 GB, free: 32 kB / 474.7 MB make -j1 -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.makefile (rm -f OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe ; mkfifo OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe >> ../files/OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.sim & ./OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_release_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe 2>&1)