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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001464/0.001464, allocations: 101.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001628/0.001628, allocations: 194 kB / 18.77 MB, free: 4.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.19/2.19, allocations: 222.9 MB / 242.4 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3504/0.3504, allocations: 44.17 MB / 336.8 MB, free: 3.02 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 68 kB / 408.4 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1679/0.1699, allocations: 60.82 MB / 469.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.05972/0.2297, allocations: 40.72 MB / 0.4979 GB, free: 5.965 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3871/0.6169, allocations: 8.858 MB / 0.5066 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01324/0.6302, allocations: 171.4 kB / 0.5068 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006375/0.6367, allocations: 1.911 MB / 0.5086 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007582/0.6444, allocations: 1.536 MB / 0.5101 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002437/0.6468, allocations: 0.5217 MB / 0.5106 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01296/0.6598, allocations: 5.34 MB / 0.5159 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007471/0.6673, allocations: 2.464 MB / 0.5183 GB, free: 9.812 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00372/0.6711, allocations: 1.05 MB / 0.5193 GB, free: 9.812 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004855/0.676, allocations: 1.814 MB / 0.5211 GB, free: 9.633 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001499/0.6775, allocations: 175.9 kB / 0.5212 GB, free: 9.633 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004205/0.6818, allocations: 1.13 MB / 0.5223 GB, free: 9.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003185/0.685, allocations: 1.536 MB / 0.5238 GB, free: 8.742 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003607/0.6886, allocations: 1.736 MB / 0.5255 GB, free: 7.461 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007936/0.6966, allocations: 4.63 MB / 0.53 GB, free: 4.531 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.207e-06/0.6967, allocations: 0 / 0.53 GB, free: 4.531 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.6967, allocations: 6.531 kB / 0.53 GB, free: 4.527 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002544/0.697, allocations: 0 / 0.53 GB, free: 4.527 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.01445/0.7114, allocations: 3.954 MB / 0.5339 GB, free: 1.816 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.874e-05/0.7115, allocations: 12.95 kB / 0.5339 GB, free: 1.812 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02496/0.7365, allocations: 2.402 MB / 0.5363 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009265/0.7458, allocations: 2.292 MB / 0.5385 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003231/0.7462, allocations: 178.6 kB / 0.5387 GB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00151/0.7477, allocations: 249.8 kB / 0.5389 GB, free: 15.22 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02192/0.7696, allocations: 8.154 MB / 0.5469 GB, free: 7.043 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000163/0.7699, allocations: 42.73 kB / 0.5469 GB, free: 7.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006416/0.7705, allocations: 126.5 kB / 0.547 GB, free: 6.934 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005181/0.7757, allocations: 1.705 MB / 0.5487 GB, free: 5.254 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02437/0.8001, allocations: 6.894 MB / 0.5554 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06184/0.862, allocations: 32.5 MB / 0.5872 GB, free: 13.39 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00719/0.8693, allocations: 2.47 MB / 0.5896 GB, free: 10.78 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002451/0.8718, allocations: 1.117 MB / 0.5907 GB, free: 9.648 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005443/0.8724, allocations: 332.8 kB / 0.591 GB, free: 9.273 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.655e-05/0.8724, allocations: 50.52 kB / 0.591 GB, free: 9.215 MB / 446.1 MB Notification: Performance of pre-optimization done (n=104): time 6.412e-06/0.8725, allocations: 0 / 0.591 GB, free: 9.215 MB / 446.1 MB Notification: Performance of matching and sorting (n=118): time 0.03809/0.9106, allocations: 9.252 MB / 0.6001 GB, free: 15.86 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001489/0.9108, allocations: 196.5 kB / 0.6003 GB, free: 15.62 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008875/0.9196, allocations: 3.808 MB / 0.604 GB, free: 11.82 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003709/0.9201, allocations: 41.7 kB / 0.604 GB, free: 11.77 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003221/0.9233, allocations: 2.79 MB / 0.6067 GB, free: 8.992 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009251/0.9243, allocations: 494.8 kB / 0.6072 GB, free: 8.512 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002428/0.9267, allocations: 1.142 MB / 0.6083 GB, free: 7.359 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.9268, allocations: 305.1 kB / 0.6086 GB, free: 7.059 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004157/0.931, allocations: 1.713 MB / 0.6103 GB, free: 5.34 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008158/0.9392, allocations: 5.322 MB / 0.6155 GB, free: 14.19 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.013/0.9523, allocations: 7.598 MB / 0.6229 GB, free: 4.793 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001681/0.9525, allocations: 39.94 kB / 0.623 GB, free: 4.754 MB / 478.1 MB Notification: Performance of matching and sorting (n=726) (initialization): time 0.02183/0.9743, allocations: 7.206 MB / 0.63 GB, free: 13.54 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001556/0.9745, allocations: 60 kB / 0.63 GB, free: 13.48 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002077/0.9748, allocations: 128 kB / 0.6302 GB, free: 13.36 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0025/0.9773, allocations: 0.6571 MB / 0.6308 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006259/0.9836, allocations: 1.263 MB / 0.632 GB, free: 11.43 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007132/0.9907, allocations: 3.798 MB / 0.6358 GB, free: 7.508 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007005/0.9978, allocations: 303.4 kB / 0.636 GB, free: 7.211 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001457/0.9993, allocations: 348 kB / 0.6364 GB, free: 6.871 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 586 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.arrowLine.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 (691): * Single equations (assignments): 687 * 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.004762/1.004, allocations: 1.845 MB / 0.6382 GB, free: 5.012 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009757/1.005, allocations: 308 kB / 0.6385 GB, free: 4.707 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005243/1.01, allocations: 1.841 MB / 0.6403 GB, free: 2.848 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-05/1.01, allocations: 14.11 kB / 0.6403 GB, free: 2.836 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.409e-05/1.01, allocations: 7.984 kB / 0.6403 GB, free: 2.828 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.824e-05/1.01, allocations: 3.984 kB / 0.6403 GB, free: 2.824 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01543/1.026, allocations: 5.357 MB / 0.6455 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.183e-05/1.026, allocations: 4 kB / 0.6455 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001194/1.027, allocations: 159.8 kB / 0.6457 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001941/1.029, allocations: 484.3 kB / 0.6461 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001729/1.029, allocations: 23.98 kB / 0.6462 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005489/1.035, allocations: 3.222 MB / 0.6493 GB, free: 9.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/1.035, allocations: 64 / 0.6493 GB, free: 9.41 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008562/1.043, allocations: 3.736 MB / 0.653 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001423/1.045, allocations: 364.9 kB / 0.6533 GB, free: 5.273 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007315/1.046, allocations: 20 kB / 0.6533 GB, free: 5.254 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001782/1.047, allocations: 55.92 kB / 0.6534 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002936/1.048, allocations: 64.47 kB / 0.6534 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001358/1.048, allocations: 32 kB / 0.6535 GB, free: 5.105 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005904/1.054, allocations: 2.362 MB / 0.6558 GB, free: 2.758 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9.61e-07/1.054, allocations: 4.062 kB / 0.6558 GB, free: 2.754 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.008004/1.062, allocations: 0.8302 MB / 0.6566 GB, free: 1.926 MB / 0.4981 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.000598/1.063, allocations: 141.3 kB / 0.6567 GB, free: 1.777 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.009987/1.073, allocations: 4.048 MB / 0.6607 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/1.073, allocations: 0 / 0.6607 GB, free: 13.74 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002219/1.075, allocations: 1.006 MB / 0.6617 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003834/1.079, allocations: 359.6 kB / 0.662 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02241/1.101, allocations: 9.363 MB / 0.6711 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00556/1.107, allocations: 2.813 MB / 0.6739 GB, free: 148 kB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00125/1.108, allocations: 251.4 kB / 0.6741 GB, free: 15.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.262e-06/1.108, allocations: 0 / 0.6741 GB, free: 15.9 MB / 0.5294 GB Notification: Performance of Templates: time 0.378/1.486, allocations: 63.41 MB / 0.7361 GB, free: 183.6 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.makefile (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) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches