Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001638/0.001643, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.044/2.044, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001171/0.001171, allocations: 102.8 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2845/0.2845, allocations: 43.55 MB / 362.7 MB, free: 11.33 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006178/0.0006179, allocations: 16 kB / 431.4 MB, free: 20.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1213, allocations: 58.86 MB / 490.2 MB, free: 9.328 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.05598/0.1773, allocations: 35.52 MB / 0.5134 GB, free: 5.707 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.3529/0.5303, allocations: 8.812 MB / 0.522 GB, free: 9.895 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007593/0.5379, allocations: 170.5 kB / 0.5222 GB, free: 9.895 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00649/0.5445, allocations: 1.744 MB / 0.5239 GB, free: 9.891 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02097/0.5655, allocations: 5.206 MB / 0.529 GB, free: 9.805 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003291/0.5688, allocations: 494.2 kB / 0.5294 GB, free: 9.801 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.03509/0.604, allocations: 13.89 MB / 0.543 GB, free: 7.699 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005818/0.6098, allocations: 3.02 MB / 0.546 GB, free: 6.785 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002181/0.612, allocations: 0.8829 MB / 0.5468 GB, free: 6.625 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002728/0.6148, allocations: 1.25 MB / 0.548 GB, free: 6.344 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009913/0.6158, allocations: 138.5 kB / 0.5482 GB, free: 6.336 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00306/0.6189, allocations: 0.8908 MB / 0.549 GB, free: 6.141 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002487/0.6215, allocations: 1.405 MB / 0.5504 GB, free: 5.855 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0014/0.6229, allocations: 0.7343 MB / 0.5511 GB, free: 5.824 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007226/0.6302, allocations: 5.029 MB / 0.556 GB, free: 1.691 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.6302, allocations: 0 / 0.556 GB, free: 1.691 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.196e-06/0.6303, allocations: 0 / 0.556 GB, free: 1.691 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001862/0.6305, allocations: 0 / 0.556 GB, free: 1.691 MB / 362.7 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.01332/0.6438, allocations: 3.672 MB / 0.5596 GB, free: 14.28 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.318e-05/0.6439, allocations: 8.031 kB / 0.5596 GB, free: 14.27 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1759/0.8198, allocations: 8.311 MB / 0.5678 GB, free: 6.355 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0086/0.8285, allocations: 2.569 MB / 0.5703 GB, free: 4.477 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002394/0.8288, allocations: 192.6 kB / 0.5704 GB, free: 4.371 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00124/0.83, allocations: 258.4 kB / 0.5707 GB, free: 4.207 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02099/0.851, allocations: 8.725 MB / 0.5792 GB, free: 13.27 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001858/0.8513, allocations: 35.75 kB / 0.5793 GB, free: 13.24 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005942/0.8519, allocations: 133.4 kB / 0.5794 GB, free: 13.2 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005289/0.8572, allocations: 1.837 MB / 0.5812 GB, free: 11.65 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0222/0.8794, allocations: 7.359 MB / 0.5884 GB, free: 5.297 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06212/0.9416, allocations: 34.06 MB / 0.6216 GB, free: 2.414 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008623/0.9502, allocations: 2.539 MB / 0.6241 GB, free: 15.73 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005523/0.9508, allocations: 329.4 kB / 0.6244 GB, free: 15.36 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.09e-05/0.9509, allocations: 49.14 kB / 0.6245 GB, free: 15.3 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 4.699e-06/0.9509, allocations: 0 / 0.6245 GB, free: 15.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=133): time 0.03889/0.9898, allocations: 9.199 MB / 0.6334 GB, free: 5.961 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001225/0.99, allocations: 196.5 kB / 0.6336 GB, free: 5.727 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009867/0.9999, allocations: 4.079 MB / 0.6376 GB, free: 1.668 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003163/1, allocations: 44.67 kB / 0.6377 GB, free: 1.621 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003329/1.004, allocations: 2.913 MB / 0.6405 GB, free: 14.73 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009491/1.005, allocations: 0.5382 MB / 0.641 GB, free: 14.2 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005692/1.005, allocations: 112 kB / 0.6411 GB, free: 14.09 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.00047/1.006, allocations: 0.5506 MB / 0.6417 GB, free: 13.52 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004858/1.011, allocations: 1.674 MB / 0.6433 GB, free: 11.84 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008989/1.02, allocations: 5.472 MB / 0.6487 GB, free: 4.453 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008874/1.029, allocations: 2.987 MB / 0.6516 GB, free: 1.465 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001323/1.029, allocations: 36 kB / 0.6516 GB, free: 1.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.02025/1.049, allocations: 6.931 MB / 0.6584 GB, free: 10.49 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001248/1.049, allocations: 65.97 kB / 0.6584 GB, free: 10.43 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002287/1.049, allocations: 140.1 kB / 0.6586 GB, free: 10.29 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001617/1.051, allocations: 430.6 kB / 0.659 GB, free: 9.867 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007683/1.059, allocations: 1.326 MB / 0.6603 GB, free: 8.539 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006099/1.065, allocations: 3.17 MB / 0.6634 GB, free: 5.242 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005809/1.071, allocations: 311.4 kB / 0.6637 GB, free: 4.938 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001195/1.072, allocations: 368 kB / 0.664 GB, free: 4.578 MB / 474.7 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.00525/1.077, allocations: 1.935 MB / 0.6659 GB, free: 2.629 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008589/1.078, allocations: 331.7 kB / 0.6662 GB, free: 2.301 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005249/1.083, allocations: 1.7 MB / 0.6679 GB, free: 0.5859 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.475e-05/1.084, allocations: 19.94 kB / 0.6679 GB, free: 0.5664 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.429e-05/1.084, allocations: 7.953 kB / 0.6679 GB, free: 0.5586 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.579e-05/1.084, allocations: 3.984 kB / 0.6679 GB, free: 0.5547 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01646/1.1, allocations: 5.438 MB / 0.6732 GB, free: 11.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.614e-05/1.1, allocations: 0 / 0.6732 GB, free: 11.07 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001754/1.102, allocations: 191.8 kB / 0.6734 GB, free: 10.88 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001139/1.103, allocations: 229.2 kB / 0.6736 GB, free: 10.66 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002197/1.103, allocations: 25.97 kB / 0.6737 GB, free: 10.63 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004723/1.108, allocations: 2.583 MB / 0.6762 GB, free: 7.918 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.808e-06/1.108, allocations: 0 / 0.6762 GB, free: 7.918 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009041/1.117, allocations: 3.723 MB / 0.6798 GB, free: 4.117 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002061/1.119, allocations: 0.5395 MB / 0.6803 GB, free: 3.555 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009121/1.12, allocations: 20 kB / 0.6804 GB, free: 3.535 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002399/1.123, allocations: 64 kB / 0.6804 GB, free: 3.473 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004465/1.123, allocations: 66.97 kB / 0.6805 GB, free: 3.41 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001837/1.123, allocations: 43.94 kB / 0.6805 GB, free: 3.367 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006991/1.13, allocations: 2.563 MB / 0.683 GB, free: 0.8242 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.01e-07/1.13, allocations: 4 kB / 0.683 GB, free: 0.8203 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.006562/1.137, allocations: 0.8633 MB / 0.6839 GB, free: 15.95 MB / 0.4949 GB 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.0007631/1.138, allocations: 174.4 kB / 0.684 GB, free: 15.78 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.011/1.149, allocations: 4.064 MB / 0.688 GB, free: 11.74 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/1.149, allocations: 0 / 0.688 GB, free: 11.74 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.002714/1.152, allocations: 1.009 MB / 0.689 GB, free: 10.71 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003035/1.155, allocations: 361.1 kB / 0.6893 GB, free: 10.36 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02339/1.178, allocations: 9.574 MB / 0.6987 GB, free: 0.7383 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006162/1.184, allocations: 3.038 MB / 0.7017 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001423/1.186, allocations: 275.4 kB / 0.7019 GB, free: 13.4 MB / 0.5105 GB Notification: Performance of SimCode: time 1.502e-06/1.186, allocations: 0 / 0.7019 GB, free: 13.4 MB / 0.5105 GB Notification: Performance of Templates: time 0.463/1.649, allocations: 65.22 MB / 0.7656 GB, free: 148.1 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/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_cpp_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches