Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_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.0007825/0.0007827, allocations: 102.8 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 185.5 kB / 16.92 MB, free: 6.691 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.616/1.616, allocations: 205.4 MB / 223.1 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4139/0.4139, allocations: 43.57 MB / 315 MB, free: 9.031 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.000627/0.0006271, allocations: 16 kB / 384.6 MB, free: 7.891 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1539/0.1545, allocations: 58.87 MB / 443.4 MB, free: 12.93 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.3289/0.4835, allocations: 32.92 MB / 476.4 MB, free: 29.66 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02247/0.506, allocations: 7.663 MB / 484 MB, free: 26.31 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009146/0.5152, allocations: 137.9 kB / 484.2 MB, free: 26.29 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001724/0.517, allocations: 348.1 kB / 484.5 MB, free: 26.16 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006006/0.523, allocations: 1.535 MB / 486 MB, free: 25.51 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002162/0.5252, allocations: 0.5078 MB / 486.5 MB, free: 25.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007088/0.5323, allocations: 4.99 MB / 491.5 MB, free: 23.85 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004863/0.5372, allocations: 3.007 MB / 494.5 MB, free: 22.61 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002092/0.5393, allocations: 0.9001 MB / 495.4 MB, free: 22.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002748/0.5421, allocations: 1.605 MB / 497 MB, free: 21.78 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007868/0.5429, allocations: 112.3 kB / 497.1 MB, free: 21.78 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002725/0.5456, allocations: 1.066 MB / 498.2 MB, free: 21.51 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002339/0.548, allocations: 1.395 MB / 499.6 MB, free: 21.1 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002115/0.5501, allocations: 1.612 MB / 0.4895 GB, free: 19.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01011/0.5602, allocations: 5.371 MB / 0.4947 GB, free: 18.47 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.5603, allocations: 4 kB / 0.4947 GB, free: 18.46 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.898e-06/0.5603, allocations: 2.578 kB / 0.4947 GB, free: 18.46 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002772/0.5606, allocations: 0 / 0.4947 GB, free: 18.46 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: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.01158/0.5722, allocations: 3.183 MB / 0.4978 GB, free: 16.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.203e-05/0.5722, allocations: 9.688 kB / 0.4978 GB, free: 16.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01873/0.591, allocations: 2.439 MB / 0.5002 GB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007352/0.5984, allocations: 2.29 MB / 0.5025 GB, free: 14.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002418/0.5987, allocations: 174.1 kB / 0.5026 GB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001709/0.6004, allocations: 236 kB / 0.5029 GB, free: 14.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01825/0.6187, allocations: 7.903 MB / 0.5106 GB, free: 9.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001319/0.6189, allocations: 33.84 kB / 0.5106 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003745/0.6192, allocations: 116.8 kB / 0.5107 GB, free: 8.973 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002921/0.6222, allocations: 1.668 MB / 0.5123 GB, free: 8.312 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01262/0.6348, allocations: 6.775 MB / 0.519 GB, free: 1.922 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04481/0.6796, allocations: 31.57 MB / 0.5498 GB, free: 1.422 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005477/0.6852, allocations: 2.362 MB / 0.5521 GB, free: 14.91 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001704/0.6869, allocations: 1.186 MB / 0.5532 GB, free: 13.72 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004051/0.6873, allocations: 319.7 kB / 0.5536 GB, free: 13.35 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.491e-05/0.6874, allocations: 47.06 kB / 0.5536 GB, free: 13.3 MB / 430.1 MB Notification: Performance of pre-optimization done (n=117): time 3.997e-06/0.6874, allocations: 0 / 0.5536 GB, free: 13.3 MB / 430.1 MB Notification: Performance of matching and sorting (n=141): time 0.03828/0.7257, allocations: 12.32 MB / 0.5656 GB, free: 0.8242 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001278/0.7259, allocations: 196.8 kB / 0.5658 GB, free: 0.5898 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006106/0.732, allocations: 3.738 MB / 0.5695 GB, free: 12.85 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002811/0.7323, allocations: 49.64 kB / 0.5695 GB, free: 12.8 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002216/0.7345, allocations: 2.662 MB / 0.5721 GB, free: 10.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007078/0.7352, allocations: 0.5672 MB / 0.5727 GB, free: 9.527 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005862/0.7358, allocations: 478.1 kB / 0.5731 GB, free: 9.055 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.7359, allocations: 305.1 kB / 0.5734 GB, free: 8.754 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002854/0.7388, allocations: 1.803 MB / 0.5752 GB, free: 6.945 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005632/0.7444, allocations: 5.252 MB / 0.5803 GB, free: 15.96 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01062/0.7551, allocations: 7.621 MB / 0.5878 GB, free: 6.629 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001113/0.7552, allocations: 36 kB / 0.5878 GB, free: 6.594 MB / 462.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01431/0.7695, allocations: 7.281 MB / 0.5949 GB, free: 15.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.131e-05/0.7697, allocations: 56 kB / 0.5949 GB, free: 15.25 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001328/0.7698, allocations: 120 kB / 0.5951 GB, free: 15.13 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001644/0.7715, allocations: 0.6569 MB / 0.5957 GB, free: 14.47 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00423/0.7757, allocations: 1.263 MB / 0.5969 GB, free: 13.21 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005108/0.7808, allocations: 3.786 MB / 0.6006 GB, free: 9.289 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005252/0.7861, allocations: 311.3 kB / 0.6009 GB, free: 8.984 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001234/0.7874, allocations: 340 kB / 0.6013 GB, free: 8.652 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (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 (684): * Single equations (assignments): 680 * 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.004622/0.792, allocations: 1.782 MB / 0.603 GB, free: 6.859 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009401/0.793, allocations: 304.1 kB / 0.6033 GB, free: 6.559 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005236/0.7982, allocations: 2.23 MB / 0.6055 GB, free: 4.309 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.814e-05/0.7983, allocations: 16 kB / 0.6055 GB, free: 4.293 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/0.7983, allocations: 0 / 0.6055 GB, free: 4.293 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.27e-05/0.7984, allocations: 7.984 kB / 0.6055 GB, free: 4.285 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01714/0.8155, allocations: 5.979 MB / 0.6113 GB, free: 14.21 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.422e-05/0.8156, allocations: 4 kB / 0.6113 GB, free: 14.21 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001233/0.8168, allocations: 211.7 kB / 0.6115 GB, free: 14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0015/0.8183, allocations: 488.3 kB / 0.612 GB, free: 13.52 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002091/0.8186, allocations: 31.98 kB / 0.612 GB, free: 13.49 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004207/0.8228, allocations: 3.213 MB / 0.6152 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.8228, allocations: 4.062 kB / 0.6152 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007803/0.8306, allocations: 4.343 MB / 0.6194 GB, free: 5.762 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002004/0.8327, allocations: 0.5555 MB / 0.62 GB, free: 5.184 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001095/0.8338, allocations: 23.94 kB / 0.62 GB, free: 5.16 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002023/0.8358, allocations: 87.95 kB / 0.6201 GB, free: 5.074 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002774/0.8361, allocations: 76.48 kB / 0.6201 GB, free: 5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001317/0.8363, allocations: 39.98 kB / 0.6202 GB, free: 4.961 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.007194/0.8435, allocations: 2.337 MB / 0.6225 GB, free: 2.637 MB / 494.1 MB Notification: Performance of sort global known variables: time 6.61e-07/0.8435, allocations: 0 / 0.6225 GB, free: 2.637 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.007585/0.8511, allocations: 0.8359 MB / 0.6233 GB, free: 1.801 MB / 494.1 MB 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 (112): * Single equations (assignments): 108 * 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.0008051/0.8519, allocations: 155 kB / 0.6234 GB, free: 1.641 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009928/0.8619, allocations: 4.296 MB / 0.6276 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/0.8619, allocations: 1.125 kB / 0.6276 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002147/0.8641, allocations: 1.197 MB / 0.6288 GB, free: 12.15 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004218/0.8683, allocations: 348.1 kB / 0.6291 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01561/0.884, allocations: 9.153 MB / 0.6381 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2683/1.152, allocations: 2.754 MB / 0.6407 GB, free: 153.9 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.00514/1.157, allocations: 1.727 MB / 0.6424 GB, free: 153.9 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007472/1.158, allocations: 220.7 kB / 0.6426 GB, free: 153.9 MB / 0.4981 GB Notification: Performance of SimCode: time 2.175e-06/1.158, allocations: 0 / 0.6426 GB, free: 153.9 MB / 0.4981 GB Notification: Performance of Templates: time 0.06485/1.223, allocations: 28.96 MB / 0.6709 GB, free: 149.2 MB / 0.4981 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches