Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.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.001544/0.001544, allocations: 106.1 kB / 19.8 MB, free: 2.5 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.001602/0.001602, allocations: 213.9 kB / 22.99 MB, free: 5.574 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.505/1.505, allocations: 230.2 MB / 256.2 MB, free: 8.535 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.2353/0.2353, allocations: 46.9 MB / 359.4 MB, free: 4.875 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: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002288/0.002288, allocations: 79.84 kB / 0.4946 GB, free: 8.477 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3672/0.3695, allocations: 65.98 MB / 0.5591 GB, free: 5.066 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01203/0.3815, allocations: 9.13 MB / 0.568 GB, free: 11.89 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008438/0.39, allocations: 3.606 MB / 0.5715 GB, free: 8.273 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001529/0.3915, allocations: 47.88 kB / 0.5716 GB, free: 8.227 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003914/0.3954, allocations: 1.943 MB / 0.5735 GB, free: 6.277 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004276/0.3997, allocations: 1.603 MB / 0.575 GB, free: 4.668 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001382/0.4011, allocations: 0.5731 MB / 0.5756 GB, free: 4.094 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.005343/0.4064, allocations: 3.649 MB / 0.5791 GB, free: 448 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002637/0.409, allocations: 1.815 MB / 0.5809 GB, free: 14.57 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00184/0.4109, allocations: 1.164 MB / 0.5821 GB, free: 13.4 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002245/0.4131, allocations: 1.776 MB / 0.5838 GB, free: 11.62 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004312/0.4136, allocations: 240 kB / 0.584 GB, free: 11.39 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002011/0.4156, allocations: 1.158 MB / 0.5851 GB, free: 10.23 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001506/0.4171, allocations: 1.538 MB / 0.5866 GB, free: 8.684 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001792/0.4189, allocations: 1.716 MB / 0.5883 GB, free: 6.957 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006811/0.4257, allocations: 5.708 MB / 0.5939 GB, free: 1.227 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.602e-06/0.4257, allocations: 0 / 0.5939 GB, free: 1.227 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4257, allocations: 0 / 0.5939 GB, free: 1.227 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001014/0.4258, allocations: 0 / 0.5939 GB, free: 1.227 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.007737/0.4335, allocations: 3.938 MB / 0.5977 GB, free: 13.22 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.665e-05/0.4336, allocations: 12.03 kB / 0.5978 GB, free: 13.21 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01451/0.4481, allocations: 2.366 MB / 0.6001 GB, free: 10.84 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005528/0.4536, allocations: 2.253 MB / 0.6023 GB, free: 8.527 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00016/0.4538, allocations: 176.8 kB / 0.6024 GB, free: 8.352 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005892/0.4544, allocations: 238.1 kB / 0.6027 GB, free: 8.121 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01243/0.4668, allocations: 7.783 MB / 0.6103 GB, free: 15.68 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001022/0.4669, allocations: 43.64 kB / 0.6103 GB, free: 15.64 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003472/0.4672, allocations: 119.8 kB / 0.6104 GB, free: 15.53 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002588/0.4698, allocations: 1.582 MB / 0.612 GB, free: 13.94 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01224/0.4821, allocations: 6.597 MB / 0.6184 GB, free: 7.328 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04054/0.5226, allocations: 31.67 MB / 0.6493 GB, free: 6.684 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005016/0.5276, allocations: 2.403 MB / 0.6517 GB, free: 4.133 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001625/0.5293, allocations: 1.052 MB / 0.6527 GB, free: 3.07 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004365/0.5297, allocations: 331.2 kB / 0.653 GB, free: 2.691 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.136e-05/0.5297, allocations: 42.56 kB / 0.6531 GB, free: 2.641 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 3.357e-06/0.5297, allocations: 0 / 0.6531 GB, free: 2.641 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02425/0.554, allocations: 9.318 MB / 0.6622 GB, free: 9.234 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000171/0.5542, allocations: 196.4 kB / 0.6624 GB, free: 8.996 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00583/0.56, allocations: 3.763 MB / 0.666 GB, free: 5.238 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002563/0.5603, allocations: 41.7 kB / 0.6661 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002335/0.5626, allocations: 2.802 MB / 0.6688 GB, free: 2.363 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006689/0.5633, allocations: 0.5042 MB / 0.6693 GB, free: 1.855 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001566/0.5648, allocations: 1.135 MB / 0.6704 GB, free: 0.7109 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001586/0.565, allocations: 305.1 kB / 0.6707 GB, free: 420 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002704/0.5677, allocations: 1.693 MB / 0.6724 GB, free: 14.71 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005766/0.5735, allocations: 5.263 MB / 0.6775 GB, free: 7.645 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009812/0.5833, allocations: 7.497 MB / 0.6848 GB, free: 14.37 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.96e-05/0.5834, allocations: 39.94 kB / 0.6848 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01399/0.5974, allocations: 7.14 MB / 0.6918 GB, free: 7.184 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.932e-05/0.5974, allocations: 60 kB / 0.6919 GB, free: 7.125 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000157/0.5976, allocations: 132.8 kB / 0.692 GB, free: 6.996 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00162/0.5992, allocations: 0.6526 MB / 0.6926 GB, free: 6.34 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00377/0.603, allocations: 1.248 MB / 0.6939 GB, free: 5.09 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005449/0.6084, allocations: 4.075 MB / 0.6978 GB, free: 0.8789 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004416/0.6129, allocations: 307.5 kB / 0.6981 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008352/0.6137, allocations: 348 kB / 0.6985 GB, free: 244 kB / 0.5294 GB 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 (682): * Single equations (assignments): 678 * 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 {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003177/0.6169, allocations: 1.786 MB / 0.7002 GB, free: 14.44 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007218/0.6176, allocations: 313.9 kB / 0.7005 GB, free: 14.13 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003541/0.6211, allocations: 1.836 MB / 0.7023 GB, free: 12.28 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.784e-05/0.6212, allocations: 15.94 kB / 0.7023 GB, free: 12.27 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.186e-05/0.6212, allocations: 4 kB / 0.7023 GB, free: 12.26 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.799e-05/0.6212, allocations: 7.969 kB / 0.7023 GB, free: 12.25 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01017/0.6314, allocations: 5.189 MB / 0.7074 GB, free: 6.996 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.127e-05/0.6314, allocations: 8.031 kB / 0.7074 GB, free: 6.988 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007803/0.6322, allocations: 151.9 kB / 0.7075 GB, free: 6.84 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001371/0.6335, allocations: 492.1 kB / 0.708 GB, free: 6.355 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.951e-05/0.6336, allocations: 23.98 kB / 0.708 GB, free: 6.332 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004376/0.638, allocations: 3.434 MB / 0.7114 GB, free: 2.758 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.399e-06/0.638, allocations: 7.969 kB / 0.7114 GB, free: 2.75 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006135/0.6441, allocations: 3.754 MB / 0.7151 GB, free: 14.97 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001148/0.6453, allocations: 374.9 kB / 0.7154 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003431/0.6456, allocations: 16 kB / 0.7154 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.6466, allocations: 63.98 kB / 0.7155 GB, free: 14.51 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002237/0.6469, allocations: 56.48 kB / 0.7156 GB, free: 14.45 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.015e-05/0.647, allocations: 31.94 kB / 0.7156 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004082/0.651, allocations: 2.334 MB / 0.7179 GB, free: 12.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.11e-07/0.651, allocations: 0 / 0.7179 GB, free: 12.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005/0.656, allocations: 0.8007 MB / 0.7186 GB, free: 11.3 MB / 0.5606 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.000405/0.6564, allocations: 150.9 kB / 0.7188 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007336/0.6638, allocations: 3.862 MB / 0.7226 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.34e-06/0.6638, allocations: 4.062 kB / 0.7226 GB, free: 7.285 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001546/0.6653, allocations: 0.9348 MB / 0.7235 GB, free: 6.336 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002388/0.6677, allocations: 355.8 kB / 0.7238 GB, free: 5.988 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2983/0.966, allocations: 7.292 MB / 0.7309 GB, free: 154.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003325/0.9694, allocations: 2.72 MB / 0.7336 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003423/0.9728, allocations: 1.694 MB / 0.7353 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005209/0.9733, allocations: 211.1 kB / 0.7355 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of SimCode: time 9.91e-07/0.9733, allocations: 0 / 0.7355 GB, free: 153.5 MB / 0.5606 GB Notification: Performance of Templates: time 0.04818/1.021, allocations: 27.37 MB / 0.7622 GB, free: 133 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 6.920246412046254]