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.0008406/0.0008406, allocations: 79.7 kB / 20.67 MB, free: 3.891 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.0009338/0.0009338, allocations: 170 kB / 23.95 MB, free: 0.6094 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.9182/0.9182, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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.2446/0.2446, allocations: 32.8 MB / 293.5 MB, free: 1.219 MB / 266.7 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.814e-06/1.814e-06, allocations: 0 / 439.6 MB, free: 4.273 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.756e-05/1.938e-05, allocations: 5.375 kB / 439.6 MB, free: 4.27 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.1756/0.1756, allocations: 8.023 MB / 447.6 MB, free: 42.41 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003886/0.1795, allocations: 3.389 MB / 451 MB, free: 40.6 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004527/0.18, allocations: 59.53 kB / 451 MB, free: 40.58 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001585/0.1815, allocations: 1.956 MB / 453 MB, free: 39.76 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001649/0.1832, allocations: 1.669 MB / 454.7 MB, free: 39 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005792/0.1838, allocations: 0.617 MB / 455.3 MB, free: 38.75 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001919/0.1857, allocations: 4.056 MB / 459.3 MB, free: 37.21 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001161/0.1868, allocations: 2.248 MB / 461.6 MB, free: 36.21 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001043/0.1879, allocations: 1.786 MB / 463.4 MB, free: 35.45 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001055/0.1889, allocations: 1.788 MB / 465.2 MB, free: 34.98 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002007/0.1891, allocations: 246.8 kB / 465.4 MB, free: 34.98 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008388/0.19, allocations: 1.065 MB / 466.5 MB, free: 34.78 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007017/0.1907, allocations: 1.619 MB / 468.1 MB, free: 34.1 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005894/0.1913, allocations: 1.033 MB / 469.1 MB, free: 33.59 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002942/0.1942, allocations: 5.931 MB / 475.1 MB, free: 31.58 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1942, allocations: 0 / 475.1 MB, free: 31.58 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1942, allocations: 0 / 475.1 MB, free: 31.58 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.711e-05/0.1943, allocations: 7.875 kB / 475.1 MB, free: 31.57 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.004674/0.1989, allocations: 4.009 MB / 479.1 MB, free: 29.31 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.199, allocations: 12.41 kB / 479.1 MB, free: 29.31 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004514/0.1994, allocations: 0.5779 MB / 479.7 MB, free: 29.02 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04062/0.24, allocations: 7.176 MB / 486.8 MB, free: 28.44 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004518/0.2446, allocations: 2.237 MB / 489.1 MB, free: 27.32 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/0.2447, allocations: 176.8 kB / 489.3 MB, free: 27.24 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003952/0.2451, allocations: 244.5 kB / 489.5 MB, free: 27.15 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007832/0.2529, allocations: 7.774 MB / 497.3 MB, free: 22.92 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.777e-05/0.253, allocations: 39.8 kB / 497.3 MB, free: 22.9 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002176/0.2532, allocations: 116.3 kB / 497.4 MB, free: 22.82 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001488/0.2547, allocations: 1.587 MB / 499 MB, free: 22.2 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006313/0.261, allocations: 6.444 MB / 0.4936 GB, free: 18.22 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01901/0.28, allocations: 30.34 MB / 0.5232 GB, free: 2.926 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002712/0.2827, allocations: 1.964 MB / 0.5251 GB, free: 0.9297 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008195/0.2835, allocations: 0.9677 MB / 0.5261 GB, free: 15.95 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001599/0.2837, allocations: 95.8 kB / 0.5262 GB, free: 15.86 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.766e-05/0.2837, allocations: 57.55 kB / 0.5262 GB, free: 15.79 MB / 442.7 MB Notification: Performance of pre-optimization done (n=104): time 2.705e-06/0.2837, allocations: 0 / 0.5262 GB, free: 15.79 MB / 442.7 MB Notification: Performance of matching and sorting (n=118): time 0.01244/0.2962, allocations: 8.754 MB / 0.5348 GB, free: 6.984 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.044e-05/0.2963, allocations: 200.3 kB / 0.535 GB, free: 6.746 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003308/0.2996, allocations: 4.162 MB / 0.539 GB, free: 2.59 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.694e-05/0.2996, allocations: 41.7 kB / 0.5391 GB, free: 2.543 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001263/0.3009, allocations: 2.795 MB / 0.5418 GB, free: 15.71 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002781/0.3012, allocations: 0.5003 MB / 0.5423 GB, free: 15.21 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008396/0.302, allocations: 1.076 MB / 0.5434 GB, free: 14.12 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.089e-05/0.3021, allocations: 301.3 kB / 0.5436 GB, free: 13.83 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001447/0.3035, allocations: 1.584 MB / 0.5452 GB, free: 12.24 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002979/0.3065, allocations: 5.199 MB / 0.5503 GB, free: 5.227 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004823/0.3113, allocations: 7.317 MB / 0.5574 GB, free: 12.14 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.158e-05/0.3113, allocations: 36 kB / 0.5574 GB, free: 12.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=698) (initialization): time 0.006032/0.3174, allocations: 6.645 MB / 0.5639 GB, free: 5.453 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.109e-05/0.3174, allocations: 56.97 kB / 0.564 GB, free: 5.398 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-05/0.3175, allocations: 132 kB / 0.5641 GB, free: 5.27 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005196/0.318, allocations: 412.5 kB / 0.5645 GB, free: 4.863 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001789/0.3198, allocations: 1.213 MB / 0.5657 GB, free: 3.648 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002619/0.3224, allocations: 3.26 MB / 0.5689 GB, free: 288 kB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001941/0.3244, allocations: 319.7 kB / 0.5692 GB, free: 15.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002613/0.3246, allocations: 339.9 kB / 0.5695 GB, free: 15.64 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.002104/0.3267, allocations: 1.771 MB / 0.5712 GB, free: 13.85 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003142/0.3271, allocations: 325.7 kB / 0.5715 GB, free: 13.53 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001534/0.3286, allocations: 1.476 MB / 0.573 GB, free: 12.04 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.498e-05/0.3286, allocations: 13.62 kB / 0.573 GB, free: 12.03 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.3286, allocations: 4 kB / 0.573 GB, free: 12.03 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.676e-06/0.3286, allocations: 3.984 kB / 0.573 GB, free: 12.02 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005434/0.3341, allocations: 4.675 MB / 0.5776 GB, free: 7.289 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.3341, allocations: 4 kB / 0.5776 GB, free: 7.285 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004033/0.3345, allocations: 159.8 kB / 0.5777 GB, free: 7.129 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004152/0.3349, allocations: 224.6 kB / 0.5779 GB, free: 6.906 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.623e-05/0.3349, allocations: 20 kB / 0.578 GB, free: 6.887 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002113/0.3371, allocations: 2.64 MB / 0.5805 GB, free: 4.133 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3371, allocations: 4.031 kB / 0.5805 GB, free: 4.129 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002781/0.3398, allocations: 3.286 MB / 0.5837 GB, free: 0.8164 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003847/0.3402, allocations: 329.6 kB / 0.5841 GB, free: 0.4922 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000169/0.3404, allocations: 16.12 kB / 0.5841 GB, free: 488 kB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005813/0.341, allocations: 91.19 kB / 0.5842 GB, free: 400 kB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001082/0.3411, allocations: 60.39 kB / 0.5842 GB, free: 340 kB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.574e-05/0.3411, allocations: 31.98 kB / 0.5843 GB, free: 308 kB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002133/0.3433, allocations: 2.483 MB / 0.5867 GB, free: 13.83 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4e-08/0.3433, allocations: 0 / 0.5867 GB, free: 13.83 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002341/0.3456, allocations: 0.8747 MB / 0.5875 GB, free: 12.96 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.00308/0.3487, allocations: 3.919 MB / 0.5914 GB, free: 9 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003361/0.352, allocations: 3.69 MB / 0.595 GB, free: 5.324 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.352, allocations: 0 / 0.595 GB, free: 5.324 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008465/0.3529, allocations: 0.8803 MB / 0.5958 GB, free: 4.434 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001139/0.354, allocations: 376.5 kB / 0.5962 GB, free: 4.074 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03438/0.3884, allocations: 37.64 MB / 0.6329 GB, free: 9.051 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001904/0.3903, allocations: 2.158 MB / 0.635 GB, free: 6.863 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002233/0.3925, allocations: 1.719 MB / 0.6367 GB, free: 5.141 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001198/0.3937, allocations: 1.461 MB / 0.6382 GB, free: 3.68 MB / 0.5417 GB Notification: Performance of SimCode: time 1.213e-06/0.3937, allocations: 0 / 0.6382 GB, free: 3.68 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2295/0.6232, allocations: 55.88 MB / 0.6927 GB, free: 157.5 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.613/10.24, allocations: 2.969 kB / 0.6927 GB, free: 157.5 MB / 0.5417 GB " [Timeout remaining time 650] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/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: 12.549510858953]