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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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 Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 84.38 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.61/1.61, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3857/0.3857, allocations: 40 MB / 310.4 MB, free: 9.984 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006252/0.0006254, allocations: 12 kB / 378.8 MB, free: 12.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1342, allocations: 57.96 MB / 436.8 MB, free: 2.594 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.3144/0.4487, allocations: 37.58 MB / 474.4 MB, free: 32.14 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.024/0.4727, allocations: 8.476 MB / 482.9 MB, free: 26.42 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01274/0.4855, allocations: 176.9 kB / 483 MB, free: 26.39 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00836/0.4939, allocations: 1.929 MB / 485 MB, free: 25.71 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02032/0.5143, allocations: 5.872 MB / 490.8 MB, free: 23.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003234/0.5175, allocations: 0.4969 MB / 491.3 MB, free: 23.08 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03007/0.5476, allocations: 18.36 MB / 0.4977 GB, free: 18.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01015/0.5578, allocations: 3.045 MB / 0.5007 GB, free: 17.24 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004945/0.5629, allocations: 1.078 MB / 0.5018 GB, free: 16.89 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005854/0.5688, allocations: 1.753 MB / 0.5035 GB, free: 16.03 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001752/0.5706, allocations: 132.4 kB / 0.5036 GB, free: 16.03 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004304/0.5749, allocations: 0.9145 MB / 0.5045 GB, free: 15.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004202/0.5791, allocations: 1.514 MB / 0.506 GB, free: 14.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003023/0.5822, allocations: 0.7371 MB / 0.5067 GB, free: 14.3 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007722/0.5899, allocations: 4.866 MB / 0.5114 GB, free: 11.09 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.403e-06/0.59, allocations: 0 / 0.5114 GB, free: 11.09 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.59, allocations: 0 / 0.5114 GB, free: 11.09 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003318/0.5903, allocations: 0 / 0.5114 GB, free: 11.09 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1367 * Number of variables: 1367 Notification: Performance of Generate backend data structure: time 0.01036/0.6007, allocations: 3.503 MB / 0.5149 GB, free: 8.109 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.6008, allocations: 8.031 kB / 0.5149 GB, free: 8.102 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01389/0.6147, allocations: 2.51 MB / 0.5173 GB, free: 5.582 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006606/0.6213, allocations: 2.375 MB / 0.5196 GB, free: 3.156 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001601/0.6215, allocations: 196.9 kB / 0.5198 GB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001096/0.6226, allocations: 255.9 kB / 0.5201 GB, free: 2.711 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01626/0.6389, allocations: 8.749 MB / 0.5286 GB, free: 9.309 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001233/0.6391, allocations: 43.64 kB / 0.5287 GB, free: 9.266 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004102/0.6395, allocations: 131.8 kB / 0.5288 GB, free: 9.137 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003489/0.643, allocations: 1.84 MB / 0.5306 GB, free: 7.293 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01642/0.6594, allocations: 7.448 MB / 0.5379 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04891/0.7084, allocations: 34.31 MB / 0.5714 GB, free: 12.52 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005486/0.714, allocations: 2.589 MB / 0.5739 GB, free: 9.781 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002001/0.716, allocations: 1.181 MB / 0.575 GB, free: 8.586 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004691/0.7165, allocations: 328 kB / 0.5754 GB, free: 8.211 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.751e-05/0.7166, allocations: 51.05 kB / 0.5754 GB, free: 8.152 MB / 446.1 MB Notification: Performance of pre-optimization done (n=119): time 3.897e-06/0.7166, allocations: 0 / 0.5754 GB, free: 8.152 MB / 446.1 MB Notification: Performance of matching and sorting (n=133): time 0.02678/0.7434, allocations: 9.784 MB / 0.585 GB, free: 14.25 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001525/0.7436, allocations: 196.6 kB / 0.5851 GB, free: 14.02 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008942/0.7526, allocations: 3.94 MB / 0.589 GB, free: 10.09 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004414/0.7531, allocations: 45.7 kB / 0.589 GB, free: 10.04 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003871/0.7569, allocations: 2.948 MB / 0.5919 GB, free: 7.055 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000883/0.7578, allocations: 0.5481 MB / 0.5924 GB, free: 6.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000259/0.7581, allocations: 116 kB / 0.5926 GB, free: 6.387 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003876/0.7585, allocations: 0.5501 MB / 0.5931 GB, free: 5.828 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003264/0.7618, allocations: 1.784 MB / 0.5948 GB, free: 4.039 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006069/0.7679, allocations: 5.613 MB / 0.6003 GB, free: 12.5 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00478/0.7727, allocations: 3.1 MB / 0.6033 GB, free: 9.402 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.051e-05/0.7728, allocations: 36 kB / 0.6034 GB, free: 9.367 MB / 478.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.01372/0.7865, allocations: 7.536 MB / 0.6107 GB, free: 1.824 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.007e-05/0.7866, allocations: 75.22 kB / 0.6108 GB, free: 1.754 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001544/0.7868, allocations: 136 kB / 0.6109 GB, free: 1.621 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001685/0.7885, allocations: 0.6799 MB / 0.6116 GB, free: 0.9375 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004087/0.7926, allocations: 1.361 MB / 0.6129 GB, free: 15.57 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004971/0.7976, allocations: 3.801 MB / 0.6166 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004199/0.8018, allocations: 327.4 kB / 0.617 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006198/0.8024, allocations: 370.5 kB / 0.6173 GB, free: 10.96 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * Number of states: 0 () * Number of discrete variables: 31 (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.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (735): * Single equations (assignments): 731 * 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 {(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003576/0.806, allocations: 1.939 MB / 0.6192 GB, free: 9.008 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008038/0.8068, allocations: 320.2 kB / 0.6195 GB, free: 8.691 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004049/0.8109, allocations: 2.065 MB / 0.6215 GB, free: 6.602 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-05/0.8109, allocations: 15.95 kB / 0.6215 GB, free: 6.586 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.122e-05/0.8109, allocations: 4 kB / 0.6215 GB, free: 6.582 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/0.811, allocations: 11.91 kB / 0.6216 GB, free: 6.57 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01171/0.8227, allocations: 5.81 MB / 0.6272 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.1e-05/0.8227, allocations: 112 / 0.6272 GB, free: 0.6797 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008927/0.8236, allocations: 191.6 kB / 0.6274 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001299/0.8249, allocations: 488.4 kB / 0.6279 GB, free: 12 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.2888/1.114, allocations: 21.22 kB / 0.6279 GB, free: 137.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003613/1.117, allocations: 3.218 MB / 0.631 GB, free: 136.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/1.117, allocations: 3.062 kB / 0.631 GB, free: 136.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005897/1.123, allocations: 3.973 MB / 0.6349 GB, free: 135.8 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001739/1.125, allocations: 0.5467 MB / 0.6355 GB, free: 135.8 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005869/1.126, allocations: 25.83 kB / 0.6355 GB, free: 135.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001108/1.127, allocations: 71.11 kB / 0.6356 GB, free: 135.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002337/1.127, allocations: 67.31 kB / 0.6356 GB, free: 135.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001062/1.127, allocations: 44.14 kB / 0.6357 GB, free: 135.8 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004854/1.132, allocations: 2.454 MB / 0.6381 GB, free: 135.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.01e-07/1.132, allocations: 0 / 0.6381 GB, free: 135.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005245/1.137, allocations: 0.8782 MB / 0.6389 GB, free: 135.5 MB / 494.1 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 () * Number of clocked 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.0003684/1.138, allocations: 145.4 kB / 0.6391 GB, free: 135.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00685/1.145, allocations: 4.268 MB / 0.6432 GB, free: 133.9 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/1.145, allocations: 2.844 kB / 0.6432 GB, free: 133.9 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001375/1.146, allocations: 1.073 MB / 0.6443 GB, free: 133.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002264/1.148, allocations: 371.2 kB / 0.6446 GB, free: 133.3 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01437/1.163, allocations: 9.323 MB / 0.6537 GB, free: 128.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002921/1.166, allocations: 2.95 MB / 0.6566 GB, free: 127.5 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005116/1.171, allocations: 1.824 MB / 0.6584 GB, free: 127.3 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007421/1.172, allocations: 226.4 kB / 0.6586 GB, free: 127.3 MB / 494.1 MB Notification: Performance of SimCode: time 2.404e-06/1.172, allocations: 4 kB / 0.6586 GB, free: 127.3 MB / 494.1 MB Notification: Performance of Templates: time 0.06644/1.238, allocations: 28.79 MB / 0.6867 GB, free: 121 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.MultiBody.Sensors.Distance2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: