Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.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.002003/0.002003, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.002681/0.002681, allocations: 208.8 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.493/1.493, allocations: 230.6 MB / 257.5 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2287/0.2287, allocations: 44.94 MB / 358.8 MB, free: 6.051 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 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.00224/0.00224, allocations: 63.91 kB / 0.4935 GB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3102/0.3125, allocations: 65.49 MB / 0.5575 GB, free: 7.461 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01102/0.3235, allocations: 8.014 MB / 0.5653 GB, free: 15.41 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007174/0.3307, allocations: 3.38 MB / 0.5686 GB, free: 12.02 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008878/0.3315, allocations: 63.62 kB / 0.5686 GB, free: 11.95 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003722/0.3353, allocations: 1.869 MB / 0.5705 GB, free: 10.08 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003659/0.3389, allocations: 1.615 MB / 0.572 GB, free: 8.457 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001276/0.3402, allocations: 0.577 MB / 0.5726 GB, free: 7.879 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004883/0.3451, allocations: 3.662 MB / 0.5762 GB, free: 4.211 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002469/0.3476, allocations: 1.993 MB / 0.5781 GB, free: 2.16 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002344/0.3499, allocations: 1.18 MB / 0.5793 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003057/0.353, allocations: 1.686 MB / 0.5809 GB, free: 15.29 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006478/0.3536, allocations: 240 kB / 0.5812 GB, free: 15.05 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002063/0.3557, allocations: 1.022 MB / 0.5822 GB, free: 14.03 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001864/0.3575, allocations: 1.542 MB / 0.5837 GB, free: 12.48 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001895/0.3594, allocations: 1.262 MB / 0.5849 GB, free: 11.21 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006858/0.3663, allocations: 5.727 MB / 0.5905 GB, free: 5.461 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.3663, allocations: 0 / 0.5905 GB, free: 5.461 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3663, allocations: 3.938 kB / 0.5905 GB, free: 5.457 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001151/0.3664, allocations: 0 / 0.5905 GB, free: 5.457 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.007793/0.3742, allocations: 3.854 MB / 0.5943 GB, free: 1.547 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.3742, allocations: 8.031 kB / 0.5943 GB, free: 1.539 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0162/0.3904, allocations: 2.37 MB / 0.5966 GB, free: 15.16 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006276/0.3967, allocations: 2.201 MB / 0.5987 GB, free: 12.93 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001654/0.3969, allocations: 176.8 kB / 0.5989 GB, free: 12.75 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000637/0.3975, allocations: 240 kB / 0.5991 GB, free: 12.52 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01271/0.4102, allocations: 7.837 MB / 0.6068 GB, free: 4.016 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001026/0.4103, allocations: 43.67 kB / 0.6068 GB, free: 3.973 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003288/0.4107, allocations: 111.9 kB / 0.6069 GB, free: 3.863 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002797/0.4135, allocations: 1.586 MB / 0.6085 GB, free: 2.273 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01312/0.4266, allocations: 6.576 MB / 0.6149 GB, free: 11.69 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04094/0.4675, allocations: 29.77 MB / 0.644 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004716/0.4722, allocations: 1.955 MB / 0.6459 GB, free: 10.97 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00147/0.4737, allocations: 1.034 MB / 0.6469 GB, free: 9.922 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002674/0.474, allocations: 99.88 kB / 0.647 GB, free: 9.824 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.743e-05/0.474, allocations: 46.56 kB / 0.647 GB, free: 9.77 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 3.697e-06/0.474, allocations: 0 / 0.647 GB, free: 9.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02298/0.497, allocations: 9.168 MB / 0.656 GB, free: 0.543 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001327/0.4971, allocations: 200.3 kB / 0.6562 GB, free: 308 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004796/0.5019, allocations: 3.518 MB / 0.6596 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001178/0.502, allocations: 41.89 kB / 0.6596 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002263/0.5043, allocations: 2.835 MB / 0.6624 GB, free: 9.859 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005539/0.5049, allocations: 0.5158 MB / 0.6629 GB, free: 9.34 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001537/0.5064, allocations: 1.135 MB / 0.664 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001371/0.5065, allocations: 305.1 kB / 0.6643 GB, free: 7.895 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002643/0.5092, allocations: 1.693 MB / 0.666 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00607/0.5153, allocations: 5.313 MB / 0.6712 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009869/0.5251, allocations: 7.51 MB / 0.6785 GB, free: 5.785 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.351e-05/0.5252, allocations: 36 kB / 0.6785 GB, free: 5.75 MB / 0.5137 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01258/0.5378, allocations: 7.097 MB / 0.6855 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.465e-05/0.5379, allocations: 60 kB / 0.6855 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001539/0.538, allocations: 131.9 kB / 0.6856 GB, free: 14.46 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001629/0.5397, allocations: 0.6487 MB / 0.6863 GB, free: 13.81 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003673/0.5433, allocations: 1.255 MB / 0.6875 GB, free: 12.55 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005422/0.5488, allocations: 3.913 MB / 0.6913 GB, free: 8.543 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003561/0.5523, allocations: 299.5 kB / 0.6916 GB, free: 8.25 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000604/0.5529, allocations: 348 kB / 0.6919 GB, free: 7.91 MB / 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.002757/0.5557, allocations: 1.775 MB / 0.6937 GB, free: 6.121 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005115/0.5562, allocations: 286.1 kB / 0.6939 GB, free: 5.84 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00353/0.5597, allocations: 1.796 MB / 0.6957 GB, free: 4.02 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.793e-05/0.5597, allocations: 16 kB / 0.6957 GB, free: 4.004 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.458e-06/0.5598, allocations: 4 kB / 0.6957 GB, free: 4 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.355e-05/0.5598, allocations: 11.97 kB / 0.6957 GB, free: 3.988 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009309/0.5691, allocations: 4.445 MB / 0.7001 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.892e-06/0.5691, allocations: 0 / 0.7001 GB, free: 15.48 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007952/0.5699, allocations: 155.8 kB / 0.7002 GB, free: 15.33 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001388/0.5713, allocations: 488.2 kB / 0.7007 GB, free: 14.85 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.018e-05/0.5713, allocations: 24.02 kB / 0.7007 GB, free: 14.83 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004391/0.5757, allocations: 3.283 MB / 0.7039 GB, free: 11.45 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.429e-06/0.5757, allocations: 4.031 kB / 0.7039 GB, free: 11.44 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005908/0.5816, allocations: 3.713 MB / 0.7075 GB, free: 7.699 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006856/0.5823, allocations: 250 kB / 0.7078 GB, free: 7.453 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002868/0.5826, allocations: 23.98 kB / 0.7078 GB, free: 7.43 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009478/0.5836, allocations: 60.05 kB / 0.7079 GB, free: 7.371 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001731/0.5837, allocations: 64.33 kB / 0.7079 GB, free: 7.309 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.028e-05/0.5838, allocations: 31.98 kB / 0.708 GB, free: 7.277 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00314/0.587, allocations: 2.018 MB / 0.7099 GB, free: 5.262 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.587, allocations: 0 / 0.7099 GB, free: 5.262 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003725/0.5907, allocations: 0.7889 MB / 0.7107 GB, free: 4.473 MB / 0.545 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.000334/0.591, allocations: 151.5 kB / 0.7108 GB, free: 4.312 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006431/0.5975, allocations: 3.86 MB / 0.7146 GB, free: 480 kB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.5975, allocations: 5.125 kB / 0.7146 GB, free: 476 kB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001484/0.5989, allocations: 0.9391 MB / 0.7155 GB, free: 15.51 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001754/0.6007, allocations: 308.9 kB / 0.7158 GB, free: 15.21 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01353/0.6142, allocations: 7.244 MB / 0.7229 GB, free: 7.918 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003363/0.6176, allocations: 2.16 MB / 0.725 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004149/0.6217, allocations: 1.665 MB / 0.7266 GB, free: 4.047 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005994/0.6223, allocations: 191.4 kB / 0.7268 GB, free: 3.863 MB / 0.5606 GB Notification: Performance of SimCode: time 1.343e-06/0.6223, allocations: 8 kB / 0.7268 GB, free: 3.855 MB / 0.5606 GB Notification: Performance of Templates: time 0.3085/0.9308, allocations: 25.78 MB / 0.752 GB, free: 145.3 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_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.9457656890153885]