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: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2",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.00109/0.00109, allocations: 102.5 kB / 16.27 MB, free: 5.93 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.001226/0.001226, allocations: 190.1 kB / 17.2 MB, free: 5.574 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.437/1.437, allocations: 205.1 MB / 223.1 MB, free: 12.29 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.2011/0.2011, allocations: 43.52 MB / 313.9 MB, free: 0.5234 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.00148/0.00148, allocations: 65.88 kB / 382.8 MB, free: 56.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09809/0.09959, allocations: 57.8 MB / 440.6 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.009387/0.109, allocations: 10 MB / 450.6 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008462/0.1175, allocations: 3.703 MB / 454.3 MB, free: 9.016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002349/0.1199, allocations: 51.88 kB / 454.4 MB, free: 8.965 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004193/0.1242, allocations: 1.95 MB / 456.3 MB, free: 7.008 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004913/0.1292, allocations: 1.743 MB / 458.1 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00155/0.1307, allocations: 0.5653 MB / 458.6 MB, free: 4.691 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005477/0.1362, allocations: 3.739 MB / 462.4 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003736/0.14, allocations: 2.566 MB / 464.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002644/0.1427, allocations: 1.277 MB / 466.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002729/0.1455, allocations: 1.822 MB / 468 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007722/0.1462, allocations: 272 kB / 468.3 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002259/0.1485, allocations: 1.155 MB / 469.5 MB, free: 9.793 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001657/0.1502, allocations: 1.683 MB / 471.1 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003126/0.1533, allocations: 2.004 MB / 473.2 MB, free: 6.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01121/0.1646, allocations: 6.34 MB / 479.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.257e-06/0.1646, allocations: 0 / 479.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.806e-06/0.1647, allocations: 0 / 479.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002762/0.1649, allocations: 0 / 479.5 MB, free: 15.73 MB / 366.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.01882/0.1838, allocations: 4.339 MB / 483.8 MB, free: 11.32 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.682e-05/0.1839, allocations: 15.89 kB / 483.8 MB, free: 11.31 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002381/0.1863, allocations: 0.6417 MB / 484.5 MB, free: 10.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.116/0.3023, allocations: 7.037 MB / 491.5 MB, free: 3.605 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006509/0.3089, allocations: 2.815 MB / 494.3 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002365/0.3091, allocations: 197.3 kB / 494.5 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001168/0.3103, allocations: 263.7 kB / 494.8 MB, free: 280 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01507/0.3254, allocations: 8.69 MB / 0.4917 GB, free: 6.934 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001458/0.3256, allocations: 39.59 kB / 0.4917 GB, free: 6.895 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006143/0.3262, allocations: 131.8 kB / 0.4918 GB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002905/0.3291, allocations: 1.836 MB / 0.4936 GB, free: 4.926 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01296/0.3421, allocations: 7.347 MB / 0.5008 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2232/0.5654, allocations: 33.97 MB / 0.534 GB, free: 63.8 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00488/0.5703, allocations: 2.525 MB / 0.5365 GB, free: 63.14 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001416/0.5718, allocations: 1.118 MB / 0.5375 GB, free: 63.11 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003211/0.5721, allocations: 330.2 kB / 0.5379 GB, free: 62.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.5721, allocations: 50.58 kB / 0.5379 GB, free: 62.79 MB / 414.1 MB Notification: Performance of pre-optimization done (n=119): time 3.837e-06/0.5722, allocations: 0 / 0.5379 GB, free: 62.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=133): time 0.02318/0.5953, allocations: 8.952 MB / 0.5466 GB, free: 60.4 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.361e-05/0.5954, allocations: 194.6 kB / 0.5468 GB, free: 60.18 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004899/0.6003, allocations: 3.981 MB / 0.5507 GB, free: 59.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001623/0.6005, allocations: 40.64 kB / 0.5508 GB, free: 59.44 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00139/0.6019, allocations: 2.977 MB / 0.5537 GB, free: 57.15 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000391/0.6023, allocations: 0.532 MB / 0.5542 GB, free: 56.77 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001088/0.6034, allocations: 1.174 MB / 0.5553 GB, free: 56.2 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.41e-05/0.6035, allocations: 301.1 kB / 0.5556 GB, free: 55.9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002042/0.6055, allocations: 1.699 MB / 0.5573 GB, free: 55.38 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003095/0.6086, allocations: 5.515 MB / 0.5627 GB, free: 49.71 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005916/0.6145, allocations: 7.851 MB / 0.5703 GB, free: 42.63 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001069/0.6147, allocations: 38.72 kB / 0.5704 GB, free: 42.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=751) (initialization): time 0.01009/0.6248, allocations: 7.097 MB / 0.5773 GB, free: 35.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.082e-05/0.6249, allocations: 64 kB / 0.5774 GB, free: 35.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001173/0.625, allocations: 136 kB / 0.5775 GB, free: 35.71 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000816/0.6258, allocations: 418 kB / 0.5779 GB, free: 35.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00339/0.6292, allocations: 1.326 MB / 0.5792 GB, free: 33.98 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002929/0.6322, allocations: 3.367 MB / 0.5825 GB, free: 30.48 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004193/0.6364, allocations: 303 kB / 0.5828 GB, free: 30.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006551/0.6371, allocations: 368 kB / 0.5831 GB, free: 29.83 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 (716): * Single equations (assignments): 712 * 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.002751/0.6398, allocations: 1.947 MB / 0.585 GB, free: 27.87 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008596/0.6407, allocations: 327.7 kB / 0.5853 GB, free: 27.55 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002621/0.6433, allocations: 1.704 MB / 0.587 GB, free: 25.83 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.13e-05/0.6433, allocations: 19.98 kB / 0.587 GB, free: 25.81 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.226e-05/0.6434, allocations: 4 kB / 0.587 GB, free: 25.81 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.6434, allocations: 3.984 kB / 0.587 GB, free: 25.8 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009167/0.6526, allocations: 5.449 MB / 0.5923 GB, free: 20.31 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.454e-05/0.6526, allocations: 160 / 0.5923 GB, free: 20.31 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008607/0.6535, allocations: 195.7 kB / 0.5925 GB, free: 20.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005711/0.6541, allocations: 224.6 kB / 0.5927 GB, free: 19.9 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.747e-05/0.6542, allocations: 24 kB / 0.5928 GB, free: 19.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002157/0.6563, allocations: 2.701 MB / 0.5954 GB, free: 17.04 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.6563, allocations: 0 / 0.5954 GB, free: 17.04 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004129/0.6605, allocations: 3.54 MB / 0.5989 GB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00121/0.6617, allocations: 0.5288 MB / 0.5994 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000355/0.6621, allocations: 24 kB / 0.5994 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001086/0.6632, allocations: 55.98 kB / 0.5994 GB, free: 12.83 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001942/0.6634, allocations: 80.34 kB / 0.5995 GB, free: 12.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.012e-05/0.6635, allocations: 39.28 kB / 0.5996 GB, free: 12.71 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002828/0.6663, allocations: 2.489 MB / 0.602 GB, free: 10.25 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6663, allocations: 0 / 0.602 GB, free: 10.25 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00441/0.6707, allocations: 0.8451 MB / 0.6028 GB, free: 9.402 MB / 414.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.004287/0.675, allocations: 4.169 MB / 0.6069 GB, free: 5.188 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006079/0.6811, allocations: 4.455 MB / 0.6112 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/0.6811, allocations: 3.938 kB / 0.6112 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00117/0.6823, allocations: 1.017 MB / 0.6122 GB, free: 15.74 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002318/0.6847, allocations: 390.1 kB / 0.6126 GB, free: 15.37 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05692/0.7416, allocations: 45.3 MB / 0.6568 GB, free: 10.45 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003597/0.7452, allocations: 2.954 MB / 0.6597 GB, free: 7.477 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004126/0.7494, allocations: 1.804 MB / 0.6615 GB, free: 5.672 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002058/0.7514, allocations: 1.655 MB / 0.6631 GB, free: 4.016 MB / 478.1 MB Notification: Performance of SimCode: time 7.62e-07/0.7514, allocations: 0 / 0.6631 GB, free: 4.016 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1037/0.8552, allocations: 61.74 MB / 0.7234 GB, free: 6.227 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.96, allocations: 15.83 kB / 0.7234 GB, free: 6.211 MB / 0.5294 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance2.fmu > 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