Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 109.4 kB / 17.21 MB, free: 6.27 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.001295/0.001295, allocations: 194 kB / 18.12 MB, free: 5.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.377/1.377, allocations: 222.9 MB / 241.8 MB, free: 15.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.23/0.23, allocations: 44.17 MB / 336.1 MB, free: 2.934 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002058/0.002058, allocations: 69.31 kB / 407.7 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1559/0.158, allocations: 60.83 MB / 468.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.03323/0.1913, allocations: 33.51 MB / 0.4903 GB, free: 13.19 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01753/0.2089, allocations: 7.665 MB / 0.4977 GB, free: 5.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007379/0.2163, allocations: 143.6 kB / 0.4979 GB, free: 5.359 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004036/0.2203, allocations: 1.652 MB / 0.4995 GB, free: 3.703 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004158/0.2246, allocations: 1.483 MB / 0.5009 GB, free: 2.215 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001377/0.226, allocations: 0.507 MB / 0.5014 GB, free: 1.707 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2976/0.5236, allocations: 5.078 MB / 0.5064 GB, free: 10.8 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003812/0.5274, allocations: 2.192 MB / 0.5085 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002211/0.5297, allocations: 0.9825 MB / 0.5095 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002716/0.5324, allocations: 1.68 MB / 0.5111 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005911/0.533, allocations: 161.6 kB / 0.5113 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00269/0.5357, allocations: 1.111 MB / 0.5124 GB, free: 10.47 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0019/0.5376, allocations: 1.414 MB / 0.5138 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00191/0.5395, allocations: 1.611 MB / 0.5153 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006651/0.5462, allocations: 5.293 MB / 0.5205 GB, free: 8.988 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.5462, allocations: 3.75 kB / 0.5205 GB, free: 8.988 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5462, allocations: 0 / 0.5205 GB, free: 8.988 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001479/0.5464, allocations: 1.375 kB / 0.5205 GB, free: 8.988 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: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.009082/0.5555, allocations: 3.744 MB / 0.5242 GB, free: 7.242 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.5555, allocations: 9.812 kB / 0.5242 GB, free: 7.242 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01464/0.5702, allocations: 2.349 MB / 0.5265 GB, free: 6.199 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006326/0.5766, allocations: 2.198 MB / 0.5286 GB, free: 5.383 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000152/0.5768, allocations: 168.8 kB / 0.5288 GB, free: 5.375 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008736/0.5776, allocations: 216.9 kB / 0.529 GB, free: 5.371 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01186/0.5895, allocations: 7.597 MB / 0.5364 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001012/0.5897, allocations: 39.03 kB / 0.5364 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003212/0.59, allocations: 103.5 kB / 0.5365 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00238/0.5924, allocations: 1.606 MB / 0.5381 GB, free: 88 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01316/0.6055, allocations: 6.469 MB / 0.5444 GB, free: 10.26 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04071/0.6463, allocations: 30.67 MB / 0.5744 GB, free: 11.03 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00487/0.6512, allocations: 2.234 MB / 0.5766 GB, free: 8.66 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001591/0.6529, allocations: 1.136 MB / 0.5777 GB, free: 7.516 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004083/0.6533, allocations: 316.9 kB / 0.578 GB, free: 7.156 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.118e-05/0.6533, allocations: 47 kB / 0.578 GB, free: 7.102 MB / 430.1 MB Notification: Performance of pre-optimization done (n=108): time 4.037e-06/0.6533, allocations: 3.281 kB / 0.578 GB, free: 7.102 MB / 430.1 MB Notification: Performance of matching and sorting (n=132): time 0.04024/0.6936, allocations: 11.87 MB / 0.5896 GB, free: 11.12 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001368/0.6938, allocations: 199 kB / 0.5898 GB, free: 10.89 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005972/0.6998, allocations: 3.664 MB / 0.5934 GB, free: 7.227 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002953/0.7001, allocations: 41.7 kB / 0.5934 GB, free: 7.18 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001869/0.7019, allocations: 2.587 MB / 0.5959 GB, free: 4.602 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006464/0.7026, allocations: 0.5338 MB / 0.5965 GB, free: 4.07 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001395/0.704, allocations: 1.083 MB / 0.5975 GB, free: 2.977 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.798e-05/0.7041, allocations: 301.1 kB / 0.5978 GB, free: 2.68 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002521/0.7066, allocations: 1.748 MB / 0.5995 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005087/0.7117, allocations: 5.109 MB / 0.6045 GB, free: 10.18 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01029/0.722, allocations: 7.391 MB / 0.6117 GB, free: 1.617 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001329/0.7222, allocations: 36 kB / 0.6118 GB, free: 1.582 MB / 462.1 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.0162/0.7384, allocations: 7.093 MB / 0.6187 GB, free: 11.11 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.728e-05/0.7386, allocations: 56 kB / 0.6187 GB, free: 11.05 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001758/0.7387, allocations: 120 kB / 0.6189 GB, free: 10.94 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001697/0.7404, allocations: 0.6371 MB / 0.6195 GB, free: 10.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004257/0.7447, allocations: 1.228 MB / 0.6207 GB, free: 9.066 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005135/0.7499, allocations: 3.768 MB / 0.6244 GB, free: 5.168 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005163/0.7551, allocations: 299.5 kB / 0.6246 GB, free: 4.875 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001338/0.7564, allocations: 332.4 kB / 0.625 GB, free: 4.551 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Distance1.arrowColor[3],Distance1.arrowColor[2],Distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.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 (662): * Single equations (assignments): 658 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005419/0.7619, allocations: 1.729 MB / 0.6266 GB, free: 2.812 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001241/0.7631, allocations: 308 kB / 0.6269 GB, free: 2.508 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005396/0.7685, allocations: 2.088 MB / 0.629 GB, free: 412 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.972e-05/0.7686, allocations: 22.36 kB / 0.629 GB, free: 392 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.447e-05/0.7686, allocations: 4 kB / 0.629 GB, free: 388 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.087e-05/0.7686, allocations: 7.984 kB / 0.629 GB, free: 380 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01467/0.7833, allocations: 5.728 MB / 0.6346 GB, free: 10.58 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.45e-05/0.7834, allocations: 4.062 kB / 0.6346 GB, free: 10.58 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001033/0.7844, allocations: 199.7 kB / 0.6348 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001377/0.7858, allocations: 480.2 kB / 0.6353 GB, free: 9.91 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000128/0.7859, allocations: 24 kB / 0.6353 GB, free: 9.887 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003822/0.7898, allocations: 3.215 MB / 0.6384 GB, free: 6.539 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.7898, allocations: 0 / 0.6384 GB, free: 6.539 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006736/0.7965, allocations: 4.167 MB / 0.6425 GB, free: 2.34 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001275/0.7978, allocations: 357.1 kB / 0.6428 GB, free: 1.969 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008915/0.7988, allocations: 31.98 kB / 0.6429 GB, free: 1.938 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001698/0.8005, allocations: 74.17 kB / 0.6429 GB, free: 1.867 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002457/0.8007, allocations: 68.84 kB / 0.643 GB, free: 1.801 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001176/0.8009, allocations: 35.98 kB / 0.643 GB, free: 1.766 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005074/0.8059, allocations: 2.288 MB / 0.6453 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of sort global known variables: time 4.21e-07/0.806, allocations: 3.938 kB / 0.6453 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005692/0.8117, allocations: 0.8086 MB / 0.6461 GB, free: 14.68 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000622/0.8123, allocations: 154.2 kB / 0.6462 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008354/0.8207, allocations: 4.137 MB / 0.6502 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/0.8207, allocations: 1.125 kB / 0.6502 GB, free: 10.39 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001834/0.8226, allocations: 1.133 MB / 0.6513 GB, free: 9.254 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003543/0.8261, allocations: 348.6 kB / 0.6517 GB, free: 8.914 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01759/0.8437, allocations: 8.755 MB / 0.6602 GB, free: 128 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003838/0.8476, allocations: 2.683 MB / 0.6629 GB, free: 13.41 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004343/0.852, allocations: 1.676 MB / 0.6645 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000639/0.8526, allocations: 211.4 kB / 0.6647 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of SimCode: time 7.41e-07/0.8526, allocations: 0 / 0.6647 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of Templates: time 0.05597/0.9086, allocations: 28.49 MB / 0.6925 GB, free: 15.2 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches