Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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.00182/0.00182, allocations: 114.5 kB / 21.17 MB, free: 0.6172 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.002308/0.002308, allocations: 206.2 kB / 24.47 MB, free: 4.023 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.518/1.518, allocations: 230.2 MB / 257.8 MB, free: 8.512 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2338/0.2338, allocations: 46.9 MB / 361.1 MB, free: 4.641 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002404/0.002404, allocations: 75.88 kB / 0.4967 GB, free: 7.836 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3915/0.3939, allocations: 66 MB / 0.5612 GB, free: 5 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01138/0.4052, allocations: 9.11 MB / 0.5701 GB, free: 11.85 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.008251/0.4135, allocations: 3.613 MB / 0.5736 GB, free: 8.223 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001828/0.4153, allocations: 47.88 kB / 0.5737 GB, free: 8.176 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004042/0.4194, allocations: 1.947 MB / 0.5756 GB, free: 6.223 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004373/0.4237, allocations: 1.607 MB / 0.5771 GB, free: 4.609 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001461/0.4252, allocations: 0.5731 MB / 0.5777 GB, free: 4.035 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00558/0.4308, allocations: 3.657 MB / 0.5813 GB, free: 380 kB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002692/0.4335, allocations: 1.804 MB / 0.583 GB, free: 14.51 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001991/0.4355, allocations: 1.164 MB / 0.5842 GB, free: 13.34 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002783/0.4382, allocations: 1.776 MB / 0.5859 GB, free: 11.56 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005882/0.4388, allocations: 240 kB / 0.5861 GB, free: 11.33 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002213/0.441, allocations: 1.155 MB / 0.5873 GB, free: 10.17 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001751/0.4428, allocations: 1.542 MB / 0.5888 GB, free: 8.625 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002514/0.4453, allocations: 1.716 MB / 0.5904 GB, free: 6.898 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008944/0.4543, allocations: 5.708 MB / 0.596 GB, free: 1.168 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.4543, allocations: 0 / 0.596 GB, free: 1.168 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.528e-06/0.4543, allocations: 4 kB / 0.596 GB, free: 1.164 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001871/0.4545, allocations: 0 / 0.596 GB, free: 1.164 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.01077/0.4652, allocations: 3.929 MB / 0.5999 GB, free: 13.16 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.4653, allocations: 8.031 kB / 0.5999 GB, free: 13.15 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01661/0.4819, allocations: 2.37 MB / 0.6022 GB, free: 10.78 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006619/0.4885, allocations: 2.253 MB / 0.6044 GB, free: 8.473 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001893/0.4887, allocations: 172.8 kB / 0.6045 GB, free: 8.301 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009722/0.4897, allocations: 244 kB / 0.6048 GB, free: 8.062 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0135/0.5032, allocations: 7.786 MB / 0.6124 GB, free: 15.62 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001056/0.5033, allocations: 39.69 kB / 0.6124 GB, free: 15.59 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000363/0.5036, allocations: 115.9 kB / 0.6125 GB, free: 15.47 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002779/0.5064, allocations: 1.582 MB / 0.6141 GB, free: 13.89 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01335/0.5198, allocations: 6.596 MB / 0.6205 GB, free: 7.277 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04235/0.5621, allocations: 31.68 MB / 0.6515 GB, free: 6.625 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005172/0.5673, allocations: 2.407 MB / 0.6538 GB, free: 4.07 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001558/0.5688, allocations: 1.046 MB / 0.6548 GB, free: 3.012 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004147/0.5693, allocations: 331.2 kB / 0.6551 GB, free: 2.633 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.282e-05/0.5693, allocations: 46.5 kB / 0.6552 GB, free: 2.578 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 3.276e-06/0.5693, allocations: 0 / 0.6552 GB, free: 2.578 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02673/0.596, allocations: 9.315 MB / 0.6643 GB, free: 9.172 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001382/0.5962, allocations: 196.5 kB / 0.6645 GB, free: 8.934 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00587/0.602, allocations: 3.763 MB / 0.6681 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002629/0.6023, allocations: 37.7 kB / 0.6682 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002384/0.6047, allocations: 2.81 MB / 0.6709 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00091/0.6056, allocations: 0.508 MB / 0.6714 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00169/0.6073, allocations: 1.135 MB / 0.6725 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001556/0.6075, allocations: 309.1 kB / 0.6728 GB, free: 344 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002724/0.6102, allocations: 1.693 MB / 0.6745 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006103/0.6163, allocations: 5.255 MB / 0.6796 GB, free: 7.582 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0104/0.6267, allocations: 7.503 MB / 0.6869 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000136/0.6268, allocations: 36 kB / 0.687 GB, free: 14.27 MB / 0.5294 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01584/0.6427, allocations: 7.14 MB / 0.6939 GB, free: 7.117 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 9.894e-05/0.6428, allocations: 64.94 kB / 0.694 GB, free: 7.055 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001622/0.6429, allocations: 128 kB / 0.6941 GB, free: 6.93 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001763/0.6447, allocations: 0.6603 MB / 0.6948 GB, free: 6.266 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00433/0.649, allocations: 1.256 MB / 0.696 GB, free: 5.008 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006017/0.655, allocations: 4.063 MB / 0.7 GB, free: 0.8086 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004896/0.6599, allocations: 299.7 kB / 0.7003 GB, free: 0.5156 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001199/0.6611, allocations: 344.1 kB / 0.7006 GB, free: 184 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.003961/0.6651, allocations: 1.783 MB / 0.7023 GB, free: 14.38 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008538/0.6659, allocations: 321.8 kB / 0.7026 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004204/0.6701, allocations: 1.833 MB / 0.7044 GB, free: 12.21 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.627e-05/0.6702, allocations: 12 kB / 0.7044 GB, free: 12.2 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.439e-05/0.6702, allocations: 4 kB / 0.7044 GB, free: 12.2 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.116e-05/0.6702, allocations: 7.984 kB / 0.7044 GB, free: 12.19 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01299/0.6832, allocations: 5.192 MB / 0.7095 GB, free: 6.926 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-05/0.6832, allocations: 3.938 kB / 0.7095 GB, free: 6.922 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008618/0.6841, allocations: 167.8 kB / 0.7097 GB, free: 6.758 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001439/0.6855, allocations: 476.2 kB / 0.7101 GB, free: 6.289 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001158/0.6856, allocations: 20 kB / 0.7101 GB, free: 6.27 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00446/0.6901, allocations: 3.442 MB / 0.7135 GB, free: 2.695 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.6901, allocations: 0 / 0.7135 GB, free: 2.695 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006333/0.6964, allocations: 3.755 MB / 0.7172 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001122/0.6976, allocations: 374.8 kB / 0.7175 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003634/0.6979, allocations: 31.84 kB / 0.7176 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/0.699, allocations: 59.92 kB / 0.7176 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002009/0.6992, allocations: 60.47 kB / 0.7177 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.86e-05/0.6993, allocations: 32 kB / 0.7177 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00395/0.7032, allocations: 2.334 MB / 0.72 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7e-08/0.7032, allocations: 4 kB / 0.72 GB, free: 12.02 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.004777/0.708, allocations: 0.789 MB / 0.7208 GB, free: 11.23 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.0004358/0.7085, allocations: 147 kB / 0.7209 GB, free: 11.08 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.007056/0.7155, allocations: 3.873 MB / 0.7247 GB, free: 7.215 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.032e-06/0.7155, allocations: 0 / 0.7247 GB, free: 7.215 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001495/0.717, allocations: 0.9309 MB / 0.7256 GB, free: 6.27 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002239/0.7193, allocations: 360.4 kB / 0.7259 GB, free: 5.918 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3079/1.027, allocations: 7.292 MB / 0.7331 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003164/1.03, allocations: 2.719 MB / 0.7357 GB, free: 153.3 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003508/1.034, allocations: 1.704 MB / 0.7374 GB, free: 153.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005437/1.034, allocations: 212.9 kB / 0.7376 GB, free: 153.2 MB / 0.5606 GB Notification: Performance of SimCode: time 1.423e-06/1.034, allocations: 0 / 0.7376 GB, free: 153.2 MB / 0.5606 GB Notification: Performance of Templates: time 0.04767/1.082, allocations: 27.36 MB / 0.7643 GB, free: 132.9 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.9923656969331205]