Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_OpenIPSL.Examples.Tutorial.Example_2.Example_2.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.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 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.Tutorial.Example_2.Example_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.Tutorial.Example_2.Example_2") translateModel(OpenIPSL.Examples.Tutorial.Example_2.Example_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="OpenIPSL_OpenIPSL.Examples.Tutorial.Example_2.Example_2") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003498/0.003498, allocations: 181.7 kB / 7.454 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 221.4 MB / 229.3 MB, free: 3.16 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 104.3 kB / 280.1 MB, free: 1.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 3.0.1/package.mo): time 0.4347/0.4347, allocations: 78.06 MB / 409 MB, free: 15.54 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.021e-06/6.051e-06, allocations: 0 / 484.3 MB, free: 4.434 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2858/0.2858, allocations: 69.35 MB / 0.5407 GB, free: 21.6 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1238/0.4097, allocations: 100.3 MB / 0.6387 GB, free: 4.547 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002297/0.41, allocations: 79.95 kB / 0.6388 GB, free: 4.469 MB / 458.7 MB Notification: Performance of FrontEnd: time 0.08802/0.498, allocations: 29.16 MB / 0.6673 GB, free: 7.125 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001316/0.4981, allocations: 20 kB / 0.6673 GB, free: 7.105 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.004438/0.5026, allocations: 1.504 MB / 0.6687 GB, free: 5.551 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/0.5026, allocations: 8.031 kB / 0.6688 GB, free: 5.543 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002858/0.5055, allocations: 430 kB / 0.6692 GB, free: 5.121 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00186/0.5074, allocations: 0.8721 MB / 0.67 GB, free: 4.195 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003047/0.5077, allocations: 219.5 kB / 0.6702 GB, free: 3.945 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002159/0.5079, allocations: 43.91 kB / 0.6703 GB, free: 3.902 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001622/0.5096, allocations: 0.7563 MB / 0.671 GB, free: 3.145 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001568/0.5111, allocations: 0.7664 MB / 0.6718 GB, free: 2.363 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.788e-05/0.5112, allocations: 3.938 kB / 0.6718 GB, free: 2.359 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.507e-05/0.5113, allocations: 0 / 0.6718 GB, free: 2.359 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.301e-05/0.5113, allocations: 16 kB / 0.6718 GB, free: 2.344 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1577/0.669, allocations: 3.682 MB / 0.6754 GB, free: 142.6 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001685/0.6707, allocations: 0.9273 MB / 0.6763 GB, free: 142.6 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006189/0.6713, allocations: 463.4 kB / 0.6767 GB, free: 142.6 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.07e-05/0.6714, allocations: 11.94 kB / 0.6767 GB, free: 142.6 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.468e-05/0.6715, allocations: 46.47 kB / 0.6768 GB, free: 142.6 MB / 490.7 MB Notification: Performance of pre-optimization done (n=76): time 2.826e-06/0.6715, allocations: 0 / 0.6768 GB, free: 142.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=76): time 0.00606/0.6776, allocations: 2.19 MB / 0.6789 GB, free: 142.5 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.41e-05/0.6776, allocations: 117.7 kB / 0.679 GB, free: 142.4 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001166/0.6788, allocations: 0.8628 MB / 0.6799 GB, free: 142.2 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001297/0.6789, allocations: 29.67 kB / 0.6799 GB, free: 142.2 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.6791, allocations: 297.5 kB / 0.6802 GB, free: 142.1 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002763/0.6794, allocations: 263 kB / 0.6804 GB, free: 141.9 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.254e-05/0.6794, allocations: 0 / 0.6804 GB, free: 141.9 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 5.684e-05/0.6795, allocations: 338.5 kB / 0.6807 GB, free: 141.6 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00063/0.6801, allocations: 422.1 kB / 0.6812 GB, free: 141.6 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006688/0.6808, allocations: 0.5105 MB / 0.6817 GB, free: 141.6 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007284/0.6816, allocations: 468.1 kB / 0.6821 GB, free: 141.5 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.6816, allocations: 0 / 0.6821 GB, free: 141.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.007111/0.6887, allocations: 2.423 MB / 0.6845 GB, free: 141.4 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001082/0.6888, allocations: 0.6171 MB / 0.6851 GB, free: 140.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.6888, allocations: 2.656 kB / 0.6851 GB, free: 140.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004289/0.6931, allocations: 1.032 MB / 0.6861 GB, free: 140.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001037/0.6942, allocations: 156 kB / 0.6862 GB, free: 140.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008243/0.7024, allocations: 4.139 MB / 0.6903 GB, free: 139.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001646/0.7041, allocations: 154.6 kB / 0.6904 GB, free: 139.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.325e-05/0.7042, allocations: 26.47 kB / 0.6904 GB, free: 139.4 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.416e-06/0.7042, allocations: 11.72 kB / 0.6905 GB, free: 139.4 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006821/0.7111, allocations: 2.264 MB / 0.6927 GB, free: 139.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.7111, allocations: 3.781 kB / 0.6927 GB, free: 139.2 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004312/0.7154, allocations: 1.037 MB / 0.6937 GB, free: 139.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/0.7165, allocations: 145.1 kB / 0.6938 GB, free: 139.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008071/0.7245, allocations: 4.131 MB / 0.6979 GB, free: 137.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001682/0.7263, allocations: 144.4 kB / 0.698 GB, free: 137.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.7264, allocations: 23.31 kB / 0.698 GB, free: 137.8 MB / 490.7 MB Warning: Assuming fixed start value for the following 1 variables: G1.avr.vref:VARIABLE(unit = "1" fixed = false protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {8 13} Notification: Performance of prepare postOptimizeDAE: time 0.0002986/0.7267, allocations: 124.1 kB / 0.6981 GB, free: 137.6 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002329/0.7269, allocations: 106.1 kB / 0.6982 GB, free: 137.6 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006622/0.7335, allocations: 2.262 MB / 0.7004 GB, free: 137.4 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.571e-05/0.7336, allocations: 12.28 kB / 0.7005 GB, free: 137.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.327e-05/0.7336, allocations: 3.5 kB / 0.7005 GB, free: 137.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.574e-05/0.7336, allocations: 8.359 kB / 0.7005 GB, free: 137.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009223/0.7429, allocations: 3.707 MB / 0.7041 GB, free: 136.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.028e-05/0.7429, allocations: 4.594 kB / 0.7041 GB, free: 136.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009778/0.7439, allocations: 116.7 kB / 0.7042 GB, free: 136.9 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003261/0.7472, allocations: 0.8731 MB / 0.7051 GB, free: 136.8 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001627/0.7474, allocations: 7.531 kB / 0.7051 GB, free: 136.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006263/0.7536, allocations: 3.115 MB / 0.7081 GB, free: 134.9 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.7537, allocations: 3.906 kB / 0.7081 GB, free: 134.9 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00784/0.7615, allocations: 2.935 MB / 0.711 GB, free: 133.8 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004968/0.7621, allocations: 222.3 kB / 0.7112 GB, free: 133.6 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004295/0.7625, allocations: 10.33 kB / 0.7112 GB, free: 133.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001579/0.7641, allocations: 120.8 kB / 0.7113 GB, free: 133.6 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002435/0.7644, allocations: 64.92 kB / 0.7114 GB, free: 133.6 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.504e-05/0.7645, allocations: 26.5 kB / 0.7114 GB, free: 133.6 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.001151/0.7656, allocations: 0.6561 MB / 0.712 GB, free: 133.3 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002002/0.7676, allocations: 0.4968 MB / 0.7125 GB, free: 133.2 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 12 (G1.avr.vm,G1.avr.vr,G1.avr.vf1,G1.machine.delta,G1.machine.w,G1.machine.e1q,G1.machine.e1d,G1.machine.e2q,G1.machine.e2d,G1.pss.imLeadLag.TF.x_scaled[1],G1.pss.imLeadLag1.TF.x_scaled[1],G1.pss.derivativeLag.TF.x_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(9,48.1%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003087/0.768, allocations: 138.8 kB / 0.7127 GB, free: 133.1 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007452/0.7754, allocations: 3.012 MB / 0.7156 GB, free: 131.7 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.022e-06/0.7755, allocations: 0 / 0.7156 GB, free: 131.7 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003028/0.7785, allocations: 1.187 MB / 0.7168 GB, free: 131.1 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001245/0.7798, allocations: 86.83 kB / 0.7168 GB, free: 131.1 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00631/0.7861, allocations: 1.963 MB / 0.7188 GB, free: 130.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001184/0.7873, allocations: 1.17 MB / 0.7199 GB, free: 129.5 MB / 490.7 MB Notification: Performance of SimCode: time 9.11e-07/0.7874, allocations: 4 kB / 0.7199 GB, free: 129.5 MB / 490.7 MB Notification: Performance of Templates: time 0.04424/0.8316, allocations: 25.83 MB / 0.7451 GB, free: 122.4 MB / 490.7 MB make -j1 -f OpenIPSL_OpenIPSL.Examples.Tutorial.Example_2.Example_2.makefile (rm -f OpenIPSL_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe ; mkfifo OpenIPSL_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe ; head -c 1048576 < OpenIPSL_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe >> ../files/OpenIPSL_OpenIPSL.Examples.Tutorial.Example_2.Example_2.sim & ./OpenIPSL_OpenIPSL.Examples.Tutorial.Example_2.Example_2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe 2>&1)