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.00129/0.00129, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.274/1.274, allocations: 227.2 MB / 245 MB, free: 7.586 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000983/0.000983, allocations: 106.9 kB / 297.3 MB, free: 6.176 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3137/0.3137, allocations: 45.22 MB / 394.7 MB, free: 31.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002597/0.0002598, allocations: 8 kB / 468.4 MB, free: 7.727 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3695/0.3698, allocations: 63.24 MB / 0.5192 GB, free: 44.15 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1315/0.5014, allocations: 106.7 MB / 0.6234 GB, free: 14.89 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001978/0.5016, allocations: 83.95 kB / 0.6235 GB, free: 14.81 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1923/0.6939, allocations: 76.57 MB / 0.6982 GB, free: 1.809 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.273e-06/0.694, allocations: 0 / 0.6982 GB, free: 1.809 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001877/0.6942, allocations: 68 kB / 0.6983 GB, free: 1.742 MB / 0.4948 GB 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.2487/0.9429, allocations: 3.612 MB / 0.7018 GB, free: 97.98 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.943, allocations: 8.875 kB / 0.7018 GB, free: 97.98 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01542/0.9584, allocations: 4.273 MB / 0.706 GB, free: 97.74 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00882/0.9673, allocations: 3.627 MB / 0.7096 GB, free: 97.44 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002028/0.9675, allocations: 265.2 kB / 0.7098 GB, free: 97.43 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006614/0.9682, allocations: 347.6 kB / 0.7101 GB, free: 97.43 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009804/0.978, allocations: 8.571 MB / 0.7185 GB, free: 94.86 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.569e-05/0.9781, allocations: 53.12 kB / 0.7186 GB, free: 94.86 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003824/0.9785, allocations: 170.5 kB / 0.7187 GB, free: 94.86 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007697/0.9793, allocations: 0.8269 MB / 0.7195 GB, free: 94.85 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008966/0.9882, allocations: 6.868 MB / 0.7262 GB, free: 94.79 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03638/1.025, allocations: 40.95 MB / 0.7662 GB, free: 64.53 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004203/1.029, allocations: 2.424 MB / 0.7686 GB, free: 63.34 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000276/1.029, allocations: 326.7 kB / 0.7689 GB, free: 63.05 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.837e-05/1.029, allocations: 50.28 kB / 0.769 GB, free: 63 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=104): time 3.997e-06/1.029, allocations: 0 / 0.769 GB, free: 63 MB / 0.4948 GB Notification: Performance of matching and sorting (n=118): time 0.01689/1.046, allocations: 8.309 MB / 0.7771 GB, free: 59.04 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.311e-05/1.046, allocations: 202.3 kB / 0.7773 GB, free: 58.81 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003725/1.05, allocations: 3.379 MB / 0.7806 GB, free: 57.58 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001253/1.05, allocations: 46.08 kB / 0.7806 GB, free: 57.54 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001202/1.051, allocations: 2.822 MB / 0.7834 GB, free: 55.36 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003274/1.052, allocations: 494.6 kB / 0.7838 GB, free: 55.03 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001663/1.052, allocations: 110.4 kB / 0.7839 GB, free: 54.94 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002005/1.052, allocations: 0.5306 MB / 0.7845 GB, free: 54.54 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001678/1.054, allocations: 1.546 MB / 0.786 GB, free: 54.06 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002917/1.057, allocations: 5.145 MB / 0.791 GB, free: 48.55 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002897/1.06, allocations: 2.785 MB / 0.7937 GB, free: 47.41 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.343e-05/1.06, allocations: 42.84 kB / 0.7938 GB, free: 47.41 MB / 0.4948 GB Notification: Performance of matching and sorting (n=709) (initialization): time 0.007723/1.067, allocations: 6.557 MB / 0.8002 GB, free: 44.86 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 5.988e-05/1.067, allocations: 60.94 kB / 0.8002 GB, free: 44.86 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.956e-05/1.068, allocations: 129.9 kB / 0.8003 GB, free: 44.86 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006277/1.068, allocations: 354.9 kB / 0.8007 GB, free: 44.82 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00293/1.071, allocations: 1.249 MB / 0.8019 GB, free: 44.66 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002366/1.073, allocations: 2.772 MB / 0.8046 GB, free: 42.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003381/1.077, allocations: 287.8 kB / 0.8049 GB, free: 42.64 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005162/1.077, allocations: 346.9 kB / 0.8052 GB, free: 42.6 MB / 0.4948 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 () * Number of clocked 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.002553/1.08, allocations: 1.84 MB / 0.807 GB, free: 41.71 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004722/1.08, allocations: 312 kB / 0.8073 GB, free: 41.54 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002061/1.083, allocations: 1.355 MB / 0.8086 GB, free: 41 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.066e-05/1.083, allocations: 16.06 kB / 0.8086 GB, free: 41 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/1.083, allocations: 0 / 0.8086 GB, free: 41 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.052e-05/1.083, allocations: 11.22 kB / 0.8087 GB, free: 41 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007505/1.09, allocations: 4.793 MB / 0.8133 GB, free: 39.15 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.488e-06/1.09, allocations: 7.141 kB / 0.8133 GB, free: 39.15 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007626/1.091, allocations: 163.6 kB / 0.8135 GB, free: 39.14 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004288/1.091, allocations: 151.8 kB / 0.8136 GB, free: 39.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.99e-05/1.091, allocations: 21.39 kB / 0.8137 GB, free: 39.09 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001785/1.093, allocations: 2.195 MB / 0.8158 GB, free: 37.43 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/1.093, allocations: 7.906 kB / 0.8158 GB, free: 37.43 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00344/1.097, allocations: 3.212 MB / 0.819 GB, free: 35.88 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008026/1.097, allocations: 380.2 kB / 0.8193 GB, free: 35.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002881/1.098, allocations: 21.11 kB / 0.8193 GB, free: 35.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008717/1.099, allocations: 45.06 kB / 0.8194 GB, free: 35.56 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001383/1.099, allocations: 67.23 kB / 0.8194 GB, free: 35.55 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.944e-05/1.099, allocations: 30.09 kB / 0.8195 GB, free: 35.54 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003132/1.102, allocations: 2.343 MB / 0.8218 GB, free: 34.76 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.11e-07/1.102, allocations: 0 / 0.8218 GB, free: 34.76 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004059/1.106, allocations: 0.7994 MB / 0.8225 GB, free: 34.16 MB / 0.4948 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 () * Number of clocked 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.0003271/1.106, allocations: 155.1 kB / 0.8227 GB, free: 34.01 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004557/1.111, allocations: 3.758 MB / 0.8264 GB, free: 30.7 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/1.111, allocations: 4 kB / 0.8264 GB, free: 30.69 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009267/1.112, allocations: 0.8984 MB / 0.8272 GB, free: 29.88 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001527/1.114, allocations: 357.6 kB / 0.8276 GB, free: 29.58 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01026/1.124, allocations: 8.49 MB / 0.8359 GB, free: 21.79 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002467/1.126, allocations: 2.879 MB / 0.8387 GB, free: 19.58 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.003849/1.13, allocations: 1.717 MB / 0.8404 GB, free: 18.51 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00045/1.131, allocations: 214.1 kB / 0.8406 GB, free: 18.31 MB / 0.4948 GB Notification: Performance of SimCode: time 7.82e-07/1.131, allocations: 0 / 0.8406 GB, free: 18.31 MB / 0.4948 GB Notification: Performance of Templates: time 0.04124/1.172, allocations: 26.06 MB / 0.866 GB, free: 12.41 MB / 0.5105 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