Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2") [: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.2+maint.om/package.mo): time 0.002748/0.002748, allocations: 189.9 kB / 7.458 MB, free: 2.238 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.236/1.236, allocations: 194.2 MB / 202.1 MB, free: 8.695 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001641/0.001641, allocations: 122.3 kB / 247.1 MB, free: 6.348 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1848/0.1848, allocations: 39.94 MB / 331.9 MB, free: 4.875 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 9.438e-06/9.448e-06, allocations: 4 kB / 392.8 MB, free: 75.85 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09673/0.09675, allocations: 54.86 MB / 447.6 MB, free: 20.96 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3201/0.4169, allocations: 97.61 MB / 0.5325 GB, free: 2.836 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001815/0.4171, allocations: 75.34 kB / 0.5325 GB, free: 2.801 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1996/0.6167, allocations: 76.33 MB / 0.6071 GB, free: 14.48 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002335/0.617, allocations: 67.98 kB / 0.6072 GB, free: 14.41 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: 1364 * Number of variables: 1364 Notification: Performance of Generate backend data structure: time 0.01222/0.6292, allocations: 3.499 MB / 0.6106 GB, free: 10.85 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.6293, allocations: 8.031 kB / 0.6106 GB, free: 10.84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01853/0.6478, allocations: 3.968 MB / 0.6145 GB, free: 6.863 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01321/0.6611, allocations: 4.412 MB / 0.6188 GB, free: 2.387 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002577/0.6614, allocations: 124 kB / 0.6189 GB, free: 2.266 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001959/0.6633, allocations: 211.9 kB / 0.6191 GB, free: 2.059 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01131/0.6747, allocations: 5.359 MB / 0.6243 GB, free: 12.7 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01857/0.6933, allocations: 8.479 MB / 0.6326 GB, free: 3.238 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002812/0.6936, allocations: 59.45 kB / 0.6327 GB, free: 3.18 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001648/0.6953, allocations: 31.94 kB / 0.6327 GB, free: 3.148 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00153/0.6968, allocations: 0.9622 MB / 0.6336 GB, free: 2.18 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2153/0.9121, allocations: 41.46 MB / 0.6741 GB, free: 145.2 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003308/0.9155, allocations: 2.548 MB / 0.6766 GB, free: 144.2 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001166/0.9167, allocations: 1.181 MB / 0.6778 GB, free: 144.2 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006259/0.923, allocations: 4.434 MB / 0.6821 GB, free: 142.7 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.426e-05/0.923, allocations: 50.53 kB / 0.6821 GB, free: 142.7 MB / 474.7 MB Notification: Performance of pre-optimization done (n=106): time 2.876e-06/0.923, allocations: 0 / 0.6821 GB, free: 142.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=121): time 0.01595/0.939, allocations: 8.833 MB / 0.6908 GB, free: 140.5 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.176e-05/0.9391, allocations: 188.3 kB / 0.6909 GB, free: 140.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003955/0.943, allocations: 3.071 MB / 0.6939 GB, free: 139.9 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001142/0.9432, allocations: 25.7 kB / 0.694 GB, free: 139.9 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001223/0.9444, allocations: 2.896 MB / 0.6968 GB, free: 138.2 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003563/0.9448, allocations: 0.4955 MB / 0.6973 GB, free: 138 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001607/0.9449, allocations: 0 / 0.6973 GB, free: 138 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002354/0.9452, allocations: 0.5531 MB / 0.6978 GB, free: 137.6 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001779/0.947, allocations: 1.563 MB / 0.6993 GB, free: 137.6 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003172/0.9501, allocations: 5.518 MB / 0.7047 GB, free: 132.4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003344/0.9535, allocations: 2.966 MB / 0.7076 GB, free: 132.4 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.388e-05/0.9536, allocations: 43.44 kB / 0.7077 GB, free: 132.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=777) (initialization): time 0.009348/0.9629, allocations: 6.217 MB / 0.7137 GB, free: 131.9 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.963, allocations: 3.562 kB / 0.7137 GB, free: 131.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001169/0.9631, allocations: 142.1 kB / 0.7139 GB, free: 131.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007093/0.9638, allocations: 378.2 kB / 0.7142 GB, free: 131.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003813/0.9676, allocations: 1.375 MB / 0.7156 GB, free: 131.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002475/0.9701, allocations: 2.595 MB / 0.7181 GB, free: 130.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004214/0.9744, allocations: 188.5 kB / 0.7183 GB, free: 130.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007305/0.9751, allocations: 386.5 kB / 0.7187 GB, free: 130.4 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 652 * Number of states: 0 () * Number of discrete variables: 28 (LessEqualThreshold1.y,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.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 (742): * Single equations (assignments): 738 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007307/0.9759, allocations: 447 kB / 0.7191 GB, free: 130.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005003/0.9764, allocations: 298.3 kB / 0.7194 GB, free: 129.9 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002382/0.9787, allocations: 1.418 MB / 0.7208 GB, free: 129.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.399e-05/0.9788, allocations: 11 kB / 0.7208 GB, free: 129.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/0.9788, allocations: 9.906 kB / 0.7208 GB, free: 129.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.294e-05/0.9788, allocations: 6.875 kB / 0.7208 GB, free: 129.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008371/0.9872, allocations: 4.081 MB / 0.7248 GB, free: 128.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.9872, allocations: 0 / 0.7248 GB, free: 128.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009812/0.9882, allocations: 175.1 kB / 0.7249 GB, free: 128.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000521/0.9888, allocations: 155.8 kB / 0.7251 GB, free: 128.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.123e-05/0.9889, allocations: 5.031 kB / 0.7251 GB, free: 128.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002101/0.991, allocations: 2.034 MB / 0.7271 GB, free: 126.8 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/0.991, allocations: 0 / 0.7271 GB, free: 126.8 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003974/0.995, allocations: 3.247 MB / 0.7302 GB, free: 125.3 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001146/0.9961, allocations: 487.9 kB / 0.7307 GB, free: 125 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003523/0.9965, allocations: 2.281 kB / 0.7307 GB, free: 125 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009934/0.9975, allocations: 27.36 kB / 0.7307 GB, free: 125 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001442/0.9977, allocations: 54.5 kB / 0.7308 GB, free: 125 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001092/0.9978, allocations: 35.94 kB / 0.7308 GB, free: 125 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.003034/1.001, allocations: 2.035 MB / 0.7328 GB, free: 124.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005017/1.006, allocations: 0.7132 MB / 0.7335 GB, free: 124.2 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 88 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004204/1.006, allocations: 131 kB / 0.7336 GB, free: 124.1 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005303/1.012, allocations: 3.744 MB / 0.7373 GB, free: 120.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/1.012, allocations: 4 kB / 0.7373 GB, free: 120.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009679/1.013, allocations: 0.8925 MB / 0.7382 GB, free: 119.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001394/1.014, allocations: 280.6 kB / 0.7384 GB, free: 119.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01175/1.026, allocations: 6.166 MB / 0.7445 GB, free: 114.1 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003252/1.029, allocations: 3.272 MB / 0.7477 GB, free: 111.6 MB / 474.7 MB Notification: Performance of SimCode: time 1.182e-06/1.029, allocations: 0 / 0.7477 GB, free: 111.6 MB / 474.7 MB Notification: Performance of Templates: time 0.05201/1.081, allocations: 27.23 MB / 0.7742 GB, free: 93.29 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1)