Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001186/0.001185, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.218/1.218, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007603/0.0007603, allocations: 87.44 kB / 292.1 MB, free: 5.973 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1697/0.1697, allocations: 45.15 MB / 389.3 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.761e-05/2.782e-05, allocations: 4 kB / 460.4 MB, free: 70.03 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09461/0.09465, allocations: 63.25 MB / 0.5114 GB, free: 6.809 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3409/0.4356, allocations: 106.6 MB / 0.6155 GB, free: 3.562 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002255/0.4359, allocations: 74.84 kB / 0.6156 GB, free: 3.527 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1795/0.6154, allocations: 76.61 MB / 0.6904 GB, free: 14.98 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.6155, allocations: 0 / 0.6904 GB, free: 14.98 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001214/0.6156, allocations: 68 kB / 0.6904 GB, free: 14.91 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.007715/0.6233, allocations: 3.384 MB / 0.6937 GB, free: 11.47 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.6234, allocations: 11.97 kB / 0.6938 GB, free: 11.46 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01591/0.6393, allocations: 4.289 MB / 0.6979 GB, free: 7.156 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008204/0.6476, allocations: 3.596 MB / 0.7015 GB, free: 3.496 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001767/0.6478, allocations: 266.8 kB / 0.7017 GB, free: 3.234 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008121/0.6486, allocations: 347.8 kB / 0.702 GB, free: 2.895 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01185/0.6604, allocations: 8.494 MB / 0.7103 GB, free: 9.426 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000107/0.6606, allocations: 55.47 kB / 0.7104 GB, free: 9.371 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003966/0.661, allocations: 171.9 kB / 0.7106 GB, free: 9.203 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008854/0.6619, allocations: 0.8293 MB / 0.7114 GB, free: 8.371 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01105/0.6729, allocations: 6.74 MB / 0.7179 GB, free: 1.617 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2873/0.9603, allocations: 40.94 MB / 0.7579 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004086/0.9644, allocations: 2.391 MB / 0.7603 GB, free: 109.6 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001071/0.9655, allocations: 1.002 MB / 0.7612 GB, free: 109.6 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002849/0.9658, allocations: 325.7 kB / 0.7616 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.402e-05/0.9658, allocations: 45.75 kB / 0.7616 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=104): time 3.036e-06/0.9658, allocations: 0 / 0.7616 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of matching and sorting (n=118): time 0.01562/0.9815, allocations: 6.982 MB / 0.7684 GB, free: 107.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.336e-05/0.9815, allocations: 193.3 kB / 0.7686 GB, free: 106.9 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005172/0.9867, allocations: 3.342 MB / 0.7719 GB, free: 106.6 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002026/0.987, allocations: 43.44 kB / 0.7719 GB, free: 106.5 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.001726/0.9887, allocations: 2.826 MB / 0.7747 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004329/0.9891, allocations: 0.4891 MB / 0.7751 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001675/0.9893, allocations: 105.9 kB / 0.7752 GB, free: 104.9 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002512/0.9896, allocations: 0.5403 MB / 0.7758 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002005/0.9916, allocations: 1.502 MB / 0.7772 GB, free: 104.6 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002661/0.9943, allocations: 5.108 MB / 0.7822 GB, free: 99.84 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002659/0.9969, allocations: 2.788 MB / 0.7849 GB, free: 99.82 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.059e-05/0.997, allocations: 35.03 kB / 0.785 GB, free: 99.82 MB / 0.5261 GB Notification: Performance of matching and sorting (n=709) (initialization): time 0.007783/1.005, allocations: 6.481 MB / 0.7913 GB, free: 99.49 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.378e-05/1.005, allocations: 60.5 kB / 0.7914 GB, free: 99.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.76e-05/1.005, allocations: 129.1 kB / 0.7915 GB, free: 99.49 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005793/1.006, allocations: 355.9 kB / 0.7918 GB, free: 99.48 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002826/1.008, allocations: 1.249 MB / 0.793 GB, free: 99.36 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002216/1.011, allocations: 2.73 MB / 0.7957 GB, free: 97.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003161/1.014, allocations: 284.2 kB / 0.796 GB, free: 97.93 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003349/1.014, allocations: 347.4 kB / 0.7963 GB, free: 97.93 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrow.arrowLine.twoHeadedArrow,distance1.arrow.headAtOrigin,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (674): * Single equations (assignments): 670 * 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.0004773/1.015, allocations: 0.5341 MB / 0.7968 GB, free: 97.62 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003206/1.015, allocations: 311.1 kB / 0.7971 GB, free: 97.45 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001898/1.017, allocations: 1.34 MB / 0.7984 GB, free: 97.34 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.725e-05/1.017, allocations: 21.34 kB / 0.7985 GB, free: 97.34 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/1.017, allocations: 3.5 kB / 0.7985 GB, free: 97.34 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.217e-06/1.017, allocations: 3.562 kB / 0.7985 GB, free: 97.34 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006618/1.024, allocations: 4.775 MB / 0.8031 GB, free: 96.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/1.024, allocations: 3.781 kB / 0.8031 GB, free: 96.57 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006893/1.024, allocations: 166.1 kB / 0.8033 GB, free: 96.56 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003902/1.025, allocations: 153 kB / 0.8034 GB, free: 96.52 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.948e-05/1.025, allocations: 27.42 kB / 0.8035 GB, free: 96.51 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001652/1.026, allocations: 2.147 MB / 0.8056 GB, free: 94.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/1.026, allocations: 0 / 0.8056 GB, free: 94.88 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002955/1.029, allocations: 3.178 MB / 0.8087 GB, free: 93.36 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006479/1.03, allocations: 364.8 kB / 0.809 GB, free: 93.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002523/1.03, allocations: 20.7 kB / 0.809 GB, free: 93.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008457/1.031, allocations: 51.77 kB / 0.8091 GB, free: 93.05 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/1.031, allocations: 63.61 kB / 0.8091 GB, free: 93.04 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.416e-05/1.031, allocations: 28.17 kB / 0.8092 GB, free: 93.04 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002572/1.034, allocations: 2.316 MB / 0.8114 GB, free: 92.24 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.51e-07/1.034, allocations: 3.281 kB / 0.8114 GB, free: 92.24 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003658/1.038, allocations: 0.8008 MB / 0.8122 GB, free: 92.14 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (88): * Single equations (assignments): 84 * 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.0003473/1.038, allocations: 161.5 kB / 0.8124 GB, free: 92.02 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004447/1.042, allocations: 3.686 MB / 0.816 GB, free: 90.73 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/1.042, allocations: 7.844 kB / 0.816 GB, free: 90.73 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0008809/1.043, allocations: 0.8835 MB / 0.8168 GB, free: 90.34 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00175/1.045, allocations: 368.9 kB / 0.8172 GB, free: 90.18 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01037/1.055, allocations: 5.801 MB / 0.8229 GB, free: 88.06 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003339/1.059, allocations: 2.873 MB / 0.8257 GB, free: 86.88 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.003932/1.063, allocations: 1.716 MB / 0.8273 GB, free: 86.75 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006328/1.063, allocations: 212.4 kB / 0.8275 GB, free: 86.73 MB / 0.5261 GB Notification: Performance of SimCode: time 8.22e-07/1.063, allocations: 2.188 kB / 0.8275 GB, free: 86.73 MB / 0.5261 GB Notification: Performance of Templates: time 0.04306/1.106, allocations: 26.08 MB / 0.853 GB, free: 73.88 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches