Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") [: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.7483/0.7483, allocations: 110.8 MB / 118 MB, free: 14.55 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001823/0.001823, allocations: 164 kB / 143.7 MB, free: 4.883 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 7.764e-06/7.794e-06, allocations: 0 / 173.4 MB, free: 23.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04673/0.04676, allocations: 25.17 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1456/0.1924, allocations: 34.99 MB / 233.6 MB, free: 4.406 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002222/0.1927, allocations: 63.97 kB / 233.7 MB, free: 4.406 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.01836/0.2111, allocations: 6.301 MB / 240 MB, free: 3.992 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.684e-05/0.2112, allocations: 3.875 kB / 240 MB, free: 3.992 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001026/0.2122, allocations: 0.5491 MB / 240.5 MB, free: 3.559 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.2123, allocations: 11.69 kB / 240.5 MB, free: 3.555 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.074e-05/0.2123, allocations: 31.86 kB / 240.6 MB, free: 3.539 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003083/0.2127, allocations: 245.2 kB / 240.8 MB, free: 3.32 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.75e-05/0.2127, allocations: 7.875 kB / 240.8 MB, free: 3.32 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.478e-05/0.2128, allocations: 19.77 kB / 240.8 MB, free: 3.32 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004124/0.2132, allocations: 225.8 kB / 241.1 MB, free: 3.32 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003959/0.2136, allocations: 287.9 kB / 241.3 MB, free: 3.223 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.2136, allocations: 0 / 241.3 MB, free: 3.223 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.977e-05/0.2136, allocations: 4 kB / 241.3 MB, free: 3.219 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.193e-05/0.2137, allocations: 11.7 kB / 241.3 MB, free: 3.215 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001276/0.215, allocations: 0.792 MB / 242.1 MB, free: 2.762 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003478/0.2153, allocations: 294.4 kB / 242.4 MB, free: 2.715 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002171/0.2156, allocations: 168.4 kB / 242.6 MB, free: 2.695 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.583e-05/0.2156, allocations: 7.75 kB / 242.6 MB, free: 2.691 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.244e-05/0.2156, allocations: 42.78 kB / 242.6 MB, free: 2.648 MB / 170.7 MB Notification: Performance of pre-optimization done (n=36): time 2.034e-06/0.2156, allocations: 0 / 242.6 MB, free: 2.648 MB / 170.7 MB Notification: Performance of matching and sorting (n=42): time 0.002275/0.2179, allocations: 1.333 MB / 244 MB, free: 1.988 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.429e-05/0.218, allocations: 88.77 kB / 244.1 MB, free: 1.891 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.2181, allocations: 163.1 kB / 244.2 MB, free: 1.781 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.214e-05/0.2181, allocations: 29.45 kB / 244.2 MB, free: 1.75 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.387e-05/0.2182, allocations: 124 kB / 244.4 MB, free: 1.641 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.07e-05/0.2183, allocations: 128.6 kB / 244.5 MB, free: 1.543 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.269e-05/0.2183, allocations: 0 / 244.5 MB, free: 1.543 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.59e-05/0.2184, allocations: 342.2 kB / 244.8 MB, free: 1.219 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001948/0.2186, allocations: 146.5 kB / 245 MB, free: 1.207 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002054/0.2188, allocations: 186.3 kB / 245.2 MB, free: 1.168 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002586/0.2191, allocations: 147.4 kB / 245.3 MB, free: 1.145 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2191, allocations: 3.938 kB / 245.3 MB, free: 1.141 MB / 170.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006645/0.2197, allocations: 472 kB / 245.8 MB, free: 1.039 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.2198, allocations: 3.875 kB / 245.8 MB, free: 1.039 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.131e-06/0.2198, allocations: 4.031 kB / 245.8 MB, free: 1.035 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00046/0.2202, allocations: 161.7 kB / 245.9 MB, free: 1 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000308/0.2206, allocations: 73.23 kB / 246 MB, free: 0.9805 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002057/0.2226, allocations: 1.981 MB / 248 MB, free: 15.62 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002554/0.2229, allocations: 26.83 kB / 248 MB, free: 15.62 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.121e-05/0.2229, allocations: 22.58 kB / 248 MB, free: 15.61 MB / 186.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 28 * 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 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.000192/0.2231, allocations: 117.2 kB / 248.1 MB, free: 15.5 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.875e-05/0.2232, allocations: 23.19 kB / 248.2 MB, free: 15.48 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.141e-05/0.2233, allocations: 41.83 kB / 248.2 MB, free: 15.47 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.2233, allocations: 3.844 kB / 248.2 MB, free: 15.47 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2233, allocations: 0 / 248.2 MB, free: 15.47 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.2233, allocations: 0 / 248.2 MB, free: 15.47 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001563/0.2249, allocations: 0.9934 MB / 249.2 MB, free: 15.02 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.2249, allocations: 0 / 249.2 MB, free: 15.02 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003125/0.2252, allocations: 68.77 kB / 249.3 MB, free: 15 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003746/0.2256, allocations: 141.7 kB / 249.4 MB, free: 14.97 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.588e-05/0.2257, allocations: 15.08 kB / 249.4 MB, free: 14.96 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002045/0.2277, allocations: 1.903 MB / 251.3 MB, free: 13.62 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.2277, allocations: 0 / 251.3 MB, free: 13.62 MB / 186.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001006/0.2288, allocations: 0.7607 MB / 252.1 MB, free: 13.38 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00017/0.2289, allocations: 140.9 kB / 252.2 MB, free: 13.25 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.593e-05/0.229, allocations: 2.562 kB / 252.2 MB, free: 13.25 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002598/0.2293, allocations: 31.44 kB / 252.3 MB, free: 13.24 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/0.2294, allocations: 41.89 kB / 252.3 MB, free: 13.22 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.866e-05/0.2294, allocations: 26.98 kB / 252.3 MB, free: 13.21 MB / 186.7 MB Notification: Performance of sort global known variables: time 0.0001132/0.2296, allocations: 127.9 kB / 252.5 MB, free: 13.13 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.000521/0.2301, allocations: 92.31 kB / 252.5 MB, free: 13.13 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002792/0.2304, allocations: 137.6 kB / 252.7 MB, free: 13.02 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0008884/0.2313, allocations: 489.5 kB / 253.2 MB, free: 12.88 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2313, allocations: 0 / 253.2 MB, free: 12.88 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004826/0.2318, allocations: 320.2 kB / 253.5 MB, free: 12.75 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003282/0.2321, allocations: 26.14 kB / 253.5 MB, free: 12.73 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001321/0.2334, allocations: 0.5253 MB / 254 MB, free: 12.45 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005545/0.234, allocations: 0.8185 MB / 254.8 MB, free: 11.69 MB / 186.7 MB Notification: Performance of SimCode: time 4.51e-07/0.234, allocations: 0 / 254.8 MB, free: 11.69 MB / 186.7 MB Notification: Performance of Templates: time 0.01177/0.2458, allocations: 5.604 MB / 260.4 MB, free: 8.93 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)