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: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 102.8 kB / 16.27 MB, free: 6.41 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.001466/0.001466, allocations: 189.3 kB / 17.2 MB, free: 5.953 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.425/1.425, allocations: 205.1 MB / 223.1 MB, free: 12.32 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.2371/0.2371, allocations: 43.52 MB / 313.9 MB, free: 0.5352 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.001503/0.001503, allocations: 75.03 kB / 382.8 MB, free: 56.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1068, allocations: 57.79 MB / 440.6 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.008946/0.1158, allocations: 9.413 MB / 450 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007293/0.1231, allocations: 3.598 MB / 453.6 MB, free: 9.738 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001455/0.1246, allocations: 47.88 kB / 453.7 MB, free: 9.691 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003077/0.1277, allocations: 1.693 MB / 455.4 MB, free: 7.992 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003971/0.1317, allocations: 1.638 MB / 457 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001185/0.1329, allocations: 0.5653 MB / 457.6 MB, free: 5.781 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00426/0.1372, allocations: 3.509 MB / 461.1 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003094/0.1403, allocations: 2.283 MB / 463.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001773/0.1421, allocations: 1.152 MB / 464.5 MB, free: 14.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002414/0.1445, allocations: 1.624 MB / 466.1 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007308/0.1453, allocations: 236 kB / 466.4 MB, free: 12.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002249/0.1476, allocations: 1.131 MB / 467.5 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001929/0.1495, allocations: 1.508 MB / 469 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002843/0.1524, allocations: 1.798 MB / 470.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006224/0.1586, allocations: 5.724 MB / 476.5 MB, free: 2.723 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.1586, allocations: 0 / 476.5 MB, free: 2.723 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1586, allocations: 4 kB / 476.5 MB, free: 2.719 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001418/0.1588, allocations: 0 / 476.5 MB, free: 2.719 MB / 350.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.008244/0.167, allocations: 3.993 MB / 480.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.1671, allocations: 11.89 kB / 480.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006126/0.1677, allocations: 0.5755 MB / 481.1 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09111/0.2588, allocations: 6.967 MB / 488.1 MB, free: 7.078 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006317/0.2652, allocations: 2.693 MB / 490.8 MB, free: 4.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001843/0.2654, allocations: 172.7 kB / 490.9 MB, free: 4.148 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009815/0.2664, allocations: 235.7 kB / 491.2 MB, free: 3.918 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01279/0.2792, allocations: 7.824 MB / 499 MB, free: 11.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000129/0.2794, allocations: 35.66 kB / 499 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006314/0.28, allocations: 111.9 kB / 499.1 MB, free: 11.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002788/0.2828, allocations: 1.664 MB / 0.4891 GB, free: 9.648 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01173/0.2946, allocations: 6.629 MB / 0.4955 GB, free: 3.008 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03846/0.3331, allocations: 31.23 MB / 0.526 GB, free: 2.824 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004698/0.3378, allocations: 2.285 MB / 0.5283 GB, free: 404 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1782/0.5161, allocations: 1.114 MB / 0.5294 GB, free: 87.87 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003886/0.5165, allocations: 315.6 kB / 0.5297 GB, free: 87.59 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.012e-05/0.5165, allocations: 51.31 kB / 0.5297 GB, free: 87.55 MB / 414.1 MB Notification: Performance of pre-optimization done (n=117): time 6.282e-06/0.5166, allocations: 3.125 kB / 0.5297 GB, free: 87.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=141): time 0.03417/0.5507, allocations: 11.38 MB / 0.5408 GB, free: 85.03 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.721e-05/0.5509, allocations: 200 kB / 0.541 GB, free: 84.81 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005783/0.5566, allocations: 3.748 MB / 0.5447 GB, free: 83.47 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002036/0.5569, allocations: 50.23 kB / 0.5447 GB, free: 83.42 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001343/0.5582, allocations: 2.687 MB / 0.5474 GB, free: 81.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005265/0.5588, allocations: 0.5623 MB / 0.5479 GB, free: 80.95 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001243/0.56, allocations: 1.081 MB / 0.549 GB, free: 80.42 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 5.154e-05/0.5601, allocations: 301.1 kB / 0.5492 GB, free: 80.12 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002008/0.5621, allocations: 1.698 MB / 0.5509 GB, free: 79.59 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003458/0.5656, allocations: 5.127 MB / 0.5559 GB, free: 74.36 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005884/0.5715, allocations: 7.437 MB / 0.5632 GB, free: 66.9 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.16e-05/0.5716, allocations: 36 kB / 0.5632 GB, free: 66.87 MB / 414.1 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.00922/0.5808, allocations: 6.806 MB / 0.5699 GB, free: 60.05 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.899e-05/0.5809, allocations: 59.94 kB / 0.5699 GB, free: 59.99 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.242e-05/0.581, allocations: 120 kB / 0.57 GB, free: 59.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007899/0.5818, allocations: 407.7 kB / 0.5704 GB, free: 59.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003133/0.5849, allocations: 1.236 MB / 0.5716 GB, free: 58.24 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002858/0.5878, allocations: 3.34 MB / 0.5749 GB, free: 54.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003676/0.5915, allocations: 295.5 kB / 0.5752 GB, free: 54.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000379/0.5919, allocations: 336 kB / 0.5755 GB, free: 54.15 MB / 414.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 (665): * Single equations (assignments): 661 * 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.002023/0.5939, allocations: 1.781 MB / 0.5772 GB, free: 52.36 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004522/0.5944, allocations: 308 kB / 0.5775 GB, free: 52.05 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002736/0.5971, allocations: 1.864 MB / 0.5793 GB, free: 50.18 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-05/0.5971, allocations: 16 kB / 0.5794 GB, free: 50.16 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.5972, allocations: 4 kB / 0.5794 GB, free: 50.16 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.154e-05/0.5972, allocations: 6.797 kB / 0.5794 GB, free: 50.16 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007602/0.6048, allocations: 5.62 MB / 0.5849 GB, free: 44.49 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.876e-06/0.6048, allocations: 0 / 0.5849 GB, free: 44.49 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009779/0.6058, allocations: 216.8 kB / 0.5851 GB, free: 44.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005783/0.6064, allocations: 228.7 kB / 0.5853 GB, free: 44.05 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.179e-05/0.6065, allocations: 27.36 kB / 0.5853 GB, free: 44.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002207/0.6087, allocations: 2.71 MB / 0.588 GB, free: 41.19 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.6087, allocations: 3.938 kB / 0.588 GB, free: 41.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004286/0.613, allocations: 3.883 MB / 0.5917 GB, free: 37.27 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001101/0.6141, allocations: 0.5359 MB / 0.5923 GB, free: 36.71 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003252/0.6145, allocations: 24.06 kB / 0.5923 GB, free: 36.69 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001072/0.6155, allocations: 71.61 kB / 0.5924 GB, free: 36.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001729/0.6157, allocations: 79.83 kB / 0.5924 GB, free: 36.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.244e-05/0.6158, allocations: 41.48 kB / 0.5925 GB, free: 36.51 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002875/0.6187, allocations: 2.35 MB / 0.5948 GB, free: 34.18 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6187, allocations: 0 / 0.5948 GB, free: 34.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004612/0.6233, allocations: 0.8072 MB / 0.5956 GB, free: 33.37 MB / 414.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.004549/0.6279, allocations: 4.518 MB / 0.6 GB, free: 28.81 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006077/0.634, allocations: 4.552 MB / 0.6044 GB, free: 24.3 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.108e-06/0.634, allocations: 7.938 kB / 0.6044 GB, free: 24.29 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001378/0.6354, allocations: 1.135 MB / 0.6055 GB, free: 23.14 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002217/0.6376, allocations: 378.3 kB / 0.6059 GB, free: 22.78 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05149/0.6891, allocations: 42.64 MB / 0.6475 GB, free: 5.301 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00342/0.6926, allocations: 2.762 MB / 0.6502 GB, free: 2.527 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004429/0.697, allocations: 1.737 MB / 0.6519 GB, free: 0.793 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002226/0.6993, allocations: 1.517 MB / 0.6534 GB, free: 15.32 MB / 462.1 MB Notification: Performance of SimCode: time 1.413e-06/0.6993, allocations: 4 kB / 0.6534 GB, free: 15.32 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1064/0.8057, allocations: 59.6 MB / 0.7116 GB, free: 3.676 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.8, allocations: 23.75 kB / 0.7116 GB, free: 3.652 MB / 0.4981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches