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.001928/0.001928, allocations: 116.5 kB / 20.43 MB, free: 1.301 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.002334/0.002334, allocations: 207.2 kB / 23.74 MB, free: 4.539 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.594/1.594, allocations: 230.5 MB / 257.4 MB, free: 8.008 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.2391/0.2391, allocations: 46.92 MB / 360.8 MB, free: 4.18 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="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 0.002399/0.002399, allocations: 83.86 kB / 0.4962 GB, free: 7.758 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3663/0.3687, allocations: 66.08 MB / 0.5607 GB, free: 4.277 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01228/0.381, allocations: 8.995 MB / 0.5695 GB, free: 11.24 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008107/0.3891, allocations: 3.59 MB / 0.573 GB, free: 7.641 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001432/0.3905, allocations: 55.75 kB / 0.5731 GB, free: 7.586 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004145/0.3947, allocations: 1.697 MB / 0.5747 GB, free: 5.883 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00467/0.3994, allocations: 1.584 MB / 0.5763 GB, free: 4.293 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001619/0.401, allocations: 0.5575 MB / 0.5768 GB, free: 3.734 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.006037/0.407, allocations: 3.58 MB / 0.5803 GB, free: 152 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003141/0.4102, allocations: 1.825 MB / 0.5821 GB, free: 14.27 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002248/0.4124, allocations: 1.113 MB / 0.5832 GB, free: 13.15 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002967/0.4154, allocations: 1.67 MB / 0.5848 GB, free: 11.47 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008121/0.4162, allocations: 220 kB / 0.585 GB, free: 11.26 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002642/0.4188, allocations: 1.131 MB / 0.5861 GB, free: 10.12 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002137/0.421, allocations: 1.457 MB / 0.5876 GB, free: 8.664 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003064/0.424, allocations: 1.681 MB / 0.5892 GB, free: 6.973 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008694/0.4327, allocations: 5.576 MB / 0.5946 GB, free: 1.375 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.4327, allocations: 4 kB / 0.5946 GB, free: 1.371 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4327, allocations: 0 / 0.5946 GB, free: 1.371 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000178/0.4329, allocations: 0 / 0.5946 GB, free: 1.371 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.01163/0.4445, allocations: 3.809 MB / 0.5984 GB, free: 13.5 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/0.4446, allocations: 12.03 kB / 0.5984 GB, free: 13.49 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001421/0.446, allocations: 0.5384 MB / 0.5989 GB, free: 12.94 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08372/0.5297, allocations: 6.947 MB / 0.6057 GB, free: 5.984 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006221/0.536, allocations: 2.333 MB / 0.608 GB, free: 3.613 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001875/0.5361, allocations: 165.2 kB / 0.6081 GB, free: 3.449 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008336/0.537, allocations: 215.8 kB / 0.6083 GB, free: 3.238 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01456/0.5515, allocations: 7.339 MB / 0.6155 GB, free: 11.27 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001581/0.5517, allocations: 35.7 kB / 0.6155 GB, free: 11.23 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000767/0.5525, allocations: 111.9 kB / 0.6156 GB, free: 11.12 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003062/0.5555, allocations: 1.55 MB / 0.6171 GB, free: 9.57 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.014/0.5695, allocations: 6.194 MB / 0.6232 GB, free: 3.363 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04834/0.6179, allocations: 29.78 MB / 0.6523 GB, free: 4.664 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005/0.6229, allocations: 1.633 MB / 0.6539 GB, free: 2.992 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001616/0.6245, allocations: 0.9981 MB / 0.6548 GB, free: 1.984 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003211/0.6248, allocations: 84.31 kB / 0.6549 GB, free: 1.902 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.682e-05/0.6249, allocations: 47 kB / 0.655 GB, free: 1.848 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 4.518e-06/0.6249, allocations: 0 / 0.655 GB, free: 1.848 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03612/0.661, allocations: 10.9 MB / 0.6656 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001468/0.6611, allocations: 192.6 kB / 0.6658 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006924/0.6681, allocations: 3.622 MB / 0.6693 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002548/0.6683, allocations: 41.7 kB / 0.6694 GB, free: 2.973 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00271/0.671, allocations: 2.663 MB / 0.672 GB, free: 288 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007654/0.6718, allocations: 0.5545 MB / 0.6725 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002124/0.6739, allocations: 1.052 MB / 0.6736 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001418/0.6741, allocations: 301.1 kB / 0.6738 GB, free: 14.36 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003067/0.6771, allocations: 1.63 MB / 0.6754 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006238/0.6834, allocations: 4.965 MB / 0.6803 GB, free: 6.074 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009778/0.6931, allocations: 7.172 MB / 0.6873 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001152/0.6933, allocations: 36 kB / 0.6873 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.01353/0.7068, allocations: 6.581 MB / 0.6937 GB, free: 6.617 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001453/0.7069, allocations: 56 kB / 0.6938 GB, free: 6.562 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002103/0.7071, allocations: 116 kB / 0.6939 GB, free: 6.449 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001093/0.7082, allocations: 401.1 kB / 0.6943 GB, free: 6.055 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004028/0.7123, allocations: 1.189 MB / 0.6955 GB, free: 4.863 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004415/0.7167, allocations: 3.206 MB / 0.6986 GB, free: 1.543 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003677/0.7204, allocations: 279.6 kB / 0.6988 GB, free: 1.27 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007276/0.7211, allocations: 332 kB / 0.6992 GB, free: 0.9453 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.00317/0.7243, allocations: 1.701 MB / 0.7008 GB, free: 15.23 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006955/0.7249, allocations: 321.8 kB / 0.7011 GB, free: 14.91 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00363/0.7286, allocations: 1.714 MB / 0.7028 GB, free: 13.18 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.037e-05/0.7286, allocations: 16 kB / 0.7028 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/0.7286, allocations: 4 kB / 0.7028 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.489e-05/0.7286, allocations: 3.984 kB / 0.7028 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0113/0.7399, allocations: 5.199 MB / 0.7079 GB, free: 7.879 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-05/0.74, allocations: 4 kB / 0.7079 GB, free: 7.875 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001043/0.741, allocations: 203.7 kB / 0.7081 GB, free: 7.676 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007337/0.7417, allocations: 228.6 kB / 0.7083 GB, free: 7.449 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001377/0.7419, allocations: 24 kB / 0.7083 GB, free: 7.426 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003525/0.7454, allocations: 2.597 MB / 0.7109 GB, free: 4.711 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.7454, allocations: 0 / 0.7109 GB, free: 4.711 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006268/0.7517, allocations: 3.736 MB / 0.7145 GB, free: 0.9453 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009272/0.7526, allocations: 297.7 kB / 0.7148 GB, free: 0.6523 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000563/0.7532, allocations: 16.06 kB / 0.7148 GB, free: 0.6367 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001333/0.7545, allocations: 75.91 kB / 0.7149 GB, free: 0.5625 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001951/0.7547, allocations: 76.39 kB / 0.715 GB, free: 500 kB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001123/0.7548, allocations: 36 kB / 0.715 GB, free: 464 kB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00447/0.7593, allocations: 2.265 MB / 0.7172 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of sort global known variables: time 9e-08/0.7593, allocations: 0 / 0.7172 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004213/0.7635, allocations: 0.7499 MB / 0.718 GB, free: 13.45 MB / 0.5606 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.006999/0.7705, allocations: 4.357 MB / 0.7222 GB, free: 9.051 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007251/0.7777, allocations: 3.786 MB / 0.7259 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 9.258e-06/0.7777, allocations: 4 kB / 0.7259 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001829/0.7796, allocations: 0.9977 MB / 0.7269 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002908/0.7825, allocations: 377.1 kB / 0.7272 GB, free: 3.898 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3134/1.096, allocations: 36.6 MB / 0.763 GB, free: 130.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002492/1.098, allocations: 2.629 MB / 0.7656 GB, free: 127.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003349/1.102, allocations: 1.701 MB / 0.7672 GB, free: 125.9 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001887/1.104, allocations: 1.401 MB / 0.7686 GB, free: 124.5 MB / 0.5606 GB Notification: Performance of SimCode: time 1.382e-06/1.104, allocations: 2.625 kB / 0.7686 GB, free: 124.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09613/1.2, allocations: 57.93 MB / 0.8252 GB, free: 66.94 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.28/26.48, allocations: 8 kB / 0.8252 GB, free: 66.93 MB / 0.5606 GB " [Timeout remaining time 633] (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: 30.036809048149735]