Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") [: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.1+maint.om/package.mo): time 0.003325/0.003325, allocations: 171.7 kB / 7.445 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.309/1.309, allocations: 170.6 MB / 178.4 MB, free: 15.45 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001858/0.001858, allocations: 119.8 kB / 217.7 MB, free: 8.223 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1721/0.1721, allocations: 37.97 MB / 294.8 MB, free: 9.629 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.454e-06/7.505e-06, allocations: 1.188 kB / 349.5 MB, free: 37.08 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1016, allocations: 48.7 MB / 398.2 MB, free: 5.695 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.356/0.4576, allocations: 98.09 MB / 496.3 MB, free: 13.29 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002405/0.4579, allocations: 72.5 kB / 496.4 MB, free: 13.28 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.3757/0.8336, allocations: 131 MB / 0.6127 GB, free: 4.754 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008151/0.8345, allocations: 128 kB / 0.6128 GB, free: 4.629 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2291 * Number of variables: 2291 Notification: Performance of Generate backend data structure: time 0.2509/1.085, allocations: 6.883 MB / 0.6195 GB, free: 105 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.906e-05/1.085, allocations: 10.62 kB / 0.6195 GB, free: 105 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02943/1.115, allocations: 6.989 MB / 0.6264 GB, free: 104.6 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02419/1.139, allocations: 9.837 MB / 0.636 GB, free: 104.1 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004968/1.14, allocations: 209.8 kB / 0.6362 GB, free: 104.1 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003868/1.144, allocations: 394.3 kB / 0.6366 GB, free: 104.1 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01994/1.164, allocations: 10.04 MB / 0.6464 GB, free: 104.1 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03564/1.199, allocations: 14.58 MB / 0.6606 GB, free: 100.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007676/1.2, allocations: 102.8 kB / 0.6607 GB, free: 100.2 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004005/1.204, allocations: 42.28 kB / 0.6607 GB, free: 100.2 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003049/1.207, allocations: 1.689 MB / 0.6624 GB, free: 100.2 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1051/1.312, allocations: 75.81 MB / 0.7364 GB, free: 49.84 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007561/1.32, allocations: 5.324 MB / 0.7416 GB, free: 47.24 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005929/1.326, allocations: 4.272 MB / 0.7458 GB, free: 45.36 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02674/1.353, allocations: 14.28 MB / 0.7597 GB, free: 32.88 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.883e-05/1.353, allocations: 64.56 kB / 0.7598 GB, free: 32.8 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 7.705e-06/1.353, allocations: 0 / 0.7598 GB, free: 32.8 MB / 426.7 MB Notification: Performance of matching and sorting (n=360): time 0.1135/1.466, allocations: 39.21 MB / 0.7981 GB, free: 428 kB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/1.467, allocations: 269.7 kB / 0.7983 GB, free: 104 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2196/1.686, allocations: 4.86 MB / 0.8031 GB, free: 102.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001036/1.687, allocations: 29.42 kB / 0.8031 GB, free: 102.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002938/1.69, allocations: 4.307 MB / 0.8073 GB, free: 101.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002045/1.692, allocations: 1.293 MB / 0.8086 GB, free: 100.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007224/1.693, allocations: 0 / 0.8086 GB, free: 100.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000457/1.693, allocations: 0.6967 MB / 0.8093 GB, free: 100.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00494/1.698, allocations: 3.678 MB / 0.8129 GB, free: 100.1 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008456/1.707, allocations: 8.998 MB / 0.8216 GB, free: 93.27 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01/1.717, allocations: 6.014 MB / 0.8275 GB, free: 93.21 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001693/1.717, allocations: 52.66 kB / 0.8276 GB, free: 93.21 MB / 426.7 MB Notification: Performance of matching and sorting (n=1228) (initialization): time 0.03514/1.752, allocations: 15.69 MB / 0.8429 GB, free: 92.59 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/1.752, allocations: 3.938 kB / 0.8429 GB, free: 92.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000316/1.753, allocations: 191.4 kB / 0.8431 GB, free: 92.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01416/1.767, allocations: 3.906 MB / 0.8469 GB, free: 92.56 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008204/1.775, allocations: 2.066 MB / 0.8489 GB, free: 92.38 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03303/1.808, allocations: 20.77 MB / 0.8692 GB, free: 87.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01143/1.82, allocations: 337.6 kB / 0.8695 GB, free: 87.78 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002773/1.822, allocations: 0.5545 MB / 0.8701 GB, free: 87.71 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 861 * Number of states: 0 () * Number of discrete variables: 63 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1109): * Single equations (assignments): 1104 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 43,(4,62.5%) 48} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00281/1.825, allocations: 0.5911 MB / 0.8706 GB, free: 87.23 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001396/1.827, allocations: 0.5334 MB / 0.8712 GB, free: 86.93 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02313/1.85, allocations: 9.724 MB / 0.8806 GB, free: 84.13 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001196/1.85, allocations: 33.78 kB / 0.8807 GB, free: 84.13 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-05/1.85, allocations: 16.41 kB / 0.8807 GB, free: 84.13 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.474e-05/1.85, allocations: 15.73 kB / 0.8807 GB, free: 84.13 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04131/1.892, allocations: 18.08 MB / 0.8984 GB, free: 77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.113e-05/1.892, allocations: 0 / 0.8984 GB, free: 77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002951/1.895, allocations: 477.6 kB / 0.8988 GB, free: 76.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01313/1.908, allocations: 3.467 MB / 0.9022 GB, free: 74.23 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009249/1.909, allocations: 11.66 kB / 0.9022 GB, free: 74.22 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02902/1.938, allocations: 18.43 MB / 0.9202 GB, free: 58.44 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/1.938, allocations: 0 / 0.9202 GB, free: 58.44 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02903/1.967, allocations: 14.41 MB / 0.9343 GB, free: 46.38 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003731/1.971, allocations: 1.073 MB / 0.9353 GB, free: 45.38 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001978/1.973, allocations: 0 / 0.9353 GB, free: 45.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004105/1.977, allocations: 132.9 kB / 0.9355 GB, free: 45.3 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005765/1.977, allocations: 172.7 kB / 0.9356 GB, free: 45.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003524/1.978, allocations: 95.75 kB / 0.9357 GB, free: 45.11 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.006504/1.984, allocations: 3.207 MB / 0.9388 GB, free: 42.34 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0111/1.995, allocations: 1.565 MB / 0.9404 GB, free: 40.79 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (259): * Single equations (assignments): 254 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 39,(2,100.0%) 43} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009885/1.996, allocations: 190.4 kB / 0.9406 GB, free: 40.62 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.2054/2.202, allocations: 9.165 MB / 0.9495 GB, free: 90.89 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.157e-06/2.202, allocations: 3.062 kB / 0.9495 GB, free: 90.89 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005136/2.207, allocations: 3.554 MB / 0.953 GB, free: 90.66 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003797/2.211, allocations: 0.5656 MB / 0.9535 GB, free: 90.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02734/2.238, allocations: 13.3 MB / 0.9665 GB, free: 88.37 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007333/2.246, allocations: 5.371 MB / 0.9718 GB, free: 87.51 MB / 426.7 MB Notification: Performance of SimCode: time 1.904e-06/2.246, allocations: 0 / 0.9718 GB, free: 87.51 MB / 426.7 MB Notification: Performance of Templates: time 0.1398/2.385, allocations: 77.02 MB / 1.047 GB, free: 69.3 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.sim & ./ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.pipe 2>&1)