Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001916/0.001916, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002521/0.002521, allocations: 212 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.486/1.486, allocations: 230.6 MB / 257.5 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.241/0.241, allocations: 46.94 MB / 360.9 MB, free: 4.258 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002177/0.002177, allocations: 71.89 kB / 0.4962 GB, free: 7.895 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3207/0.3229, allocations: 66.03 MB / 0.5606 GB, free: 4.48 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01292/0.3358, allocations: 8.997 MB / 0.5694 GB, free: 11.44 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008499/0.3443, allocations: 3.59 MB / 0.5729 GB, free: 7.836 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001479/0.3458, allocations: 55.75 kB / 0.573 GB, free: 7.781 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004074/0.3499, allocations: 1.701 MB / 0.5747 GB, free: 6.074 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004599/0.3545, allocations: 1.572 MB / 0.5762 GB, free: 4.496 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001735/0.3562, allocations: 0.5652 MB / 0.5767 GB, free: 3.93 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006013/0.3622, allocations: 3.584 MB / 0.5802 GB, free: 348 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003544/0.3658, allocations: 1.817 MB / 0.582 GB, free: 14.46 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002315/0.3681, allocations: 1.117 MB / 0.5831 GB, free: 13.34 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0031/0.3712, allocations: 1.67 MB / 0.5847 GB, free: 11.66 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008815/0.3721, allocations: 220 kB / 0.5849 GB, free: 11.45 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002646/0.3747, allocations: 1.135 MB / 0.5861 GB, free: 10.32 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002436/0.3772, allocations: 1.449 MB / 0.5875 GB, free: 8.863 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00324/0.3804, allocations: 1.685 MB / 0.5891 GB, free: 7.168 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008689/0.3891, allocations: 5.572 MB / 0.5946 GB, free: 1.574 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.3891, allocations: 0 / 0.5946 GB, free: 1.574 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3891, allocations: 0 / 0.5946 GB, free: 1.574 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002025/0.3893, allocations: 0 / 0.5946 GB, free: 1.574 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.01065/0.3999, allocations: 3.812 MB / 0.5983 GB, free: 13.7 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.4, allocations: 8.031 kB / 0.5983 GB, free: 13.7 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001288/0.4013, allocations: 0.5462 MB / 0.5988 GB, free: 13.14 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08406/0.4853, allocations: 6.943 MB / 0.6056 GB, free: 6.18 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006448/0.4918, allocations: 2.329 MB / 0.6079 GB, free: 3.812 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002044/0.492, allocations: 166.5 kB / 0.608 GB, free: 3.648 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009276/0.4929, allocations: 215.8 kB / 0.6082 GB, free: 3.438 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01341/0.5063, allocations: 7.343 MB / 0.6154 GB, free: 11.46 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001308/0.5065, allocations: 43.64 kB / 0.6155 GB, free: 11.42 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000576/0.507, allocations: 115.8 kB / 0.6156 GB, free: 11.31 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002795/0.5098, allocations: 1.542 MB / 0.6171 GB, free: 9.766 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01276/0.5226, allocations: 6.178 MB / 0.6231 GB, free: 3.578 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04313/0.5657, allocations: 29.78 MB / 0.6522 GB, free: 4.875 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004613/0.5703, allocations: 1.649 MB / 0.6538 GB, free: 3.188 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001636/0.572, allocations: 0.9833 MB / 0.6548 GB, free: 2.195 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003489/0.5723, allocations: 92.23 kB / 0.6548 GB, free: 2.105 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.455e-05/0.5724, allocations: 51 kB / 0.6549 GB, free: 2.047 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 4.208e-06/0.5724, allocations: 0 / 0.6549 GB, free: 2.047 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03733/0.6097, allocations: 10.9 MB / 0.6655 GB, free: 7.082 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001601/0.6099, allocations: 192.6 kB / 0.6657 GB, free: 6.852 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007945/0.6178, allocations: 3.622 MB / 0.6693 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002937/0.6181, allocations: 45.7 kB / 0.6693 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00292/0.621, allocations: 2.671 MB / 0.6719 GB, free: 492 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008901/0.6219, allocations: 0.5468 MB / 0.6724 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002244/0.6242, allocations: 1.056 MB / 0.6735 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000166/0.6243, allocations: 309.1 kB / 0.6738 GB, free: 14.55 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003002/0.6273, allocations: 1.63 MB / 0.6754 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006343/0.6337, allocations: 4.965 MB / 0.6802 GB, free: 6.266 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01007/0.6437, allocations: 7.162 MB / 0.6872 GB, free: 13.44 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001148/0.6439, allocations: 36 kB / 0.6872 GB, free: 13.41 MB / 0.5294 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.0131/0.6569, allocations: 6.569 MB / 0.6936 GB, free: 6.832 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001226/0.6571, allocations: 63.28 kB / 0.6937 GB, free: 6.773 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001711/0.6572, allocations: 116 kB / 0.6938 GB, free: 6.66 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001026/0.6583, allocations: 404.5 kB / 0.6942 GB, free: 6.262 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003848/0.6621, allocations: 1.185 MB / 0.6954 GB, free: 5.074 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004299/0.6664, allocations: 3.221 MB / 0.6985 GB, free: 1.742 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003431/0.6698, allocations: 283.6 kB / 0.6988 GB, free: 1.465 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006383/0.6705, allocations: 328 kB / 0.6991 GB, free: 1.145 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.twoHeadedArrow,Distance1.arrow.headAtOrigin,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 (640): * Single equations (assignments): 636 * 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.00292/0.6734, allocations: 1.697 MB / 0.7007 GB, free: 15.43 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006075/0.674, allocations: 313.9 kB / 0.701 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00343/0.6774, allocations: 1.717 MB / 0.7027 GB, free: 13.39 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.063e-05/0.6775, allocations: 16 kB / 0.7027 GB, free: 13.38 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.758e-06/0.6775, allocations: 4 kB / 0.7027 GB, free: 13.38 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.459e-05/0.6775, allocations: 7.969 kB / 0.7028 GB, free: 13.37 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01115/0.6886, allocations: 5.207 MB / 0.7078 GB, free: 8.078 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.038e-05/0.6887, allocations: 4 kB / 0.7078 GB, free: 8.074 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00101/0.6897, allocations: 191.7 kB / 0.708 GB, free: 7.887 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007164/0.6904, allocations: 232.6 kB / 0.7082 GB, free: 7.656 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001017/0.6905, allocations: 23.98 kB / 0.7083 GB, free: 7.633 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003394/0.6939, allocations: 2.588 MB / 0.7108 GB, free: 4.926 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.6939, allocations: 0 / 0.7108 GB, free: 4.926 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005835/0.6997, allocations: 3.748 MB / 0.7145 GB, free: 1.145 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008454/0.7006, allocations: 289.7 kB / 0.7147 GB, free: 0.8594 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005088/0.7011, allocations: 23.98 kB / 0.7148 GB, free: 0.8359 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00122/0.7023, allocations: 67.92 kB / 0.7148 GB, free: 0.7695 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001927/0.7025, allocations: 68.52 kB / 0.7149 GB, free: 0.7031 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.661e-05/0.7026, allocations: 36 kB / 0.7149 GB, free: 0.668 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003901/0.7065, allocations: 2.265 MB / 0.7171 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7065, allocations: 7.938 kB / 0.7171 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003878/0.7104, allocations: 0.7499 MB / 0.7179 GB, free: 13.65 MB / 0.5606 GB 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 (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.006435/0.7168, allocations: 4.365 MB / 0.7221 GB, free: 9.254 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006788/0.7236, allocations: 3.791 MB / 0.7258 GB, free: 5.473 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.7236, allocations: 480 / 0.7258 GB, free: 5.473 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001874/0.7255, allocations: 0.9901 MB / 0.7268 GB, free: 4.465 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003292/0.7288, allocations: 367.5 kB / 0.7272 GB, free: 4.102 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3208/1.05, allocations: 36.6 MB / 0.7629 GB, free: 130.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002748/1.052, allocations: 2.634 MB / 0.7655 GB, free: 128.1 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003644/1.056, allocations: 1.702 MB / 0.7671 GB, free: 126.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002095/1.058, allocations: 1.401 MB / 0.7685 GB, free: 125 MB / 0.5606 GB Notification: Performance of SimCode: time 1.453e-06/1.058, allocations: 0 / 0.7685 GB, free: 125 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1021/1.16, allocations: 57.93 MB / 0.8251 GB, free: 67.45 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.28/25.44, allocations: 5.562 kB / 0.8251 GB, free: 67.45 MB / 0.5606 GB " [Timeout remaining time 634] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 28.851598079083487]