Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_2.Example_2.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.Tutorial.Example_2.Example_2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="OpenIPSL_2.0.0_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_2.0.0_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 3.2.3+maint.om/package.mo): time 0.002635/0.002635, allocations: 178.4 kB / 7.453 MB, free: 2.469 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.216/1.216, allocations: 205.2 MB / 213.1 MB, free: 13.92 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.001013/0.001013, allocations: 103 kB / 261.1 MB, free: 13.55 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.0659/0.0659, allocations: 12.59 MB / 321.6 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/OpenIPSL 2.0.0/package.mo): time 0.3025/0.3025, allocations: 78.04 MB / 450.4 MB, free: 3.207 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.342e-06/6.793e-06, allocations: 0 / 0.5141 GB, free: 29.99 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1459/0.1459, allocations: 69.32 MB / 0.5818 GB, free: 8.773 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4168/0.5628, allocations: 101.9 MB / 0.6814 GB, free: 6.223 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/0.563, allocations: 77.98 kB / 0.6814 GB, free: 6.184 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.08114/0.6442, allocations: 28.47 MB / 0.7092 GB, free: 14.81 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001798/0.6444, allocations: 16 kB / 0.7092 GB, free: 14.8 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.005356/0.6498, allocations: 1.508 MB / 0.7107 GB, free: 13.33 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.824e-05/0.6498, allocations: 15.97 kB / 0.7107 GB, free: 13.32 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003188/0.653, allocations: 428.4 kB / 0.7111 GB, free: 12.93 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002604/0.6557, allocations: 0.8812 MB / 0.712 GB, free: 12.25 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003754/0.656, allocations: 222.4 kB / 0.7122 GB, free: 11.99 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003244/0.6564, allocations: 42.94 kB / 0.7123 GB, free: 11.95 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001857/0.6583, allocations: 0.7519 MB / 0.713 GB, free: 11.52 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001657/0.6599, allocations: 0.7698 MB / 0.7137 GB, free: 11 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.002e-05/0.66, allocations: 0 / 0.7137 GB, free: 11 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.002e-05/0.6601, allocations: 0 / 0.7137 GB, free: 11 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.85e-05/0.6601, allocations: 12 kB / 0.7138 GB, free: 10.98 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008164/0.6683, allocations: 3.675 MB / 0.7173 GB, free: 8.27 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002039/0.6703, allocations: 0.9281 MB / 0.7182 GB, free: 7.68 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007968/0.6712, allocations: 472.9 kB / 0.7187 GB, free: 7.434 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001146/0.6713, allocations: 12.64 kB / 0.7187 GB, free: 7.418 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.364e-05/0.6714, allocations: 45.97 kB / 0.7188 GB, free: 7.371 MB / 458.7 MB Notification: Performance of pre-optimization done (n=76): time 4.909e-06/0.6714, allocations: 0 / 0.7188 GB, free: 7.371 MB / 458.7 MB Notification: Performance of matching and sorting (n=76): time 0.007146/0.6785, allocations: 2.18 MB / 0.7209 GB, free: 5.602 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.6787, allocations: 111.5 kB / 0.721 GB, free: 5.465 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002324/0.681, allocations: 0.8696 MB / 0.7218 GB, free: 4.852 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002301/0.6813, allocations: 25.7 kB / 0.7219 GB, free: 4.82 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003836/0.6817, allocations: 299.5 kB / 0.7222 GB, free: 4.566 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000513/0.6822, allocations: 259.9 kB / 0.7224 GB, free: 4.34 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.691e-05/0.6823, allocations: 0 / 0.7224 GB, free: 4.34 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.6825, allocations: 344.2 kB / 0.7227 GB, free: 4.012 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007981/0.6833, allocations: 420.7 kB / 0.7231 GB, free: 3.801 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008986/0.6842, allocations: 0.5137 MB / 0.7236 GB, free: 3.477 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009099/0.6851, allocations: 459 kB / 0.7241 GB, free: 3.234 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.592e-06/0.6851, allocations: 32 / 0.7241 GB, free: 3.234 MB / 458.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.007853/0.693, allocations: 2.423 MB / 0.7264 GB, free: 1.266 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005468/0.6936, allocations: 0.6242 MB / 0.727 GB, free: 0.6094 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.917e-05/0.6936, allocations: 0 / 0.727 GB, free: 0.6094 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004879/0.6985, allocations: 1.033 MB / 0.7281 GB, free: 15.71 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001196/0.6997, allocations: 159.5 kB / 0.7282 GB, free: 15.56 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00919/0.7089, allocations: 4.135 MB / 0.7322 GB, free: 12.37 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002023/0.711, allocations: 167.2 kB / 0.7324 GB, free: 12.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003026/0.7113, allocations: 23.94 kB / 0.7324 GB, free: 12.18 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.7114, allocations: 7.125 kB / 0.7324 GB, free: 12.18 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008273/0.7196, allocations: 2.277 MB / 0.7347 GB, free: 10.35 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.373e-05/0.7197, allocations: 4 kB / 0.7347 GB, free: 10.34 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00447/0.7242, allocations: 1.029 MB / 0.7357 GB, free: 9.305 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001089/0.7253, allocations: 151.8 kB / 0.7358 GB, free: 9.156 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009251/0.7346, allocations: 4.132 MB / 0.7398 GB, free: 4.891 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001871/0.7365, allocations: 143.3 kB / 0.74 GB, free: 4.75 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002491/0.7368, allocations: 27.98 kB / 0.74 GB, free: 4.723 MB / 474.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.0004893/0.7373, allocations: 123.4 kB / 0.7401 GB, free: 4.598 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005533/0.7378, allocations: 110.6 kB / 0.7402 GB, free: 4.488 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006702/0.7445, allocations: 2.255 MB / 0.7424 GB, free: 2.215 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/0.7446, allocations: 8 kB / 0.7424 GB, free: 2.207 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.018e-05/0.7446, allocations: 8 kB / 0.7424 GB, free: 2.199 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.459e-05/0.7446, allocations: 3.984 kB / 0.7425 GB, free: 2.195 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009617/0.7542, allocations: 3.723 MB / 0.7461 GB, free: 14.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.7543, allocations: 0 / 0.7461 GB, free: 14.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009107/0.7552, allocations: 111.8 kB / 0.7462 GB, free: 14.29 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003156/0.7584, allocations: 0.8613 MB / 0.747 GB, free: 13.42 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001464/0.7586, allocations: 11.98 kB / 0.747 GB, free: 13.41 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006617/0.7652, allocations: 3.123 MB / 0.7501 GB, free: 10.16 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.743e-06/0.7652, allocations: 4 kB / 0.7501 GB, free: 10.16 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008224/0.7735, allocations: 2.933 MB / 0.753 GB, free: 7.195 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00094/0.7745, allocations: 219.5 kB / 0.7532 GB, free: 6.961 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006077/0.7751, allocations: 15.98 kB / 0.7532 GB, free: 6.945 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001836/0.777, allocations: 119.8 kB / 0.7533 GB, free: 6.828 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003411/0.7773, allocations: 76.53 kB / 0.7534 GB, free: 6.754 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001168/0.7775, allocations: 23.97 kB / 0.7534 GB, free: 6.73 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.001807/0.7793, allocations: 0.6588 MB / 0.754 GB, free: 6.062 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.002768/0.7821, allocations: 0.4952 MB / 0.7545 GB, free: 5.566 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.0005412/0.7826, allocations: 145.9 kB / 0.7547 GB, free: 5.418 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.008372/0.791, allocations: 3.003 MB / 0.7576 GB, free: 2.305 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.7911, allocations: 0 / 0.7576 GB, free: 2.305 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0031/0.7942, allocations: 1.191 MB / 0.7588 GB, free: 1.059 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001259/0.7954, allocations: 87.22 kB / 0.7588 GB, free: 0.9766 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007248/0.8027, allocations: 1.962 MB / 0.7608 GB, free: 14.97 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001565/0.8043, allocations: 1.176 MB / 0.7619 GB, free: 13.76 MB / 0.4948 GB Notification: Performance of SimCode: time 1.392e-06/0.8043, allocations: 0 / 0.7619 GB, free: 13.76 MB / 0.4948 GB Notification: Performance of Templates: time 0.05141/0.8557, allocations: 25.86 MB / 0.7872 GB, free: 3.922 MB / 0.5105 GB make -j1 -f OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_2.Example_2.makefile (rm -f OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe ; mkfifo OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe ; head -c 1048576 < OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe >> ../files/OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_2.Example_2.sim & ./OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_2.Example_2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > OpenIPSL_2.0.0_OpenIPSL.Examples.Tutorial.Example_2.Example_2.pipe 2>&1)