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.001166/0.001166, allocations: 106.3 kB / 16.64 MB, free: 6.82 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.001367/0.001367, allocations: 194.5 kB / 17.56 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.411/1.411, allocations: 205.1 MB / 223.4 MB, free: 12.46 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.2059/0.2059, allocations: 43.53 MB / 314.3 MB, free: 0.6992 MB / 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.001704/0.001704, allocations: 65.23 kB / 382.9 MB, free: 57.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1178, allocations: 57.79 MB / 440.7 MB, free: 7.355 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.03878/0.1566, allocations: 41.49 MB / 482.1 MB, free: 13.7 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02188/0.1785, allocations: 8.885 MB / 491 MB, free: 4.785 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009105/0.1877, allocations: 167.6 kB / 491.2 MB, free: 4.621 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004398/0.1921, allocations: 1.866 MB / 493.1 MB, free: 2.75 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005345/0.1975, allocations: 1.624 MB / 494.7 MB, free: 1.121 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001683/0.1992, allocations: 0.5421 MB / 495.2 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006048/0.2053, allocations: 3.876 MB / 499.1 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004469/0.2098, allocations: 2.71 MB / 0.49 GB, free: 9.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002914/0.2127, allocations: 1.296 MB / 0.4913 GB, free: 8.629 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003294/0.2161, allocations: 2.041 MB / 0.4933 GB, free: 6.582 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001132/0.2172, allocations: 272 kB / 0.4936 GB, free: 6.316 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002876/0.2201, allocations: 1.17 MB / 0.4947 GB, free: 5.145 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002408/0.2226, allocations: 1.718 MB / 0.4964 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003818/0.2264, allocations: 1.965 MB / 0.4983 GB, free: 1.445 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006132/0.2326, allocations: 5.04 MB / 0.5032 GB, free: 12.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.2326, allocations: 0 / 0.5032 GB, free: 12.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2326, allocations: 0 / 0.5032 GB, free: 12.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002469/0.2329, allocations: 0 / 0.5032 GB, free: 12.39 MB / 398.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.0113/0.2442, allocations: 4.203 MB / 0.5073 GB, free: 8.125 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.289e-05/0.2442, allocations: 15.89 kB / 0.5073 GB, free: 8.109 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01657/0.2608, allocations: 2.433 MB / 0.5097 GB, free: 5.668 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006774/0.2676, allocations: 2.424 MB / 0.5121 GB, free: 3.195 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002347/0.2679, allocations: 197.3 kB / 0.5123 GB, free: 3 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001392/0.2693, allocations: 259.9 kB / 0.5125 GB, free: 2.746 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01748/0.2868, allocations: 8.749 MB / 0.5211 GB, free: 9.348 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001591/0.287, allocations: 43.59 kB / 0.5211 GB, free: 9.305 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009546/0.288, allocations: 131.9 kB / 0.5212 GB, free: 9.176 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003336/0.2913, allocations: 1.825 MB / 0.523 GB, free: 7.348 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2232/0.5146, allocations: 7.471 MB / 0.5303 GB, free: 86.35 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03968/0.5543, allocations: 34.3 MB / 0.5638 GB, free: 63.2 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004518/0.5589, allocations: 2.592 MB / 0.5663 GB, free: 61.55 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00138/0.5603, allocations: 1.182 MB / 0.5675 GB, free: 60.92 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003433/0.5607, allocations: 331.4 kB / 0.5678 GB, free: 60.61 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.5607, allocations: 42.88 kB / 0.5679 GB, free: 60.56 MB / 414.1 MB Notification: Performance of pre-optimization done (n=119): time 4.508e-06/0.5608, allocations: 0.75 kB / 0.5679 GB, free: 60.56 MB / 414.1 MB Notification: Performance of matching and sorting (n=133): time 0.02441/0.5852, allocations: 9.818 MB / 0.5774 GB, free: 54.31 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.222e-05/0.5853, allocations: 200.5 kB / 0.5776 GB, free: 54.07 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005483/0.5908, allocations: 3.964 MB / 0.5815 GB, free: 50.12 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002448/0.591, allocations: 41.7 kB / 0.5815 GB, free: 50.07 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001357/0.5924, allocations: 2.95 MB / 0.5844 GB, free: 47.13 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005346/0.5929, allocations: 0.5434 MB / 0.585 GB, free: 46.59 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001166/0.5941, allocations: 1.206 MB / 0.5861 GB, free: 45.38 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.656e-05/0.5942, allocations: 301.1 kB / 0.5864 GB, free: 45.08 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002009/0.5962, allocations: 1.807 MB / 0.5882 GB, free: 43.27 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003297/0.5995, allocations: 5.632 MB / 0.5937 GB, free: 35.71 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006092/0.6056, allocations: 8.046 MB / 0.6015 GB, free: 25.76 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.179e-05/0.6057, allocations: 40 kB / 0.6016 GB, free: 25.72 MB / 414.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.009927/0.6156, allocations: 7.597 MB / 0.609 GB, free: 18.11 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.198e-05/0.6158, allocations: 64 kB / 0.6091 GB, free: 18.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001212/0.6159, allocations: 136 kB / 0.6092 GB, free: 17.92 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001399/0.6173, allocations: 0.6657 MB / 0.6098 GB, free: 17.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003386/0.6207, allocations: 1.353 MB / 0.6112 GB, free: 15.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003676/0.6244, allocations: 4.099 MB / 0.6152 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004064/0.6285, allocations: 315.4 kB / 0.6155 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006984/0.6292, allocations: 375.9 kB / 0.6158 GB, free: 10.99 MB / 414.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.002992/0.6322, allocations: 1.949 MB / 0.6177 GB, free: 9.027 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007577/0.6329, allocations: 323.8 kB / 0.618 GB, free: 8.707 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00371/0.6367, allocations: 2.069 MB / 0.6201 GB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.068e-05/0.6367, allocations: 15.94 kB / 0.6201 GB, free: 6.598 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.119e-05/0.6367, allocations: 4 kB / 0.6201 GB, free: 6.594 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.426e-05/0.6368, allocations: 7.969 kB / 0.6201 GB, free: 6.586 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01053/0.6473, allocations: 5.813 MB / 0.6258 GB, free: 0.7227 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-05/0.6473, allocations: 4 kB / 0.6258 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000859/0.6482, allocations: 183.8 kB / 0.6259 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001218/0.6494, allocations: 492.3 kB / 0.6264 GB, free: 56 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001311/0.6496, allocations: 20 kB / 0.6264 GB, free: 36 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004173/0.6538, allocations: 3.453 MB / 0.6298 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.6538, allocations: 0 / 0.6298 GB, free: 12.45 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006248/0.6601, allocations: 3.992 MB / 0.6337 GB, free: 8.41 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001417/0.6615, allocations: 0.5396 MB / 0.6342 GB, free: 7.848 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007611/0.6623, allocations: 27.98 kB / 0.6343 GB, free: 7.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001504/0.6638, allocations: 59.92 kB / 0.6343 GB, free: 7.762 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002346/0.664, allocations: 80.41 kB / 0.6344 GB, free: 7.684 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.6641, allocations: 36 kB / 0.6344 GB, free: 7.648 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004676/0.6688, allocations: 2.472 MB / 0.6368 GB, free: 5.195 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6688, allocations: 0 / 0.6368 GB, free: 5.195 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005321/0.6742, allocations: 0.8797 MB / 0.6377 GB, free: 4.324 MB / 430.1 MB 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.0005342/0.6747, allocations: 153.7 kB / 0.6378 GB, free: 4.164 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008635/0.6834, allocations: 4.656 MB / 0.6424 GB, free: 15.54 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.508e-06/0.6834, allocations: 1.375 kB / 0.6424 GB, free: 15.54 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001767/0.6852, allocations: 1.084 MB / 0.6434 GB, free: 14.45 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003205/0.6884, allocations: 379.5 kB / 0.6438 GB, free: 14.08 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01842/0.7069, allocations: 10.01 MB / 0.6536 GB, free: 4.02 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004746/0.7117, allocations: 2.943 MB / 0.6565 GB, free: 1.047 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001018/0.7127, allocations: 275.3 kB / 0.6567 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of SimCode: time 1.282e-06/0.7127, allocations: 0 / 0.6567 GB, free: 0.7773 MB / 446.1 MB Notification: Performance of Templates: time 0.2856/0.9983, allocations: 67.51 MB / 0.7226 GB, free: 167.1 MB / 0.4981 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","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches