Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.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.001801/0.001801, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.002192/0.002192, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.529/1.529, allocations: 230.6 MB / 258.3 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2434/0.2434, allocations: 44.92 MB / 359.6 MB, free: 6.301 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.Distance2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002293/0.002293, allocations: 59.91 kB / 0.4938 GB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3447/0.347, allocations: 65.48 MB / 0.5578 GB, free: 7.543 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01615/0.3632, allocations: 9.121 MB / 0.5667 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007807/0.371, allocations: 3.621 MB / 0.5702 GB, free: 11 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001415/0.3724, allocations: 59.75 kB / 0.5703 GB, free: 10.95 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004181/0.3766, allocations: 1.935 MB / 0.5722 GB, free: 9.004 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00437/0.3809, allocations: 1.607 MB / 0.5737 GB, free: 7.391 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00181/0.3827, allocations: 0.5886 MB / 0.5743 GB, free: 6.801 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006367/0.3891, allocations: 3.661 MB / 0.5779 GB, free: 3.133 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003549/0.3927, allocations: 1.995 MB / 0.5798 GB, free: 1.078 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002678/0.3953, allocations: 1.18 MB / 0.581 GB, free: 15.89 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003346/0.3987, allocations: 1.779 MB / 0.5827 GB, free: 14.11 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001/0.3997, allocations: 240 kB / 0.583 GB, free: 13.88 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00276/0.4024, allocations: 1.155 MB / 0.5841 GB, free: 12.72 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002214/0.4047, allocations: 1.55 MB / 0.5856 GB, free: 11.16 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003199/0.4079, allocations: 1.782 MB / 0.5873 GB, free: 9.371 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009378/0.4172, allocations: 5.875 MB / 0.5931 GB, free: 3.473 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.4172, allocations: 0 / 0.5931 GB, free: 3.473 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.4172, allocations: 0 / 0.5931 GB, free: 3.473 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002588/0.4175, allocations: 0 / 0.5931 GB, free: 3.473 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.01446/0.432, allocations: 3.99 MB / 0.597 GB, free: 15.43 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.4e-05/0.432, allocations: 12.03 kB / 0.597 GB, free: 15.41 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001682/0.4322, allocations: 76.78 kB / 0.5971 GB, free: 15.34 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001906/0.4341, allocations: 0.5753 MB / 0.5976 GB, free: 14.75 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09083/0.5249, allocations: 6.974 MB / 0.6044 GB, free: 7.766 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007464/0.5324, allocations: 2.392 MB / 0.6068 GB, free: 5.336 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002497/0.5326, allocations: 176.6 kB / 0.6069 GB, free: 5.16 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001334/0.534, allocations: 247.8 kB / 0.6072 GB, free: 4.918 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01754/0.5515, allocations: 7.72 MB / 0.6147 GB, free: 12.55 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002406/0.5518, allocations: 35.7 kB / 0.6148 GB, free: 12.51 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009492/0.5527, allocations: 115.9 kB / 0.6149 GB, free: 12.4 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003214/0.5559, allocations: 1.59 MB / 0.6164 GB, free: 10.8 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01464/0.5706, allocations: 6.46 MB / 0.6227 GB, free: 4.336 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04359/0.6141, allocations: 31.26 MB / 0.6532 GB, free: 4.098 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005078/0.6192, allocations: 1.892 MB / 0.6551 GB, free: 2.168 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001577/0.6208, allocations: 0.9677 MB / 0.656 GB, free: 1.188 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003332/0.6211, allocations: 91.92 kB / 0.6561 GB, free: 1.098 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.33e-05/0.6212, allocations: 50.48 kB / 0.6562 GB, free: 1.039 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 4.789e-06/0.6212, allocations: 4 kB / 0.6562 GB, free: 1.035 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02464/0.6458, allocations: 8.384 MB / 0.6644 GB, free: 8.598 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000143/0.646, allocations: 200.4 kB / 0.6646 GB, free: 8.359 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007128/0.6531, allocations: 3.769 MB / 0.6682 GB, free: 4.598 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002961/0.6534, allocations: 45.7 kB / 0.6683 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002695/0.6561, allocations: 2.826 MB / 0.671 GB, free: 1.691 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008201/0.6569, allocations: 0.508 MB / 0.6715 GB, free: 1.18 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001906/0.6588, allocations: 1.092 MB / 0.6726 GB, free: 80 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001438/0.659, allocations: 309.1 kB / 0.6729 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002645/0.6616, allocations: 1.576 MB / 0.6744 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005917/0.6675, allocations: 5.152 MB / 0.6795 GB, free: 7.234 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009166/0.6767, allocations: 7.316 MB / 0.6866 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000127/0.6768, allocations: 39.94 kB / 0.6867 GB, free: 14.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01288/0.6897, allocations: 6.632 MB / 0.6931 GB, free: 7.465 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/0.6898, allocations: 60 kB / 0.6932 GB, free: 7.406 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001691/0.69, allocations: 128 kB / 0.6933 GB, free: 7.281 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00103/0.691, allocations: 404.7 kB / 0.6937 GB, free: 6.883 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003964/0.695, allocations: 1.22 MB / 0.6949 GB, free: 5.66 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004524/0.6995, allocations: 3.236 MB / 0.698 GB, free: 2.312 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004102/0.7036, allocations: 288 kB / 0.6983 GB, free: 2.031 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009174/0.7045, allocations: 340 kB / 0.6986 GB, free: 1.699 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.twoHeadedArrow,distance1.arrow.headAtOrigin,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 (663): * Single equations (assignments): 659 * 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.003544/0.708, allocations: 1.788 MB / 0.7004 GB, free: 15.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007271/0.7088, allocations: 317.8 kB / 0.7007 GB, free: 15.59 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003094/0.7119, allocations: 1.469 MB / 0.7021 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.816e-05/0.7119, allocations: 12 kB / 0.7021 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.334e-05/0.7119, allocations: 11.94 kB / 0.7022 GB, free: 14.08 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.643e-05/0.7119, allocations: 7.969 kB / 0.7022 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01239/0.7243, allocations: 4.812 MB / 0.7069 GB, free: 9.203 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.681e-05/0.7243, allocations: 3.984 kB / 0.7069 GB, free: 9.199 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008196/0.7252, allocations: 155.7 kB / 0.707 GB, free: 9.047 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007776/0.7259, allocations: 232.6 kB / 0.7072 GB, free: 8.816 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001436/0.7261, allocations: 20 kB / 0.7073 GB, free: 8.797 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003604/0.7297, allocations: 2.588 MB / 0.7098 GB, free: 6.094 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.7297, allocations: 288 / 0.7098 GB, free: 6.094 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005531/0.7352, allocations: 3.298 MB / 0.713 GB, free: 2.766 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00102/0.7362, allocations: 297.7 kB / 0.7133 GB, free: 2.473 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006914/0.7369, allocations: 23.92 kB / 0.7133 GB, free: 2.449 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001459/0.7384, allocations: 56 kB / 0.7134 GB, free: 2.395 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002953/0.7387, allocations: 64.31 kB / 0.7134 GB, free: 2.332 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/0.7388, allocations: 36 kB / 0.7135 GB, free: 2.297 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004512/0.7433, allocations: 2.339 MB / 0.7157 GB, free: 15.97 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.01e-07/0.7433, allocations: 0 / 0.7157 GB, free: 15.97 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004793/0.7481, allocations: 0.7655 MB / 0.7165 GB, free: 15.21 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (88): * Single equations (assignments): 84 * 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.00632/0.7544, allocations: 3.915 MB / 0.7203 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007969/0.7624, allocations: 3.669 MB / 0.7239 GB, free: 7.602 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.277e-06/0.7624, allocations: 4.062 kB / 0.7239 GB, free: 7.598 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001773/0.7642, allocations: 0.8836 MB / 0.7248 GB, free: 6.703 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002974/0.7671, allocations: 392.4 kB / 0.7251 GB, free: 6.324 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3438/1.111, allocations: 37.27 MB / 0.7615 GB, free: 134 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004375/1.115, allocations: 2.715 MB / 0.7642 GB, free: 131.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.006054/1.121, allocations: 1.703 MB / 0.7658 GB, free: 129.6 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003053/1.124, allocations: 1.452 MB / 0.7673 GB, free: 128.2 MB / 0.5606 GB Notification: Performance of SimCode: time 1.112e-06/1.124, allocations: 0 / 0.7673 GB, free: 128.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1054/1.23, allocations: 58.92 MB / 0.8248 GB, free: 69.69 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.82/26.05, allocations: 4 kB / 0.8248 GB, free: 69.69 MB / 0.5606 GB " [Timeout remaining time 634] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --stepSize=9.996e-05 --timeout=50 --tolerance=1e-10 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.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: 30.10977665905375]