Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [: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/Modelica 3.1.0+maint.om/package.mo): time 0.7303/0.7303, allocations: 110.8 MB / 118 MB, free: 14.56 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001888/0.001888, allocations: 152 kB / 143.7 MB, free: 4.891 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 5.55e-06/5.56e-06, allocations: 0 / 173.4 MB, free: 23.06 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04728/0.0473, allocations: 25.17 MB / 198.6 MB, free: 13.96 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1435/0.1909, allocations: 34.92 MB / 233.5 MB, free: 4.387 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000204/0.1911, allocations: 61.89 kB / 233.6 MB, free: 4.387 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.02277/0.2139, allocations: 8.027 MB / 241.6 MB, free: 3.422 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.133e-05/0.214, allocations: 11.78 kB / 241.6 MB, free: 3.418 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.001426/0.2154, allocations: 0.7917 MB / 242.4 MB, free: 2.836 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.2155, allocations: 7.406 kB / 242.4 MB, free: 2.836 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001201/0.2156, allocations: 62.33 kB / 242.5 MB, free: 2.805 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003988/0.216, allocations: 326.4 kB / 242.8 MB, free: 2.531 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.579e-05/0.2161, allocations: 18.75 kB / 242.8 MB, free: 2.531 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.705e-05/0.2161, allocations: 30.08 kB / 242.9 MB, free: 2.523 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008129/0.217, allocations: 0.5164 MB / 243.4 MB, free: 2.465 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007167/0.2177, allocations: 0.513 MB / 243.9 MB, free: 2.297 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.322e-05/0.2177, allocations: 11.7 kB / 243.9 MB, free: 2.289 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.41e-05/0.2178, allocations: 4 kB / 243.9 MB, free: 2.285 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.297e-05/0.2178, allocations: 7.688 kB / 243.9 MB, free: 2.285 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0021/0.2199, allocations: 1.271 MB / 245.2 MB, free: 1.586 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006262/0.2206, allocations: 342.6 kB / 245.5 MB, free: 1.547 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003315/0.2209, allocations: 258.4 kB / 245.8 MB, free: 1.523 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.884e-05/0.221, allocations: 15.02 kB / 245.8 MB, free: 1.523 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.849e-05/0.221, allocations: 34.44 kB / 245.8 MB, free: 1.484 MB / 170.7 MB Notification: Performance of pre-optimization done (n=55): time 1.884e-06/0.221, allocations: 0 / 245.8 MB, free: 1.484 MB / 170.7 MB Notification: Performance of matching and sorting (n=61): time 0.003566/0.2246, allocations: 1.847 MB / 247.7 MB, free: 0.6914 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.124e-05/0.2246, allocations: 59.66 kB / 247.7 MB, free: 0.6289 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002169/0.2248, allocations: 253.2 kB / 248 MB, free: 0.5039 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 6.425e-05/0.2249, allocations: 36.5 kB / 248 MB, free: 480 kB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.709e-05/0.225, allocations: 163.8 kB / 248.2 MB, free: 344 kB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001212/0.2251, allocations: 210.8 kB / 248.4 MB, free: 192 kB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.19e-05/0.2251, allocations: 4.734 kB / 248.4 MB, free: 188 kB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.2253, allocations: 350.2 kB / 248.7 MB, free: 15.86 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004252/0.2257, allocations: 272.5 kB / 249 MB, free: 15.84 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004024/0.2261, allocations: 322.7 kB / 249.3 MB, free: 15.8 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004786/0.2266, allocations: 216.6 kB / 249.5 MB, free: 15.76 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.2266, allocations: 0 / 249.5 MB, free: 15.76 MB / 186.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001468/0.2281, allocations: 0.8052 MB / 250.3 MB, free: 15.62 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.056e-05/0.2281, allocations: 9.125 kB / 250.3 MB, free: 15.62 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.237e-06/0.2281, allocations: 9.25 kB / 250.3 MB, free: 15.61 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001262/0.2294, allocations: 0.7075 MB / 251 MB, free: 15.44 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004486/0.2299, allocations: 108.8 kB / 251.2 MB, free: 15.41 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001798/0.2317, allocations: 1.178 MB / 252.3 MB, free: 14.8 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007513/0.2324, allocations: 145.5 kB / 252.5 MB, free: 14.76 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.848e-05/0.2325, allocations: 32.3 kB / 252.5 MB, free: 14.75 MB / 186.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch3.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * 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 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0002594/0.2328, allocations: 125.2 kB / 252.6 MB, free: 14.64 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.2329, allocations: 45.44 kB / 252.7 MB, free: 14.61 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001443/0.2331, allocations: 59.98 kB / 252.7 MB, free: 14.6 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.2331, allocations: 5.5 kB / 252.7 MB, free: 14.6 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.844e-06/0.2331, allocations: 4 kB / 252.7 MB, free: 14.6 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.2331, allocations: 9.266 kB / 252.7 MB, free: 14.59 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002404/0.2355, allocations: 1.354 MB / 254.1 MB, free: 14.05 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.2355, allocations: 0 / 254.1 MB, free: 14.05 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004705/0.236, allocations: 96.53 kB / 254.2 MB, free: 14.02 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001171/0.2372, allocations: 0.6879 MB / 254.9 MB, free: 13.86 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.052e-05/0.2373, allocations: 20.89 kB / 254.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001601/0.2389, allocations: 1.15 MB / 256.1 MB, free: 13.21 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.2389, allocations: 0 / 256.1 MB, free: 13.21 MB / 186.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001981/0.2409, allocations: 1.151 MB / 257.2 MB, free: 12.93 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003004/0.2412, allocations: 192.1 kB / 257.4 MB, free: 12.78 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001274/0.2414, allocations: 9.875 kB / 257.4 MB, free: 12.78 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000716/0.2421, allocations: 145.1 kB / 257.5 MB, free: 12.73 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003023/0.2424, allocations: 162 kB / 257.7 MB, free: 12.64 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.473e-05/0.2425, allocations: 31.22 kB / 257.7 MB, free: 12.63 MB / 186.7 MB Notification: Performance of sort global known variables: time 0.0002184/0.2427, allocations: 193.2 kB / 257.9 MB, free: 12.54 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0006028/0.2433, allocations: 129.4 kB / 258 MB, free: 12.53 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (J1.phi,J1.w,clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * 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 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002675/0.2436, allocations: 131.6 kB / 258.2 MB, free: 12.43 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001142/0.2447, allocations: 0.6442 MB / 258.8 MB, free: 12.38 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.2447, allocations: 1.156 kB / 258.8 MB, free: 12.38 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006237/0.2454, allocations: 355.9 kB / 259.2 MB, free: 12.35 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005351/0.2459, allocations: 69.98 kB / 259.2 MB, free: 12.32 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002564/0.2485, allocations: 1.145 MB / 260.4 MB, free: 11.64 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005619/0.2491, allocations: 0.8823 MB / 261.3 MB, free: 10.74 MB / 186.7 MB Notification: Performance of SimCode: time 8.72e-07/0.2491, allocations: 0 / 261.3 MB, free: 10.74 MB / 186.7 MB Notification: Performance of Templates: time 0.02446/0.2736, allocations: 10.89 MB / 272.2 MB, free: 15.88 MB / 202.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1)