Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Translational.Examples.PreLoad.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.Translational.Examples.PreLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Translational.Examples.PreLoad") translateModel(Modelica.Mechanics.Translational.Examples.PreLoad,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Translational.Examples.PreLoad") [: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.681/0.681, allocations: 110.8 MB / 118 MB, free: 14.59 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001807/0.001807, allocations: 152 kB / 143.7 MB, free: 4.918 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 5.169e-06/5.26e-06, allocations: 0 / 173.4 MB, free: 23.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0452/0.04522, allocations: 25.17 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1476/0.1929, allocations: 34.43 MB / 233.1 MB, free: 4.387 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002098/0.1931, allocations: 62.86 kB / 233.1 MB, free: 4.387 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.02238/0.2155, allocations: 8.375 MB / 241.5 MB, free: 3.496 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.907e-05/0.2156, allocations: 11.53 kB / 241.5 MB, free: 3.496 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.001106/0.2167, allocations: 0.7185 MB / 242.2 MB, free: 2.957 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.2167, allocations: 7.594 kB / 242.2 MB, free: 2.957 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.497e-05/0.2168, allocations: 54.12 kB / 242.3 MB, free: 2.926 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002998/0.2171, allocations: 283.4 kB / 242.6 MB, free: 2.676 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.985e-05/0.2172, allocations: 11.72 kB / 242.6 MB, free: 2.676 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.206e-05/0.2172, allocations: 37.92 kB / 242.6 MB, free: 2.668 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005375/0.2178, allocations: 328.3 kB / 242.9 MB, free: 2.637 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004967/0.2183, allocations: 323.8 kB / 243.2 MB, free: 2.543 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.403e-05/0.2183, allocations: 7.406 kB / 243.2 MB, free: 2.543 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.508e-05/0.2184, allocations: 0 / 243.2 MB, free: 2.543 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.2184, allocations: 11.5 kB / 243.3 MB, free: 2.543 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001955/0.2203, allocations: 1.269 MB / 244.5 MB, free: 1.934 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003884/0.2207, allocations: 287 kB / 244.8 MB, free: 1.898 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004813/0.2212, allocations: 311.9 kB / 245.1 MB, free: 1.852 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.706e-05/0.2213, allocations: 8.219 kB / 245.1 MB, free: 1.852 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.817e-05/0.2213, allocations: 41.53 kB / 245.2 MB, free: 1.809 MB / 170.7 MB Notification: Performance of pre-optimization done (n=62): time 1.964e-06/0.2213, allocations: 0 / 245.2 MB, free: 1.809 MB / 170.7 MB Notification: Performance of matching and sorting (n=98): time 0.003209/0.2245, allocations: 2.118 MB / 247.3 MB, free: 0.9805 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.775e-05/0.2246, allocations: 60.66 kB / 247.3 MB, free: 0.9141 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001416/0.2247, allocations: 190.5 kB / 247.5 MB, free: 0.7969 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 3.43e-05/0.2248, allocations: 25.7 kB / 247.5 MB, free: 0.7656 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.226e-05/0.2248, allocations: 174 kB / 247.7 MB, free: 0.6211 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001557/0.225, allocations: 314.9 kB / 248 MB, free: 392 kB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.806e-05/0.225, allocations: 0 / 248 MB, free: 392 kB / 170.7 MB Notification: Performance of setup shared object (initialization): time 7.281e-05/0.2251, allocations: 363.1 kB / 248.4 MB, free: 52 kB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000283/0.2254, allocations: 196.8 kB / 248.6 MB, free: 52 kB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003219/0.2257, allocations: 266 kB / 248.8 MB, free: 4 kB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003444/0.2261, allocations: 228.3 kB / 249.1 MB, free: 15.97 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2261, allocations: 4 kB / 249.1 MB, free: 15.96 MB / 186.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.0008872/0.227, allocations: 0.5952 MB / 249.7 MB, free: 15.84 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.227, allocations: 7.438 kB / 249.7 MB, free: 15.84 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.227, allocations: 0 / 249.7 MB, free: 15.84 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.2271, allocations: 3.812 kB / 249.7 MB, free: 15.84 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008491/0.2279, allocations: 218.4 kB / 249.9 MB, free: 15.79 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.438e-06/0.2279, allocations: 7.766 kB / 249.9 MB, free: 15.79 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003577/0.2283, allocations: 46.03 kB / 249.9 MB, free: 15.78 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.808e-05/0.2284, allocations: 34.55 kB / 250 MB, free: 15.77 MB / 186.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (108): * Single equations (assignments): 108 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001287/0.2285, allocations: 112.8 kB / 250.1 MB, free: 15.65 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.533e-05/0.2286, allocations: 49.88 kB / 250.1 MB, free: 15.63 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001306/0.2287, allocations: 65.72 kB / 250.2 MB, free: 15.61 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.2287, allocations: 11.06 kB / 250.2 MB, free: 15.61 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.334e-05/0.2287, allocations: 3.938 kB / 250.2 MB, free: 15.6 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.758e-06/0.2288, allocations: 3.984 kB / 250.2 MB, free: 15.6 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002455/0.2312, allocations: 1.684 MB / 251.9 MB, free: 14.82 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.297e-06/0.2312, allocations: 5.344 kB / 251.9 MB, free: 14.82 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000937/0.2322, allocations: 210.1 kB / 252.1 MB, free: 14.77 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.059e-05/0.2322, allocations: 13.78 kB / 252.1 MB, free: 14.77 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.159e-05/0.2323, allocations: 19.55 kB / 252.1 MB, free: 14.76 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.043e-05/0.2323, allocations: 7.094 kB / 252.1 MB, free: 14.76 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.025e-06/0.2323, allocations: 9.469 kB / 252.2 MB, free: 14.76 MB / 186.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001902/0.2342, allocations: 1.335 MB / 253.5 MB, free: 14.03 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002341/0.2345, allocations: 174 kB / 253.7 MB, free: 13.89 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.254e-05/0.2346, allocations: 5.5 kB / 253.7 MB, free: 13.89 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004454/0.235, allocations: 55.7 kB / 253.7 MB, free: 13.88 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.2351, allocations: 63.36 kB / 253.8 MB, free: 13.85 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.094e-05/0.2352, allocations: 26.81 kB / 253.8 MB, free: 13.85 MB / 186.7 MB Notification: Performance of sort global known variables: time 0.0001409/0.2354, allocations: 155.2 kB / 254 MB, free: 13.76 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005764/0.2359, allocations: 115.5 kB / 254.1 MB, free: 13.76 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (outerContactA.s_rel,outerContactA.v_rel,outerContactB.s_rel,outerContactB.v_rel,friction.s_rel,friction.v_rel) * Number of discrete variables: 4 (innerContactA.contact,innerContactB.contact,outerContactA.contact,outerContactB.contact) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 98 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001949/0.2361, allocations: 118.9 kB / 254.2 MB, free: 13.65 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.000997/0.2371, allocations: 0.5614 MB / 254.7 MB, free: 13.61 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.2372, allocations: 0 / 254.7 MB, free: 13.61 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005735/0.2377, allocations: 357.5 kB / 255.1 MB, free: 13.58 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006418/0.2384, allocations: 83.98 kB / 255.2 MB, free: 13.55 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002419/0.2408, allocations: 1.172 MB / 256.3 MB, free: 12.8 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007651/0.2416, allocations: 0.9314 MB / 257.3 MB, free: 12.02 MB / 186.7 MB Notification: Performance of SimCode: time 6.91e-07/0.2416, allocations: 4 kB / 257.3 MB, free: 12.01 MB / 186.7 MB Notification: Performance of Templates: time 0.01528/0.2569, allocations: 6.629 MB / 263.9 MB, free: 7.398 MB / 186.7 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.PreLoad.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Translational.Examples.PreLoad.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Translational.Examples.PreLoad.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Translational.Examples.PreLoad.sim & ./Modelica_3.1_Modelica.Mechanics.Translational.Examples.PreLoad -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Translational.Examples.PreLoad.pipe 2>&1)