Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo", uses=false) Using package OpenIPSL with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI") translateModel(OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009883/0.0009883, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.282/1.282, allocations: 205.2 MB / 218.5 MB, free: 9.215 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008007/0.0008008, allocations: 93.83 kB / 266.6 MB, free: 9.281 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06597/0.06597, allocations: 12.59 MB / 327.3 MB, free: 12.48 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.281/0.281, allocations: 78.02 MB / 456.1 MB, free: 14.91 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.722e-05/2.726e-05, allocations: 4 kB / 0.5218 GB, free: 23.78 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1003, allocations: 69.34 MB / 0.5895 GB, free: 2.48 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3533/0.4537, allocations: 99.99 MB / 0.6871 GB, free: 15.43 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000195/0.4539, allocations: 84.94 kB / 0.6872 GB, free: 15.38 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1163/0.5702, allocations: 34.21 MB / 0.7206 GB, free: 2.5 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.025e-06/0.5702, allocations: 3.984 kB / 0.7206 GB, free: 2.496 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.188e-05/0.5703, allocations: 23.94 kB / 0.7206 GB, free: 2.473 MB / 458.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.003998/0.5743, allocations: 1.699 MB / 0.7223 GB, free: 0.8242 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/0.5744, allocations: 15.98 kB / 0.7223 GB, free: 0.8086 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003346/0.5777, allocations: 0.5615 MB / 0.7229 GB, free: 296 kB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001289/0.579, allocations: 0.7832 MB / 0.7236 GB, free: 15.62 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002291/0.5793, allocations: 233.6 kB / 0.7239 GB, free: 15.39 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001479/0.5794, allocations: 78.42 kB / 0.7239 GB, free: 15.34 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/0.5809, allocations: 0.9299 MB / 0.7248 GB, free: 14.72 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.178e-05/0.581, allocations: 3.938 kB / 0.7248 GB, free: 14.71 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.193e-05/0.5811, allocations: 30.88 kB / 0.7249 GB, free: 14.71 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.534e-05/0.5811, allocations: 19.95 kB / 0.7249 GB, free: 14.69 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001345/0.5824, allocations: 0.8405 MB / 0.7257 GB, free: 14.15 MB / 474.7 MB Warning: The model contains alias variables with conflicting start and/or 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.005986/0.5884, allocations: 3.835 MB / 0.7295 GB, free: 11.07 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007215/0.5957, allocations: 2.605 MB / 0.732 GB, free: 8.695 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008229/0.5965, allocations: 0.5422 MB / 0.7325 GB, free: 8.395 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001105/0.5966, allocations: 16.7 kB / 0.7325 GB, free: 8.379 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.747e-05/0.5967, allocations: 52.59 kB / 0.7326 GB, free: 8.324 MB / 474.7 MB Notification: Performance of pre-optimization done (n=93): time 3.025e-06/0.5967, allocations: 3.938 kB / 0.7326 GB, free: 8.32 MB / 474.7 MB Notification: Performance of matching and sorting (n=93): time 0.01175/0.6085, allocations: 3.883 MB / 0.7364 GB, free: 4.961 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.429e-05/0.6085, allocations: 145.2 kB / 0.7365 GB, free: 4.789 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001117/0.6097, allocations: 0.8708 MB / 0.7374 GB, free: 4.129 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001004/0.6098, allocations: 43.58 kB / 0.7374 GB, free: 4.094 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002885/0.6101, allocations: 0.5095 MB / 0.7379 GB, free: 3.816 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00028/0.6104, allocations: 333.6 kB / 0.7382 GB, free: 3.527 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.558e-05/0.6104, allocations: 17.75 kB / 0.7383 GB, free: 3.523 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.6105, allocations: 342 kB / 0.7386 GB, free: 3.199 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007093/0.6113, allocations: 438.8 kB / 0.739 GB, free: 2.961 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007637/0.612, allocations: 0.5667 MB / 0.7396 GB, free: 2.559 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007752/0.6128, allocations: 0.5406 MB / 0.7401 GB, free: 2.207 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.6128, allocations: 0 / 0.7401 GB, free: 2.207 MB / 474.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.01193/0.6248, allocations: 4.063 MB / 0.744 GB, free: 14.69 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004201/0.6252, allocations: 1.206 MB / 0.7452 GB, free: 13.42 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.6253, allocations: 4 kB / 0.7452 GB, free: 13.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005207/0.6305, allocations: 1.481 MB / 0.7467 GB, free: 12.12 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009481/0.6314, allocations: 171 kB / 0.7468 GB, free: 11.96 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01364/0.6451, allocations: 6.518 MB / 0.7532 GB, free: 5.762 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001516/0.6466, allocations: 187.1 kB / 0.7534 GB, free: 5.578 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001286/0.6468, allocations: 35.98 kB / 0.7534 GB, free: 5.543 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/0.6468, allocations: 4 kB / 0.7534 GB, free: 5.539 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01209/0.6589, allocations: 3.934 MB / 0.7573 GB, free: 1.586 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/0.659, allocations: 3.953 kB / 0.7573 GB, free: 1.582 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005015/0.664, allocations: 1.484 MB / 0.7587 GB, free: 96 kB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008485/0.6648, allocations: 159.7 kB / 0.7589 GB, free: 15.94 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01307/0.6779, allocations: 6.515 MB / 0.7652 GB, free: 9.281 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001434/0.6794, allocations: 187.1 kB / 0.7654 GB, free: 9.098 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.274e-05/0.6795, allocations: 39.92 kB / 0.7654 GB, free: 9.059 MB / 0.4948 GB Warning: Assuming fixed start value for the following 4 variables: order4.w:VARIABLE(start = 1.0 ) "Rotor speed [pu]" type: Real order4.e1d:VARIABLE(start = order4.e1d0 unit = "1" ) "d-axis transient voltage" type: Real order4.e1q:VARIABLE(start = order4.e1q0 unit = "1" ) "q-axis transient voltage" type: Real order4.delta:VARIABLE(start = order4.delta0 unit = "rad" ) "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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 84 * 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 {20 12} Notification: Performance of prepare postOptimizeDAE: time 0.0002995/0.6798, allocations: 183.5 kB / 0.7656 GB, free: 8.867 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002265/0.68, allocations: 126.5 kB / 0.7657 GB, free: 8.742 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01182/0.6919, allocations: 4.008 MB / 0.7697 GB, free: 4.711 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.6919, allocations: 15.95 kB / 0.7697 GB, free: 4.695 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.358e-06/0.6919, allocations: 8 kB / 0.7697 GB, free: 4.688 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.551e-05/0.6919, allocations: 3.984 kB / 0.7697 GB, free: 4.684 MB / 0.4948 GB Warning: The model contains alias variables with conflicting start and/or 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.01365/0.7056, allocations: 5.61 MB / 0.7752 GB, free: 14.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.7056, allocations: 0 / 0.7752 GB, free: 14.96 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006463/0.7063, allocations: 111.8 kB / 0.7753 GB, free: 14.86 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004515/0.7108, allocations: 1.414 MB / 0.7766 GB, free: 13.44 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000118/0.7109, allocations: 20 kB / 0.7767 GB, free: 13.42 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01167/0.7226, allocations: 5.75 MB / 0.7823 GB, free: 7.527 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.7226, allocations: 0 / 0.7823 GB, free: 7.527 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0131/0.7357, allocations: 4.71 MB / 0.7869 GB, free: 2.777 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004497/0.7362, allocations: 231.2 kB / 0.7871 GB, free: 2.531 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000195/0.7364, allocations: 19.98 kB / 0.7871 GB, free: 2.512 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/0.7377, allocations: 139.8 kB / 0.7873 GB, free: 2.375 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005016/0.7382, allocations: 184.5 kB / 0.7874 GB, free: 2.191 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.237e-05/0.7383, allocations: 23.98 kB / 0.7875 GB, free: 2.168 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0009511/0.7392, allocations: 0.6817 MB / 0.7881 GB, free: 1.477 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.8e-07/0.7392, allocations: 0 / 0.7881 GB, free: 1.477 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001793/0.741, allocations: 0.6631 MB / 0.7888 GB, free: 0.8125 MB / 0.5105 GB 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 () * 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.0003017/0.7413, allocations: 159 kB / 0.7889 GB, free: 0.6445 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009151/0.7505, allocations: 3.624 MB / 0.7925 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.7505, allocations: 0 / 0.7925 GB, free: 12.95 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.003893/0.7544, allocations: 1.433 MB / 0.7939 GB, free: 11.48 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008497/0.7553, allocations: 108.5 kB / 0.794 GB, free: 11.38 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003236/0.7586, allocations: 1.772 MB / 0.7957 GB, free: 9.574 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006937/0.7593, allocations: 1.154 MB / 0.7968 GB, free: 8.387 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0008668/0.7602, allocations: 206.1 kB / 0.797 GB, free: 8.18 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001929/0.7604, allocations: 55.42 kB / 0.7971 GB, free: 8.125 MB / 0.5261 GB Notification: Performance of SimCode: time 6.72e-07/0.7604, allocations: 0 / 0.7971 GB, free: 8.125 MB / 0.5261 GB Notification: Performance of Templates: time 0.04171/0.8021, allocations: 27.63 MB / 0.824 GB, free: 12.48 MB / 0.5573 GB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.PSATSystems.TwoAreaOld.FourthOrder_AVRI.pipe 2>&1)