Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001788/0.001788, allocations: 104.3 kB / 19.69 MB, free: 1.934 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.002197/0.002197, allocations: 219.2 kB / 22.99 MB, free: 4.973 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.519/1.519, allocations: 207.7 MB / 233.8 MB, free: 9.773 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2253/0.2253, allocations: 44.26 MB / 330.3 MB, free: 9.316 MB / 270.1 MB " [Timeout remaining time 179] 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.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_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002237/0.002237, allocations: 63.91 kB / 467.5 MB, free: 4.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1356, allocations: 61.06 MB / 0.5162 GB, free: 7.184 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01149/0.1471, allocations: 8.335 MB / 0.5243 GB, free: 14.8 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008374/0.1555, allocations: 3.432 MB / 0.5276 GB, free: 11.36 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002001/0.1575, allocations: 59.69 kB / 0.5277 GB, free: 11.3 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00341/0.1609, allocations: 1.647 MB / 0.5293 GB, free: 9.652 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004448/0.1653, allocations: 1.693 MB / 0.531 GB, free: 7.953 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001424/0.1668, allocations: 0.5575 MB / 0.5315 GB, free: 7.395 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005274/0.172, allocations: 3.521 MB / 0.5349 GB, free: 3.863 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003163/0.1752, allocations: 1.887 MB / 0.5368 GB, free: 1.926 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002209/0.1774, allocations: 1.183 MB / 0.5379 GB, free: 0.7383 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2398/0.4172, allocations: 1.697 MB / 0.5396 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008417/0.418, allocations: 239.8 kB / 0.5398 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002261/0.4203, allocations: 1.018 MB / 0.5408 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00185/0.4222, allocations: 1.556 MB / 0.5423 GB, free: 12.57 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001989/0.4241, allocations: 1.339 MB / 0.5437 GB, free: 12.16 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008471/0.4326, allocations: 5.983 MB / 0.5495 GB, free: 11.25 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.941e-06/0.4326, allocations: 0.6562 kB / 0.5495 GB, free: 11.25 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.055e-06/0.4326, allocations: 2.5 kB / 0.5495 GB, free: 11.25 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001842/0.4328, allocations: 0 / 0.5495 GB, free: 11.25 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.01346/0.4463, allocations: 4.021 MB / 0.5534 GB, free: 9.578 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.686e-05/0.4463, allocations: 9.781 kB / 0.5534 GB, free: 9.578 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001769/0.4481, allocations: 0.5775 MB / 0.554 GB, free: 9.512 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08669/0.5348, allocations: 6.996 MB / 0.5608 GB, free: 9.188 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007368/0.5422, allocations: 2.674 MB / 0.5634 GB, free: 7.934 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001746/0.5423, allocations: 171 kB / 0.5636 GB, free: 7.883 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009601/0.5433, allocations: 230 kB / 0.5638 GB, free: 7.832 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01537/0.5587, allocations: 7.883 MB / 0.5715 GB, free: 3.043 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001303/0.5588, allocations: 36.52 kB / 0.5716 GB, free: 3.039 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003912/0.5592, allocations: 115.8 kB / 0.5717 GB, free: 2.996 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002765/0.5619, allocations: 1.662 MB / 0.5733 GB, free: 2.375 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01211/0.5741, allocations: 6.617 MB / 0.5798 GB, free: 15.48 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04454/0.6186, allocations: 29.93 MB / 0.609 GB, free: 2.199 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004773/0.6234, allocations: 1.741 MB / 0.6107 GB, free: 444 kB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001709/0.6251, allocations: 1.03 MB / 0.6117 GB, free: 15.39 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003718/0.6255, allocations: 92.3 kB / 0.6118 GB, free: 15.3 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.105e-05/0.6255, allocations: 46.53 kB / 0.6118 GB, free: 15.25 MB / 462.1 MB Notification: Performance of pre-optimization done (n=117): time 4.518e-06/0.6255, allocations: 1.312 kB / 0.6118 GB, free: 15.25 MB / 462.1 MB Notification: Performance of matching and sorting (n=141): time 0.03671/0.6622, allocations: 11.47 MB / 0.623 GB, free: 3.777 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.6624, allocations: 192.6 kB / 0.6232 GB, free: 3.543 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006421/0.6688, allocations: 3.962 MB / 0.6271 GB, free: 15.58 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002731/0.6691, allocations: 49.55 kB / 0.6271 GB, free: 15.53 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002558/0.6716, allocations: 2.801 MB / 0.6299 GB, free: 12.75 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008385/0.6725, allocations: 0.5802 MB / 0.6304 GB, free: 12.17 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001676/0.6741, allocations: 1.084 MB / 0.6315 GB, free: 11.08 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001529/0.6743, allocations: 316.9 kB / 0.6318 GB, free: 10.77 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002893/0.6772, allocations: 1.693 MB / 0.6334 GB, free: 9.07 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006107/0.6833, allocations: 5.184 MB / 0.6385 GB, free: 2.203 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01001/0.6933, allocations: 7.432 MB / 0.6458 GB, free: 9.473 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001199/0.6934, allocations: 36 kB / 0.6458 GB, free: 9.438 MB / 494.1 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.01513/0.7085, allocations: 6.813 MB / 0.6524 GB, free: 2.609 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.31e-05/0.7086, allocations: 56 kB / 0.6525 GB, free: 2.555 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001638/0.7088, allocations: 120 kB / 0.6526 GB, free: 2.438 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001009/0.7098, allocations: 409.6 kB / 0.653 GB, free: 2.035 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004215/0.714, allocations: 1.236 MB / 0.6542 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004519/0.7185, allocations: 3.203 MB / 0.6573 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004515/0.7231, allocations: 295.5 kB / 0.6576 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001013/0.7241, allocations: 338.7 kB / 0.6579 GB, free: 12.86 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (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 (665): * Single equations (assignments): 661 * 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.004158/0.7282, allocations: 1.782 MB / 0.6597 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009415/0.7292, allocations: 329.8 kB / 0.66 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004008/0.7332, allocations: 1.853 MB / 0.6618 GB, free: 8.883 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.862e-05/0.7332, allocations: 17.56 kB / 0.6618 GB, free: 8.867 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-05/0.7332, allocations: 0 / 0.6618 GB, free: 8.867 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.881e-05/0.7332, allocations: 7.984 kB / 0.6618 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01236/0.7456, allocations: 5.226 MB / 0.6669 GB, free: 3.598 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-05/0.7456, allocations: 0 / 0.6669 GB, free: 3.598 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001129/0.7467, allocations: 207.8 kB / 0.6671 GB, free: 3.395 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007297/0.7475, allocations: 238.6 kB / 0.6674 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000123/0.7476, allocations: 27.98 kB / 0.6674 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003292/0.7509, allocations: 2.589 MB / 0.6699 GB, free: 448 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.7509, allocations: 0 / 0.6699 GB, free: 448 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006398/0.7573, allocations: 3.906 MB / 0.6737 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00174/0.759, allocations: 489.5 kB / 0.6742 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005316/0.7596, allocations: 27.94 kB / 0.6742 GB, free: 11.99 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00138/0.7609, allocations: 75.84 kB / 0.6743 GB, free: 11.92 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002215/0.7612, allocations: 78.38 kB / 0.6744 GB, free: 11.84 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001099/0.7613, allocations: 39.98 kB / 0.6744 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.00477/0.766, allocations: 2.35 MB / 0.6767 GB, free: 9.469 MB / 0.5137 GB Notification: Performance of sort global known variables: time 3.51e-07/0.766, allocations: 0 / 0.6767 GB, free: 9.469 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004851/0.7709, allocations: 0.8074 MB / 0.6775 GB, free: 8.664 MB / 0.5137 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 (112): * Single equations (assignments): 108 * 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.006954/0.7778, allocations: 4.551 MB / 0.6819 GB, free: 4.074 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007817/0.7857, allocations: 3.961 MB / 0.6858 GB, free: 136 kB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.7857, allocations: 0 / 0.6858 GB, free: 136 kB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001884/0.7876, allocations: 1.063 MB / 0.6868 GB, free: 15.06 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002742/0.7903, allocations: 377 kB / 0.6872 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06274/0.853, allocations: 38.21 MB / 0.7245 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003257/0.8563, allocations: 2.204 MB / 0.7267 GB, free: 1.074 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004206/0.8605, allocations: 1.754 MB / 0.7284 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002353/0.8628, allocations: 1.511 MB / 0.7299 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of SimCode: time 9.82e-07/0.8628, allocations: 0 / 0.7299 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.35/1.213, allocations: 55.84 MB / 0.7844 GB, free: 218.9 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.55/16.77, allocations: 6.172 kB / 0.7844 GB, free: 218.9 MB / 0.6075 GB " [Timeout remaining time 643] (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 20.38693231996149]