Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0007965/0.0007965, allocations: 79.7 kB / 20.67 MB, free: 3.879 MB / 18.57 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.0007805/0.0007805, allocations: 170 kB / 23.95 MB, free: 0.6016 MB / 18.57 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 0.8989/0.8989, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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.2494/0.2494, allocations: 34.25 MB / 294.9 MB, free: 0.6992 MB / 266.7 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.Distance2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 3.938 kB / 442.2 MB, free: 1.672 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.143e-05/2.316e-05, allocations: 2.844 kB / 442.2 MB, free: 1.668 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.1918/0.1919, allocations: 8.02 MB / 450.2 MB, free: 40.05 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.005392/0.1973, allocations: 3.392 MB / 453.6 MB, free: 37.97 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00109/0.1983, allocations: 58.09 kB / 453.6 MB, free: 37.96 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001782/0.2001, allocations: 1.958 MB / 455.6 MB, free: 37.13 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002324/0.2025, allocations: 1.669 MB / 457.3 MB, free: 36.37 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009537/0.2034, allocations: 0.6136 MB / 457.9 MB, free: 36.12 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.002453/0.2059, allocations: 4.046 MB / 461.9 MB, free: 34.59 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001328/0.2072, allocations: 2.255 MB / 464.2 MB, free: 33.58 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001224/0.2084, allocations: 1.78 MB / 466 MB, free: 32.82 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0012/0.2096, allocations: 1.791 MB / 467.8 MB, free: 32.35 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002362/0.2098, allocations: 245.6 kB / 468 MB, free: 32.35 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009662/0.2108, allocations: 1.065 MB / 469.1 MB, free: 32.15 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007222/0.2115, allocations: 1.619 MB / 470.7 MB, free: 31.47 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005879/0.2121, allocations: 1.033 MB / 471.7 MB, free: 30.96 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003163/0.2153, allocations: 5.93 MB / 477.6 MB, free: 28.95 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2153, allocations: 0 / 477.6 MB, free: 28.95 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2153, allocations: 4 kB / 477.6 MB, free: 28.95 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.756e-05/0.2154, allocations: 0 / 477.6 MB, free: 28.95 MB / 410.7 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.005325/0.2207, allocations: 4.009 MB / 481.7 MB, free: 26.69 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.2207, allocations: 12.5 kB / 481.7 MB, free: 26.68 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005529/0.2213, allocations: 0.5811 MB / 482.2 MB, free: 26.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0407/0.262, allocations: 7.178 MB / 489.4 MB, free: 25.81 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006879/0.2689, allocations: 2.246 MB / 491.7 MB, free: 24.69 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001241/0.269, allocations: 176.5 kB / 491.8 MB, free: 24.61 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005018/0.2695, allocations: 235.9 kB / 492.1 MB, free: 24.52 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01345/0.2829, allocations: 7.779 MB / 499.8 MB, free: 20.07 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001082/0.283, allocations: 40.36 kB / 499.9 MB, free: 20.05 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002709/0.2833, allocations: 115.8 kB / 0.4883 GB, free: 19.97 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001975/0.2853, allocations: 1.592 MB / 0.4898 GB, free: 19.35 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009634/0.2949, allocations: 6.443 MB / 0.4961 GB, free: 14.33 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0264/0.3213, allocations: 30.34 MB / 0.5258 GB, free: 15.04 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002974/0.3243, allocations: 1.942 MB / 0.5277 GB, free: 13.06 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009195/0.3252, allocations: 0.9794 MB / 0.5286 GB, free: 12.07 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001899/0.3254, allocations: 99.8 kB / 0.5287 GB, free: 11.97 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.431e-05/0.3254, allocations: 46.44 kB / 0.5288 GB, free: 11.92 MB / 442.7 MB Notification: Performance of pre-optimization done (n=104): time 4.108e-06/0.3254, allocations: 0 / 0.5288 GB, free: 11.92 MB / 442.7 MB Notification: Performance of matching and sorting (n=118): time 0.01532/0.3408, allocations: 8.772 MB / 0.5373 GB, free: 3.102 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.874e-05/0.3408, allocations: 200.3 kB / 0.5375 GB, free: 2.863 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00458/0.3454, allocations: 4.158 MB / 0.5416 GB, free: 14.71 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003033/0.3457, allocations: 41.7 kB / 0.5416 GB, free: 14.66 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00174/0.3475, allocations: 2.795 MB / 0.5443 GB, free: 11.84 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005695/0.348, allocations: 0.4888 MB / 0.5448 GB, free: 11.35 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001063/0.3491, allocations: 1.084 MB / 0.5459 GB, free: 10.25 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.445e-05/0.3492, allocations: 309.1 kB / 0.5462 GB, free: 9.949 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001636/0.3508, allocations: 1.588 MB / 0.5477 GB, free: 8.355 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003957/0.3548, allocations: 5.191 MB / 0.5528 GB, free: 1.352 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00673/0.3615, allocations: 7.317 MB / 0.5599 GB, free: 8.258 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001034/0.3616, allocations: 36 kB / 0.56 GB, free: 8.223 MB / 474.7 MB Notification: Performance of matching and sorting (n=698) (initialization): time 0.01037/0.372, allocations: 6.642 MB / 0.5665 GB, free: 1.574 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.38e-05/0.3721, allocations: 56 kB / 0.5665 GB, free: 1.52 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.822e-05/0.3721, allocations: 128 kB / 0.5666 GB, free: 1.395 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006688/0.3728, allocations: 408.7 kB / 0.567 GB, free: 0.9922 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002274/0.3751, allocations: 1.224 MB / 0.5682 GB, free: 15.77 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002811/0.3779, allocations: 3.255 MB / 0.5714 GB, free: 12.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003243/0.3811, allocations: 311.6 kB / 0.5717 GB, free: 12.09 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000718/0.3819, allocations: 343.9 kB / 0.572 GB, free: 11.76 MB / 490.7 MB 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.002592/0.3845, allocations: 1.771 MB / 0.5738 GB, free: 9.977 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006827/0.3851, allocations: 329.7 kB / 0.5741 GB, free: 9.652 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001799/0.3869, allocations: 1.462 MB / 0.5755 GB, free: 8.18 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-05/0.387, allocations: 16.11 kB / 0.5755 GB, free: 8.164 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.246e-06/0.387, allocations: 11.92 kB / 0.5755 GB, free: 8.152 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.387, allocations: 3.984 kB / 0.5755 GB, free: 8.148 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006639/0.3936, allocations: 4.67 MB / 0.5801 GB, free: 3.418 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/0.3936, allocations: 8.031 kB / 0.5801 GB, free: 3.41 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004404/0.3941, allocations: 155.8 kB / 0.5802 GB, free: 3.258 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004092/0.3945, allocations: 224.6 kB / 0.5805 GB, free: 3.035 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.514e-05/0.3945, allocations: 16 kB / 0.5805 GB, free: 3.02 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002476/0.397, allocations: 2.648 MB / 0.5831 GB, free: 264 kB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.397, allocations: 4.031 kB / 0.5831 GB, free: 260 kB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003351/0.4004, allocations: 3.289 MB / 0.5863 GB, free: 12.94 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008916/0.4012, allocations: 329.6 kB / 0.5866 GB, free: 12.61 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002134/0.4015, allocations: 19.94 kB / 0.5866 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006318/0.4021, allocations: 79.89 kB / 0.5867 GB, free: 12.52 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001333/0.4022, allocations: 60.38 kB / 0.5867 GB, free: 12.46 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.338e-05/0.4023, allocations: 35.98 kB / 0.5868 GB, free: 12.42 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002838/0.4051, allocations: 2.483 MB / 0.5892 GB, free: 9.953 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7e-08/0.4051, allocations: 0 / 0.5892 GB, free: 9.953 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003501/0.4086, allocations: 0.871 MB / 0.59 GB, free: 9.082 MB / 0.4948 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.003599/0.4122, allocations: 3.927 MB / 0.5939 GB, free: 5.121 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.005005/0.4172, allocations: 3.685 MB / 0.5975 GB, free: 1.449 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.4172, allocations: 0 / 0.5975 GB, free: 1.449 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009582/0.4182, allocations: 0.8842 MB / 0.5983 GB, free: 0.5586 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002104/0.4203, allocations: 379.3 kB / 0.5987 GB, free: 200 kB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04197/0.4623, allocations: 37.64 MB / 0.6355 GB, free: 5.172 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002004/0.4643, allocations: 2.162 MB / 0.6376 GB, free: 2.98 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002595/0.4669, allocations: 1.715 MB / 0.6393 GB, free: 1.262 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1798/0.6467, allocations: 1.46 MB / 0.6407 GB, free: 166.4 MB / 0.5417 GB Notification: Performance of SimCode: time 1.173e-06/0.6467, allocations: 0 / 0.6407 GB, free: 166.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08174/0.7284, allocations: 55.87 MB / 0.6952 GB, free: 152 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.724/10.45, allocations: 11.44 kB / 0.6952 GB, free: 152 MB / 0.5417 GB " [Timeout remaining time 649] (rm -f ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --stepSize=9.996e-05 --timeout=50 --tolerance=1e-10 ModelicaTest_4_1_0_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 12.718946058303118]