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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001094/0.001094, allocations: 181.9 kB / 12.74 MB, free: 2.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.359/1.359, allocations: 194.3 MB / 207.5 MB, free: 3.398 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.001685/0.001685, allocations: 114.3 kB / 252.6 MB, free: 4.82 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.1971/0.1971, allocations: 39.94 MB / 337.5 MB, free: 496 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.813e-05/3.813e-05, allocations: 7.984 kB / 400.3 MB, free: 69.87 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1067, allocations: 54.85 MB / 455.1 MB, free: 14.99 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4623/0.5691, allocations: 98.36 MB / 0.5405 GB, free: 9.48 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002738/0.5694, allocations: 74.03 kB / 0.5406 GB, free: 9.445 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2138/0.7832, allocations: 78.95 MB / 0.6177 GB, free: 2.152 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.236e-06/0.7833, allocations: 4 kB / 0.6177 GB, free: 2.148 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002144/0.7836, allocations: 71.94 kB / 0.6178 GB, free: 2.078 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.01285/0.7964, allocations: 3.527 MB / 0.6212 GB, free: 14.49 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.7965, allocations: 8.031 kB / 0.6212 GB, free: 14.48 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01805/0.8145, allocations: 4.324 MB / 0.6254 GB, free: 10.15 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01306/0.8277, allocations: 4.373 MB / 0.6297 GB, free: 5.711 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000298/0.828, allocations: 279.3 kB / 0.63 GB, free: 5.438 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001768/0.8298, allocations: 371.8 kB / 0.6303 GB, free: 5.074 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02117/0.851, allocations: 9.031 MB / 0.6392 GB, free: 11.06 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003033/0.8514, allocations: 55.55 kB / 0.6392 GB, free: 11.01 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001297/0.8527, allocations: 183.9 kB / 0.6394 GB, free: 10.83 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001439/0.8541, allocations: 0.8962 MB / 0.6403 GB, free: 9.926 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01545/0.8696, allocations: 7.246 MB / 0.6473 GB, free: 2.672 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3647/1.234, allocations: 42.66 MB / 0.689 GB, free: 82.2 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005864/1.24, allocations: 2.499 MB / 0.6914 GB, free: 81.53 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001834/1.242, allocations: 1.056 MB / 0.6925 GB, free: 81.5 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004481/1.243, allocations: 334.8 kB / 0.6928 GB, free: 81.21 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.556e-05/1.243, allocations: 44.48 kB / 0.6928 GB, free: 81.18 MB / 474.7 MB Notification: Performance of pre-optimization done (n=119): time 4.749e-06/1.243, allocations: 0 / 0.6928 GB, free: 81.18 MB / 474.7 MB Notification: Performance of matching and sorting (n=133): time 0.0207/1.263, allocations: 7.486 MB / 0.7001 GB, free: 78.8 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.389e-05/1.264, allocations: 202.5 kB / 0.7003 GB, free: 78.58 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005164/1.269, allocations: 3.459 MB / 0.7037 GB, free: 78.25 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002127/1.269, allocations: 42.64 kB / 0.7037 GB, free: 78.21 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001773/1.271, allocations: 2.967 MB / 0.7066 GB, free: 76.78 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005031/1.271, allocations: 0.544 MB / 0.7072 GB, free: 76.49 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000189/1.271, allocations: 110.6 kB / 0.7073 GB, free: 76.49 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002882/1.272, allocations: 0.5477 MB / 0.7078 GB, free: 76.17 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002085/1.274, allocations: 1.598 MB / 0.7094 GB, free: 76.16 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003795/1.278, allocations: 5.372 MB / 0.7146 GB, free: 71.21 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003993/1.282, allocations: 2.927 MB / 0.7175 GB, free: 71.2 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.638e-05/1.282, allocations: 43.81 kB / 0.7175 GB, free: 71.2 MB / 474.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.01223/1.294, allocations: 6.84 MB / 0.7242 GB, free: 70.62 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.916e-05/1.294, allocations: 67.52 kB / 0.7243 GB, free: 70.61 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002043/1.294, allocations: 132.8 kB / 0.7244 GB, free: 70.61 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008293/1.295, allocations: 362.8 kB / 0.7247 GB, free: 70.61 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004745/1.3, allocations: 1.331 MB / 0.726 GB, free: 70.48 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00322/1.303, allocations: 2.74 MB / 0.7287 GB, free: 69.06 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005677/1.309, allocations: 297.9 kB / 0.729 GB, free: 69.04 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001334/1.31, allocations: 368.2 kB / 0.7294 GB, free: 69.04 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 618 * 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 (715): * Single equations (assignments): 711 * 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.001308/1.312, allocations: 0.5594 MB / 0.7299 GB, free: 68.71 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009999/1.313, allocations: 320.6 kB / 0.7302 GB, free: 68.54 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003134/1.316, allocations: 1.559 MB / 0.7317 GB, free: 67.95 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.741e-05/1.316, allocations: 14.78 kB / 0.7317 GB, free: 67.95 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.191e-05/1.316, allocations: 3.875 kB / 0.7317 GB, free: 67.95 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/1.316, allocations: 7.875 kB / 0.7318 GB, free: 67.95 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009467/1.325, allocations: 5.208 MB / 0.7368 GB, free: 65.94 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.859e-06/1.325, allocations: 6.891 kB / 0.7368 GB, free: 65.94 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008645/1.326, allocations: 196.1 kB / 0.737 GB, free: 65.92 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004556/1.327, allocations: 160 kB / 0.7372 GB, free: 65.88 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.798e-05/1.327, allocations: 19.22 kB / 0.7372 GB, free: 65.87 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001859/1.329, allocations: 2.153 MB / 0.7393 GB, free: 64.23 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/1.329, allocations: 4.375 kB / 0.7393 GB, free: 64.23 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004106/1.333, allocations: 3.519 MB / 0.7427 GB, free: 62.47 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001551/1.334, allocations: 0.5314 MB / 0.7433 GB, free: 62.12 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003209/1.335, allocations: 21.44 kB / 0.7433 GB, free: 62.11 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/1.336, allocations: 51.55 kB / 0.7433 GB, free: 62.09 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001853/1.336, allocations: 76.55 kB / 0.7434 GB, free: 62.07 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.008e-05/1.336, allocations: 37.64 kB / 0.7434 GB, free: 62.07 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003413/1.339, allocations: 2.4 MB / 0.7458 GB, free: 61.24 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.6e-07/1.339, allocations: 0 / 0.7458 GB, free: 61.24 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.004858/1.344, allocations: 0.8455 MB / 0.7466 GB, free: 61.13 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (102): * Single equations (assignments): 98 * 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.0003475/1.345, allocations: 150.9 kB / 0.7468 GB, free: 61.01 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005643/1.35, allocations: 3.917 MB / 0.7506 GB, free: 59.59 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/1.35, allocations: 0 / 0.7506 GB, free: 59.59 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001087/1.351, allocations: 0.9524 MB / 0.7515 GB, free: 59.19 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00212/1.354, allocations: 365.4 kB / 0.7519 GB, free: 59.02 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01481/1.368, allocations: 6.209 MB / 0.7579 GB, free: 56.51 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003251/1.372, allocations: 3.02 MB / 0.7609 GB, free: 54.2 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004807/1.377, allocations: 1.811 MB / 0.7626 GB, free: 53.06 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007296/1.377, allocations: 222.3 kB / 0.7629 GB, free: 52.85 MB / 474.7 MB Notification: Performance of SimCode: time 1.413e-06/1.377, allocations: 0 / 0.7629 GB, free: 52.85 MB / 474.7 MB Notification: Performance of Templates: time 0.053/1.43, allocations: 27.27 MB / 0.7895 GB, free: 34.08 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)