Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+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="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_3.2.3_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.001092/0.001092, allocations: 96.28 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 176.5 kB / 16.57 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.42/1.42, allocations: 205.4 MB / 222.7 MB, free: 5.914 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3484/0.3484, allocations: 43.54 MB / 314.5 MB, free: 8.688 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: Performance of FrontEnd - loaded program: time 0.0004962/0.0004965, allocations: 16 kB / 383.9 MB, free: 8.078 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1227/0.1232, allocations: 58.85 MB / 442.8 MB, free: 13.12 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.2291/0.3524, allocations: 35.53 MB / 478.3 MB, free: 29.79 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02205/0.3745, allocations: 8.811 MB / 487.1 MB, free: 23.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006658/0.3812, allocations: 167.8 kB / 487.3 MB, free: 23.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005938/0.3872, allocations: 1.742 MB / 489 MB, free: 23.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01527/0.4025, allocations: 5.207 MB / 494.2 MB, free: 20.8 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002117/0.4046, allocations: 491.1 kB / 494.7 MB, free: 20.61 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02296/0.4276, allocations: 13.89 MB / 0.4967 GB, free: 16.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007369/0.4351, allocations: 3.024 MB / 0.4996 GB, free: 15.46 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002611/0.4377, allocations: 0.8937 MB / 0.5005 GB, free: 15.14 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002477/0.4402, allocations: 1.239 MB / 0.5017 GB, free: 14.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006576/0.4409, allocations: 131.8 kB / 0.5018 GB, free: 14.76 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00217/0.4431, allocations: 0.8946 MB / 0.5027 GB, free: 14.58 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001741/0.4448, allocations: 1.402 MB / 0.5041 GB, free: 14.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001017/0.4459, allocations: 0.7385 MB / 0.5048 GB, free: 13.63 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00503/0.4509, allocations: 5.027 MB / 0.5097 GB, free: 10.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.4509, allocations: 0 / 0.5097 GB, free: 10.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.4509, allocations: 2.375 kB / 0.5097 GB, free: 10.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000169/0.4511, allocations: 0 / 0.5097 GB, free: 10.54 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.008907/0.46, allocations: 3.669 MB / 0.5133 GB, free: 7.781 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.4601, allocations: 16.02 kB / 0.5133 GB, free: 7.766 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.083/0.5431, allocations: 8.316 MB / 0.5214 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007104/0.5502, allocations: 2.57 MB / 0.5239 GB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001968/0.5505, allocations: 196.9 kB / 0.5241 GB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001129/0.5516, allocations: 259.8 kB / 0.5244 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01592/0.5676, allocations: 8.714 MB / 0.5329 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001262/0.5677, allocations: 43.58 kB / 0.5329 GB, free: 2.941 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004179/0.5682, allocations: 131.8 kB / 0.533 GB, free: 2.812 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003003/0.5712, allocations: 1.829 MB / 0.5348 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0137/0.5849, allocations: 7.366 MB / 0.542 GB, free: 9.605 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04455/0.6295, allocations: 34.07 MB / 0.5753 GB, free: 6.543 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004895/0.6344, allocations: 2.543 MB / 0.5778 GB, free: 3.855 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003569/0.6348, allocations: 331.7 kB / 0.5781 GB, free: 3.477 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.559e-05/0.6349, allocations: 39.12 kB / 0.5781 GB, free: 3.43 MB / 446.1 MB Notification: Performance of pre-optimization done (n=119): time 4.739e-06/0.6349, allocations: 0 / 0.5781 GB, free: 3.43 MB / 446.1 MB Notification: Performance of matching and sorting (n=133): time 0.02301/0.6579, allocations: 9.195 MB / 0.5871 GB, free: 10.08 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001465/0.6581, allocations: 200.6 kB / 0.5873 GB, free: 9.84 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006508/0.6646, allocations: 4.079 MB / 0.5913 GB, free: 5.777 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00033/0.665, allocations: 41.7 kB / 0.5913 GB, free: 5.73 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002655/0.6677, allocations: 2.976 MB / 0.5942 GB, free: 2.711 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007773/0.6685, allocations: 0.5403 MB / 0.5947 GB, free: 2.164 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002561/0.6687, allocations: 112 kB / 0.5949 GB, free: 2.055 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003997/0.6691, allocations: 0.5459 MB / 0.5954 GB, free: 1.5 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002583/0.6717, allocations: 1.678 MB / 0.597 GB, free: 15.82 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005892/0.6776, allocations: 5.466 MB / 0.6024 GB, free: 8.426 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004807/0.6825, allocations: 2.974 MB / 0.6053 GB, free: 5.453 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.073e-05/0.6826, allocations: 40 kB / 0.6053 GB, free: 5.414 MB / 478.1 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.01214/0.6947, allocations: 7.052 MB / 0.6122 GB, free: 14.35 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.292e-05/0.6949, allocations: 60 kB / 0.6122 GB, free: 14.29 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001391/0.695, allocations: 136 kB / 0.6124 GB, free: 14.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008601/0.6959, allocations: 441.2 kB / 0.6128 GB, free: 13.73 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003683/0.6996, allocations: 1.326 MB / 0.6141 GB, free: 12.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00337/0.703, allocations: 3.156 MB / 0.6172 GB, free: 9.109 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003818/0.7068, allocations: 311.4 kB / 0.6175 GB, free: 8.805 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005334/0.7074, allocations: 367.9 kB / 0.6178 GB, free: 8.445 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 (716): * Single equations (assignments): 712 * 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.003726/0.7111, allocations: 1.943 MB / 0.6197 GB, free: 6.488 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006545/0.7117, allocations: 327.7 kB / 0.62 GB, free: 6.164 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002821/0.7146, allocations: 1.695 MB / 0.6217 GB, free: 4.453 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-05/0.7146, allocations: 16.66 kB / 0.6217 GB, free: 4.438 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.268e-06/0.7146, allocations: 8 kB / 0.6217 GB, free: 4.43 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.317e-05/0.7146, allocations: 11.92 kB / 0.6217 GB, free: 4.418 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.237/0.9516, allocations: 5.44 MB / 0.627 GB, free: 134.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.54e-05/0.9517, allocations: 3.312 kB / 0.627 GB, free: 134.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008753/0.9526, allocations: 188.6 kB / 0.6272 GB, free: 134.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005981/0.9532, allocations: 226.9 kB / 0.6274 GB, free: 134.6 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.9533, allocations: 24.31 kB / 0.6275 GB, free: 134.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002312/0.9556, allocations: 2.569 MB / 0.63 GB, free: 133.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.9556, allocations: 7.984 kB / 0.63 GB, free: 133.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004816/0.9605, allocations: 3.729 MB / 0.6336 GB, free: 132.7 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001501/0.962, allocations: 0.5383 MB / 0.6341 GB, free: 132.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004966/0.9625, allocations: 21.25 kB / 0.6342 GB, free: 132.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/0.9637, allocations: 65.73 kB / 0.6342 GB, free: 132.6 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/0.9639, allocations: 69.27 kB / 0.6343 GB, free: 132.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.694e-05/0.964, allocations: 42.55 kB / 0.6343 GB, free: 132.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003922/0.9679, allocations: 2.56 MB / 0.6368 GB, free: 132.4 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.9679, allocations: 0 / 0.6368 GB, free: 132.4 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004573/0.9725, allocations: 0.8701 MB / 0.6377 GB, free: 132.4 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.0004142/0.9729, allocations: 166.5 kB / 0.6378 GB, free: 132.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.005725/0.9787, allocations: 4.064 MB / 0.6418 GB, free: 131.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.159e-06/0.9787, allocations: 6.844 kB / 0.6418 GB, free: 131.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001169/0.9799, allocations: 1.002 MB / 0.6428 GB, free: 130.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001675/0.9816, allocations: 355.2 kB / 0.6431 GB, free: 130.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01272/0.9943, allocations: 9.142 MB / 0.6521 GB, free: 125.9 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0032/0.9975, allocations: 3.034 MB / 0.655 GB, free: 124.7 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004546/1.002, allocations: 1.806 MB / 0.6568 GB, free: 124.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006472/1.003, allocations: 225.8 kB / 0.657 GB, free: 124.6 MB / 494.1 MB Notification: Performance of SimCode: time 9.82e-07/1.003, allocations: 4 kB / 0.657 GB, free: 124.6 MB / 494.1 MB Notification: Performance of Templates: time 0.05686/1.06, allocations: 28.55 MB / 0.6849 GB, free: 118.1 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches