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.001854/0.001854, allocations: 115.4 kB / 17.08 MB, free: 5.996 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.002536/0.002536, allocations: 194.4 kB / 18.01 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.498/2.498, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3861/0.3861, allocations: 43.53 MB / 314.8 MB, free: 460 kB / 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.002461/0.002461, allocations: 71.89 kB / 442.5 MB, free: 5.672 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2039/0.2064, allocations: 57.79 MB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01948/0.226, allocations: 10.01 MB / 0.4983 GB, free: 1.746 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01517/0.2412, allocations: 3.688 MB / 0.5019 GB, free: 14.05 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003737/0.2452, allocations: 55.88 kB / 0.502 GB, free: 13.99 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007034/0.2523, allocations: 1.966 MB / 0.5039 GB, free: 12.02 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008926/0.2613, allocations: 1.739 MB / 0.5056 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003053/0.2644, allocations: 0.5614 MB / 0.5061 GB, free: 9.711 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0108/0.2752, allocations: 3.747 MB / 0.5098 GB, free: 5.953 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006617/0.2819, allocations: 2.55 MB / 0.5123 GB, free: 3.348 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004688/0.2867, allocations: 1.289 MB / 0.5135 GB, free: 2.055 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005415/0.2922, allocations: 1.822 MB / 0.5153 GB, free: 232 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00206/0.2943, allocations: 276 kB / 0.5156 GB, free: 15.95 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005548/0.2999, allocations: 1.147 MB / 0.5167 GB, free: 14.81 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004583/0.3046, allocations: 1.703 MB / 0.5184 GB, free: 13.1 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006763/0.3114, allocations: 1.934 MB / 0.5202 GB, free: 11.16 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01828/0.3298, allocations: 6.408 MB / 0.5265 GB, free: 4.727 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.569e-05/0.3299, allocations: 0 / 0.5265 GB, free: 4.727 MB / 414.1 MB Notification: Performance of FrontEnd: time 9.899e-06/0.3299, allocations: 7.922 kB / 0.5265 GB, free: 4.719 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003755/0.3303, allocations: 0 / 0.5265 GB, free: 4.719 MB / 414.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.02316/0.3535, allocations: 4.202 MB / 0.5306 GB, free: 464 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.278e-05/0.3536, allocations: 15.89 kB / 0.5306 GB, free: 448 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5932/0.9468, allocations: 2.433 MB / 0.533 GB, free: 21.6 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0119/0.9587, allocations: 2.447 MB / 0.5354 GB, free: 21.14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005571/0.9594, allocations: 196.5 kB / 0.5356 GB, free: 21.14 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002314/0.9617, allocations: 259.3 kB / 0.5358 GB, free: 21.13 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03701/0.9988, allocations: 8.762 MB / 0.5444 GB, free: 19.36 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005958/0.9995, allocations: 38.84 kB / 0.5444 GB, free: 19.36 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00229/1.002, allocations: 130.5 kB / 0.5445 GB, free: 19.36 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006936/1.009, allocations: 1.833 MB / 0.5463 GB, free: 19.34 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02971/1.039, allocations: 7.47 MB / 0.5536 GB, free: 17.22 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07404/1.113, allocations: 34.12 MB / 0.587 GB, free: 3.281 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009499/1.122, allocations: 2.592 MB / 0.5895 GB, free: 0.5508 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003595/1.126, allocations: 1.188 MB / 0.5906 GB, free: 15.36 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008424/1.127, allocations: 329 kB / 0.591 GB, free: 14.98 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.392e-05/1.127, allocations: 47.12 kB / 0.591 GB, free: 14.93 MB / 446.1 MB Notification: Performance of pre-optimization done (n=119): time 1.041e-05/1.127, allocations: 6.406 kB / 0.591 GB, free: 14.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=133): time 0.04869/1.176, allocations: 9.823 MB / 0.6006 GB, free: 5.035 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001909/1.176, allocations: 195 kB / 0.6008 GB, free: 4.805 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01277/1.189, allocations: 3.962 MB / 0.6047 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005165/1.189, allocations: 47.67 kB / 0.6047 GB, free: 0.8086 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004671/1.194, allocations: 2.94 MB / 0.6076 GB, free: 13.89 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001416/1.195, allocations: 0.5548 MB / 0.6081 GB, free: 13.34 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004967/1.2, allocations: 1.202 MB / 0.6093 GB, free: 12.12 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/1.201, allocations: 301.1 kB / 0.6096 GB, free: 11.83 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005926/1.207, allocations: 1.8 MB / 0.6113 GB, free: 10.02 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01136/1.218, allocations: 5.636 MB / 0.6168 GB, free: 2.535 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01666/1.235, allocations: 8.052 MB / 0.6247 GB, free: 8.898 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002569/1.235, allocations: 36 kB / 0.6247 GB, free: 8.863 MB / 478.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.0265/1.262, allocations: 7.59 MB / 0.6321 GB, free: 1.266 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003689/1.262, allocations: 64.19 kB / 0.6322 GB, free: 1.203 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004384/1.263, allocations: 136.6 kB / 0.6323 GB, free: 1.07 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003117/1.266, allocations: 0.6662 MB / 0.633 GB, free: 412 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00782/1.274, allocations: 1.353 MB / 0.6343 GB, free: 15.05 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008942/1.283, allocations: 4.09 MB / 0.6383 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009086/1.292, allocations: 315.5 kB / 0.6386 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001811/1.294, allocations: 379.9 kB / 0.639 GB, free: 10.14 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 (735): * Single equations (assignments): 731 * 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 {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007352/1.301, allocations: 1.949 MB / 0.6409 GB, free: 8.176 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001536/1.303, allocations: 323.5 kB / 0.6412 GB, free: 7.859 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007865/1.31, allocations: 2.066 MB / 0.6432 GB, free: 5.773 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.15e-05/1.311, allocations: 16 kB / 0.6432 GB, free: 5.758 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.152e-05/1.311, allocations: 4 kB / 0.6432 GB, free: 5.754 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.223e-05/1.311, allocations: 7.969 kB / 0.6432 GB, free: 5.746 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02288/1.334, allocations: 5.799 MB / 0.6489 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-05/1.334, allocations: 4 kB / 0.6489 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001614/1.335, allocations: 179.7 kB / 0.6491 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002408/1.338, allocations: 488.4 kB / 0.6495 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003341/1.338, allocations: 33.67 kB / 0.6496 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0074/1.346, allocations: 3.442 MB / 0.6529 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.215e-05/1.346, allocations: 12 kB / 0.6529 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01124/1.357, allocations: 4.001 MB / 0.6568 GB, free: 7.582 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002786/1.36, allocations: 0.5358 MB / 0.6574 GB, free: 7.023 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001576/1.361, allocations: 16 kB / 0.6574 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002755/1.364, allocations: 72.8 kB / 0.6575 GB, free: 6.938 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004136/1.365, allocations: 72.34 kB / 0.6575 GB, free: 6.867 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000188/1.365, allocations: 39.98 kB / 0.6576 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.008753/1.374, allocations: 2.472 MB / 0.66 GB, free: 4.375 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.673e-06/1.374, allocations: 0 / 0.66 GB, free: 4.375 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01331/1.387, allocations: 0.8811 MB / 0.6608 GB, free: 3.496 MB / 0.4981 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 (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.0009947/1.388, allocations: 146.2 kB / 0.661 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01357/1.402, allocations: 4.324 MB / 0.6652 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.672e-05/1.402, allocations: 384 / 0.6652 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.003141/1.405, allocations: 1.071 MB / 0.6662 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00596/1.411, allocations: 391.4 kB / 0.6666 GB, free: 13.6 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02853/1.439, allocations: 8.226 MB / 0.6746 GB, free: 5.32 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007604/1.447, allocations: 2.937 MB / 0.6775 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001651/1.449, allocations: 279.4 kB / 0.6778 GB, free: 2.082 MB / 0.5137 GB Notification: Performance of SimCode: time 1.733e-06/1.449, allocations: 0 / 0.6778 GB, free: 2.082 MB / 0.5137 GB Notification: Performance of Templates: time 0.1696/1.619, allocations: 68.12 MB / 0.7443 GB, free: 13.88 MB / 0.5919 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.makefile (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) diffSimulationResults("ModelicaTest_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches