Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008652/0.0008652, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008358/0.0008358, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8882/0.8882, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2257/0.2257, allocations: 34.25 MB / 294.8 MB, free: 0.6953 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 442.2 MB, free: 1.582 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.038e-05/1.191e-05, allocations: 5.094 kB / 442.2 MB, free: 1.578 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.1726/0.1726, allocations: 7.908 MB / 450.1 MB, free: 40.07 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.003275/0.1759, allocations: 3.372 MB / 453.4 MB, free: 38 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003731/0.1763, allocations: 56.91 kB / 453.5 MB, free: 37.98 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001377/0.1776, allocations: 1.711 MB / 455.2 MB, free: 37.27 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001363/0.179, allocations: 1.633 MB / 456.8 MB, free: 36.53 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004684/0.1795, allocations: 0.6031 MB / 457.4 MB, free: 36.29 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.001732/0.1812, allocations: 3.961 MB / 461.4 MB, free: 34.79 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001057/0.1823, allocations: 2.078 MB / 463.5 MB, free: 33.85 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009826/0.1832, allocations: 1.678 MB / 465.2 MB, free: 33.14 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009762/0.1842, allocations: 1.698 MB / 466.9 MB, free: 32.7 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001856/0.1844, allocations: 224.1 kB / 467.1 MB, free: 32.7 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008233/0.1852, allocations: 1.045 MB / 468.1 MB, free: 32.5 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006658/0.1859, allocations: 1.52 MB / 469.6 MB, free: 31.86 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005301/0.1864, allocations: 0.9755 MB / 470.6 MB, free: 31.38 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002716/0.1891, allocations: 5.626 MB / 476.2 MB, free: 29.48 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1891, allocations: 0 / 476.2 MB, free: 29.48 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1891, allocations: 0 / 476.2 MB, free: 29.48 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.45e-05/0.1892, allocations: 0 / 476.2 MB, free: 29.48 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.004952/0.1941, allocations: 3.841 MB / 480.1 MB, free: 27.3 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.255e-05/0.1942, allocations: 9.031 kB / 480.1 MB, free: 27.3 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005478/0.1947, allocations: 0.5422 MB / 480.6 MB, free: 27.02 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03948/0.2342, allocations: 7.154 MB / 487.8 MB, free: 26.46 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004573/0.2388, allocations: 2.177 MB / 490 MB, free: 25.38 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.889e-05/0.2389, allocations: 159.8 kB / 490.1 MB, free: 25.3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003048/0.2392, allocations: 223.8 kB / 490.3 MB, free: 25.21 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007468/0.2467, allocations: 7.401 MB / 497.7 MB, free: 21.29 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.857e-05/0.2467, allocations: 39.58 kB / 497.8 MB, free: 21.27 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001939/0.2469, allocations: 105.8 kB / 497.9 MB, free: 21.2 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001467/0.2484, allocations: 1.543 MB / 499.4 MB, free: 20.59 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006042/0.2544, allocations: 6.169 MB / 0.4937 GB, free: 16.66 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01815/0.2726, allocations: 28.94 MB / 0.522 GB, free: 2.828 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00239/0.275, allocations: 1.689 MB / 0.5237 GB, free: 1.105 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001061/0.276, allocations: 0.9886 MB / 0.5246 GB, free: 108 kB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001632/0.2762, allocations: 92.23 kB / 0.5247 GB, free: 16 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002811/0.2765, allocations: 54.98 kB / 0.5248 GB, free: 15.95 MB / 442.7 MB Notification: Performance of pre-optimization done (n=108): time 3.026e-06/0.2765, allocations: 0 / 0.5248 GB, free: 15.95 MB / 442.7 MB Notification: Performance of matching and sorting (n=132): time 0.01863/0.2951, allocations: 11.3 MB / 0.5358 GB, free: 4.582 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.275e-05/0.2952, allocations: 196.6 kB / 0.536 GB, free: 4.348 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003731/0.2989, allocations: 3.991 MB / 0.5399 GB, free: 364 kB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.541e-05/0.299, allocations: 45.88 kB / 0.5399 GB, free: 312 kB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001096/0.3001, allocations: 2.64 MB / 0.5425 GB, free: 13.64 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003237/0.3004, allocations: 0.5466 MB / 0.543 GB, free: 13.09 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000862/0.3013, allocations: 1.032 MB / 0.544 GB, free: 12.04 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.585e-05/0.3013, allocations: 305.1 kB / 0.5443 GB, free: 11.74 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001783/0.3031, allocations: 1.634 MB / 0.5459 GB, free: 10.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00329/0.3064, allocations: 5.016 MB / 0.5508 GB, free: 3.387 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005074/0.3115, allocations: 7.181 MB / 0.5578 GB, free: 10.55 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-05/0.3115, allocations: 32 kB / 0.5579 GB, free: 10.52 MB / 474.7 MB Notification: Performance of matching and sorting (n=675) (initialization): time 0.006311/0.3178, allocations: 6.564 MB / 0.5643 GB, free: 3.941 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.674e-05/0.3179, allocations: 52 kB / 0.5643 GB, free: 3.891 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.135e-05/0.3179, allocations: 120.9 kB / 0.5644 GB, free: 3.773 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005488/0.3185, allocations: 405.4 kB / 0.5648 GB, free: 3.375 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001807/0.3203, allocations: 1.185 MB / 0.566 GB, free: 2.188 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002453/0.3227, allocations: 3.245 MB / 0.5692 GB, free: 14.83 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002028/0.3248, allocations: 315.6 kB / 0.5695 GB, free: 14.52 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002643/0.325, allocations: 324 kB / 0.5698 GB, free: 14.21 MB / 490.7 MB 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.001993/0.327, allocations: 1.693 MB / 0.5714 GB, free: 12.5 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002881/0.3273, allocations: 321.9 kB / 0.5717 GB, free: 12.18 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001726/0.329, allocations: 1.725 MB / 0.5734 GB, free: 10.45 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-05/0.3291, allocations: 15.98 kB / 0.5734 GB, free: 10.43 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.3291, allocations: 4 kB / 0.5734 GB, free: 10.43 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.3291, allocations: 3.984 kB / 0.5734 GB, free: 10.42 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005432/0.3345, allocations: 5.01 MB / 0.5783 GB, free: 5.348 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.3345, allocations: 4 kB / 0.5783 GB, free: 5.344 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004725/0.335, allocations: 197.7 kB / 0.5785 GB, free: 5.152 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003729/0.3354, allocations: 228.7 kB / 0.5787 GB, free: 4.926 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.349e-05/0.3354, allocations: 23.94 kB / 0.5788 GB, free: 4.902 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001899/0.3373, allocations: 2.616 MB / 0.5813 GB, free: 2.172 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.806e-06/0.3373, allocations: 4.031 kB / 0.5813 GB, free: 2.168 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003526/0.3408, allocations: 3.731 MB / 0.585 GB, free: 14.4 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000367/0.3412, allocations: 321.8 kB / 0.5853 GB, free: 14.09 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001726/0.3414, allocations: 27.98 kB / 0.5853 GB, free: 14.06 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006183/0.342, allocations: 91.86 kB / 0.5854 GB, free: 13.97 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000126/0.3421, allocations: 85.38 kB / 0.5855 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.398e-05/0.3422, allocations: 32 kB / 0.5855 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002165/0.3443, allocations: 2.409 MB / 0.5879 GB, free: 11.46 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.5e-07/0.3443, allocations: 0 / 0.5879 GB, free: 11.46 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002475/0.3468, allocations: 0.8553 MB / 0.5887 GB, free: 10.6 MB / 0.4948 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.003955/0.3508, allocations: 4.374 MB / 0.593 GB, free: 6.191 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003762/0.3545, allocations: 3.783 MB / 0.5967 GB, free: 2.418 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.3545, allocations: 0 / 0.5967 GB, free: 2.418 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0008604/0.3554, allocations: 0.9978 MB / 0.5976 GB, free: 1.41 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001244/0.3566, allocations: 365.8 kB / 0.598 GB, free: 1.066 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03219/0.3888, allocations: 36.98 MB / 0.6341 GB, free: 7.051 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001598/0.3904, allocations: 2.085 MB / 0.6361 GB, free: 4.93 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002364/0.3928, allocations: 1.706 MB / 0.6378 GB, free: 3.219 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001134/0.3939, allocations: 1.41 MB / 0.6392 GB, free: 1.809 MB / 0.5417 GB Notification: Performance of SimCode: time 8.61e-07/0.3939, allocations: 0 / 0.6392 GB, free: 1.809 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2249/0.6188, allocations: 55.13 MB / 0.693 GB, free: 155.2 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.761/9.379, allocations: 3.562 kB / 0.693 GB, free: 155.2 MB / 0.5417 GB " [Timeout remaining time 651] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_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: 11.584880768321455]