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.001635/0.001635, allocations: 105.1 kB / 21.22 MB, free: 0.6211 MB / 14.72 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.001733/0.001733, allocations: 209.9 kB / 24.52 MB, free: 3.91 MB / 14.72 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 1.452/1.452, allocations: 230.5 MB / 258.2 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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.2249/0.2249, allocations: 46.94 MB / 361.6 MB, free: 3.945 MB / 286.1 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002265/0.002265, allocations: 79.88 kB / 0.4969 GB, free: 7.566 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.3008, allocations: 66.08 MB / 0.5614 GB, free: 4.047 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01128/0.3121, allocations: 7.88 MB / 0.5691 GB, free: 12.13 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007327/0.3194, allocations: 3.357 MB / 0.5724 GB, free: 8.762 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001466/0.3209, allocations: 55.75 kB / 0.5725 GB, free: 8.707 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003904/0.3248, allocations: 1.623 MB / 0.574 GB, free: 7.078 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004293/0.3291, allocations: 1.583 MB / 0.5756 GB, free: 5.492 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001461/0.3306, allocations: 0.5614 MB / 0.5761 GB, free: 4.93 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006815/0.3374, allocations: 3.58 MB / 0.5796 GB, free: 1.34 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003871/0.3413, allocations: 1.821 MB / 0.5814 GB, free: 15.46 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002568/0.3438, allocations: 1.117 MB / 0.5825 GB, free: 14.34 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002901/0.3467, allocations: 1.666 MB / 0.5841 GB, free: 12.66 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007677/0.3475, allocations: 223.9 kB / 0.5843 GB, free: 12.45 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002317/0.3498, allocations: 1.006 MB / 0.5853 GB, free: 11.44 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001891/0.3517, allocations: 1.457 MB / 0.5868 GB, free: 9.98 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002182/0.3539, allocations: 1.238 MB / 0.588 GB, free: 8.734 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008127/0.362, allocations: 5.591 MB / 0.5934 GB, free: 3.121 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.386e-06/0.362, allocations: 0 / 0.5934 GB, free: 3.121 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.362, allocations: 0 / 0.5934 GB, free: 3.121 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002391/0.3623, allocations: 0 / 0.5934 GB, free: 3.121 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.01122/0.3735, allocations: 3.812 MB / 0.5971 GB, free: 15.25 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.582e-05/0.3735, allocations: 8.031 kB / 0.5972 GB, free: 15.24 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001081/0.3736, allocations: 76.39 kB / 0.5972 GB, free: 15.16 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00125/0.3749, allocations: 0.5384 MB / 0.5977 GB, free: 14.61 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08299/0.4579, allocations: 6.947 MB / 0.6045 GB, free: 7.652 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006042/0.4639, allocations: 2.349 MB / 0.6068 GB, free: 5.266 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001753/0.4641, allocations: 162.2 kB / 0.607 GB, free: 5.105 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008168/0.4649, allocations: 219.8 kB / 0.6072 GB, free: 4.891 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01354/0.4784, allocations: 7.389 MB / 0.6144 GB, free: 12.86 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001662/0.4786, allocations: 35.7 kB / 0.6144 GB, free: 12.83 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008058/0.4794, allocations: 111.8 kB / 0.6145 GB, free: 12.72 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00294/0.4824, allocations: 1.55 MB / 0.6161 GB, free: 11.16 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01301/0.4954, allocations: 6.19 MB / 0.6221 GB, free: 4.961 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0385/0.5339, allocations: 28.74 MB / 0.6502 GB, free: 7.297 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004692/0.5386, allocations: 1.63 MB / 0.6518 GB, free: 5.629 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001548/0.5401, allocations: 0.9846 MB / 0.6527 GB, free: 4.633 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003046/0.5404, allocations: 92.3 kB / 0.6528 GB, free: 4.543 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.989e-05/0.5405, allocations: 50.94 kB / 0.6529 GB, free: 4.484 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 4.498e-06/0.5405, allocations: 0 / 0.6529 GB, free: 4.484 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.0375/0.578, allocations: 10.93 MB / 0.6635 GB, free: 9.48 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000155/0.5781, allocations: 196.5 kB / 0.6637 GB, free: 9.246 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006459/0.5846, allocations: 3.626 MB / 0.6673 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002495/0.5848, allocations: 45.64 kB / 0.6673 GB, free: 5.57 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002337/0.5872, allocations: 2.667 MB / 0.6699 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007188/0.5879, allocations: 0.5506 MB / 0.6705 GB, free: 2.32 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001651/0.5896, allocations: 1.052 MB / 0.6715 GB, free: 1.258 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001249/0.5897, allocations: 305.1 kB / 0.6718 GB, free: 0.957 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00275/0.5924, allocations: 1.63 MB / 0.6734 GB, free: 15.32 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005999/0.5984, allocations: 5.02 MB / 0.6783 GB, free: 8.602 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009468/0.6079, allocations: 7.164 MB / 0.6853 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001285/0.608, allocations: 36 kB / 0.6853 GB, free: 15.74 MB / 0.5294 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.0133/0.6213, allocations: 6.576 MB / 0.6917 GB, free: 9.16 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002268/0.6215, allocations: 56 kB / 0.6918 GB, free: 9.105 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003345/0.6219, allocations: 123.9 kB / 0.6919 GB, free: 8.984 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001396/0.6233, allocations: 400.6 kB / 0.6923 GB, free: 8.59 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004357/0.6276, allocations: 1.189 MB / 0.6934 GB, free: 7.398 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004282/0.6319, allocations: 3.183 MB / 0.6965 GB, free: 4.102 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003844/0.6358, allocations: 287.5 kB / 0.6968 GB, free: 3.82 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008109/0.6366, allocations: 328 kB / 0.6971 GB, free: 3.5 MB / 0.5294 GB 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.003049/0.6396, allocations: 1.706 MB / 0.6988 GB, free: 1.781 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006611/0.6403, allocations: 317.8 kB / 0.6991 GB, free: 1.469 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003328/0.6436, allocations: 1.706 MB / 0.7008 GB, free: 15.74 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.178e-05/0.6436, allocations: 16 kB / 0.7008 GB, free: 15.73 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-05/0.6437, allocations: 4 kB / 0.7008 GB, free: 15.72 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.6437, allocations: 7.984 kB / 0.7008 GB, free: 15.71 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01017/0.6538, allocations: 4.919 MB / 0.7056 GB, free: 10.73 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.434e-05/0.6538, allocations: 4 kB / 0.7056 GB, free: 10.72 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001085/0.6549, allocations: 195.7 kB / 0.7058 GB, free: 10.53 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007293/0.6557, allocations: 228.7 kB / 0.706 GB, free: 10.3 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/0.6558, allocations: 20 kB / 0.706 GB, free: 10.29 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003235/0.659, allocations: 2.581 MB / 0.7085 GB, free: 7.59 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.659, allocations: 4.031 kB / 0.7086 GB, free: 7.586 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005905/0.6649, allocations: 3.725 MB / 0.7122 GB, free: 3.832 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008776/0.6658, allocations: 301.7 kB / 0.7125 GB, free: 3.535 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004537/0.6663, allocations: 20 kB / 0.7125 GB, free: 3.516 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001264/0.6675, allocations: 72.02 kB / 0.7126 GB, free: 3.445 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002111/0.6677, allocations: 80.45 kB / 0.7126 GB, free: 3.367 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001033/0.6678, allocations: 32 kB / 0.7127 GB, free: 3.336 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003855/0.6717, allocations: 2.265 MB / 0.7149 GB, free: 1.082 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6717, allocations: 0 / 0.7149 GB, free: 1.082 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003994/0.6757, allocations: 0.7578 MB / 0.7156 GB, free: 332 kB / 0.545 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.006391/0.6821, allocations: 4.353 MB / 0.7199 GB, free: 11.93 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006866/0.6889, allocations: 3.786 MB / 0.7236 GB, free: 8.156 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.6889, allocations: 0 / 0.7236 GB, free: 8.156 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001692/0.6906, allocations: 0.9951 MB / 0.7245 GB, free: 7.148 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002387/0.693, allocations: 365.6 kB / 0.7249 GB, free: 6.793 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2898/0.9828, allocations: 36.6 MB / 0.7606 GB, free: 132.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001953/0.9847, allocations: 2.078 MB / 0.7627 GB, free: 130.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.00319/0.9879, allocations: 1.702 MB / 0.7643 GB, free: 128.7 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001625/0.9896, allocations: 1.401 MB / 0.7657 GB, free: 127.3 MB / 0.5606 GB Notification: Performance of SimCode: time 1.112e-06/0.9896, allocations: 3.5 kB / 0.7657 GB, free: 127.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08397/1.074, allocations: 55.59 MB / 0.82 GB, free: 72.37 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.04/25.11, allocations: 27.11 kB / 0.82 GB, free: 72.35 MB / 0.5606 GB " [Timeout remaining time 635] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/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: 28.867495193029754]