Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001275/0.001274, allocations: 92.52 kB / 17 MB, free: 6.418 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.001575/0.001575, allocations: 188.9 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 223.3 MB / 241.9 MB, free: 14.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.2225/0.2225, allocations: 44.25 MB / 337.3 MB, free: 2.516 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003348/0.0003348, allocations: 8.75 kB / 409.7 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1369, allocations: 61.93 MB / 471.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.0301/0.1671, allocations: 30.32 MB / 0.4901 GB, free: 15.26 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01665/0.1838, allocations: 7.223 MB / 0.4972 GB, free: 8.016 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005942/0.1898, allocations: 139.6 kB / 0.4973 GB, free: 7.879 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005616/0.1954, allocations: 1.54 MB / 0.4988 GB, free: 6.332 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01779/0.2132, allocations: 4.793 MB / 0.5035 GB, free: 1.523 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002812/0.2161, allocations: 487.3 kB / 0.504 GB, free: 1.047 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.3137/0.5298, allocations: 31.53 MB / 0.5348 GB, free: 7.957 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003865/0.5337, allocations: 2.616 MB / 0.5373 GB, free: 6.074 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001891/0.5356, allocations: 0.9617 MB / 0.5383 GB, free: 5.418 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002157/0.5378, allocations: 1.52 MB / 0.5397 GB, free: 4.328 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003742/0.5382, allocations: 104 kB / 0.5398 GB, free: 4.227 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001508/0.5397, allocations: 0.9115 MB / 0.5407 GB, free: 3.504 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001027/0.5407, allocations: 1.317 MB / 0.542 GB, free: 2.559 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005996/0.5414, allocations: 0.6417 MB / 0.5426 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003561/0.5449, allocations: 4.194 MB / 0.5467 GB, free: 14.72 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.5449, allocations: 0 / 0.5467 GB, free: 14.72 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.545, allocations: 0 / 0.5467 GB, free: 14.72 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.842e-05/0.545, allocations: 0 / 0.5467 GB, free: 14.72 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.006053/0.5511, allocations: 3.13 MB / 0.5498 GB, free: 11.79 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.5512, allocations: 8.031 kB / 0.5498 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.013/0.5642, allocations: 2.42 MB / 0.5522 GB, free: 9.434 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005506/0.5697, allocations: 2.166 MB / 0.5543 GB, free: 7.832 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001455/0.5699, allocations: 161.4 kB / 0.5544 GB, free: 7.742 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007489/0.5706, allocations: 222.2 kB / 0.5547 GB, free: 7.602 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01345/0.5841, allocations: 7.586 MB / 0.5621 GB, free: 1.504 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001193/0.5842, allocations: 35.78 kB / 0.5621 GB, free: 1.488 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000338/0.5846, allocations: 108.7 kB / 0.5622 GB, free: 1.453 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002614/0.5872, allocations: 1.599 MB / 0.5638 GB, free: 128 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01221/0.5994, allocations: 6.457 MB / 0.5701 GB, free: 11.64 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03938/0.6389, allocations: 30.67 MB / 0.6 GB, free: 13.86 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004298/0.6432, allocations: 2.237 MB / 0.6022 GB, free: 11.48 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001416/0.6446, allocations: 1.129 MB / 0.6033 GB, free: 10.34 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003593/0.645, allocations: 319.4 kB / 0.6036 GB, free: 9.98 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.292e-05/0.6451, allocations: 50.84 kB / 0.6037 GB, free: 9.926 MB / 446.1 MB Notification: Performance of pre-optimization done (n=108): time 3.707e-06/0.6451, allocations: 1.75 kB / 0.6037 GB, free: 9.926 MB / 446.1 MB Notification: Performance of matching and sorting (n=132): time 0.03351/0.6786, allocations: 11.89 MB / 0.6153 GB, free: 13.94 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001236/0.6788, allocations: 200.4 kB / 0.6155 GB, free: 13.7 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005308/0.6841, allocations: 3.64 MB / 0.619 GB, free: 10.07 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002337/0.6843, allocations: 45.7 kB / 0.6191 GB, free: 10.02 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002006/0.6863, allocations: 2.586 MB / 0.6216 GB, free: 7.449 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005796/0.6869, allocations: 0.5271 MB / 0.6221 GB, free: 6.926 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002001/0.6871, allocations: 104 kB / 0.6222 GB, free: 6.824 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003509/0.6875, allocations: 0.5332 MB / 0.6227 GB, free: 6.285 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002653/0.6902, allocations: 1.724 MB / 0.6244 GB, free: 4.555 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005765/0.6959, allocations: 5.089 MB / 0.6294 GB, free: 13.82 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004372/0.7003, allocations: 2.905 MB / 0.6322 GB, free: 11.03 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.535e-05/0.7004, allocations: 36 kB / 0.6322 GB, free: 10.99 MB / 478.1 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01604/0.7165, allocations: 7.039 MB / 0.6391 GB, free: 3.996 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.056e-05/0.7166, allocations: 56.94 kB / 0.6392 GB, free: 3.941 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001278/0.7167, allocations: 120 kB / 0.6393 GB, free: 3.824 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001489/0.7182, allocations: 0.6659 MB / 0.6399 GB, free: 3.156 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003667/0.7219, allocations: 1.216 MB / 0.6411 GB, free: 1.938 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004403/0.7263, allocations: 3.779 MB / 0.6448 GB, free: 14.03 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003848/0.7302, allocations: 295.4 kB / 0.6451 GB, free: 13.74 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006151/0.7308, allocations: 332 kB / 0.6454 GB, free: 13.42 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.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 (662): * Single equations (assignments): 658 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003107/0.7339, allocations: 1.729 MB / 0.6471 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007451/0.7347, allocations: 308 kB / 0.6474 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003845/0.7385, allocations: 2.08 MB / 0.6494 GB, free: 9.277 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.6e-05/0.7385, allocations: 16 kB / 0.6494 GB, free: 9.262 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.257e-05/0.7386, allocations: 5.641 kB / 0.6495 GB, free: 9.258 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.7386, allocations: 7.969 kB / 0.6495 GB, free: 9.25 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009832/0.7484, allocations: 5.719 MB / 0.655 GB, free: 3.465 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.959e-06/0.7485, allocations: 0 / 0.655 GB, free: 3.465 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009938/0.7495, allocations: 195.7 kB / 0.6552 GB, free: 3.273 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001218/0.7507, allocations: 493.9 kB / 0.6557 GB, free: 2.789 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001194/0.7508, allocations: 23.81 kB / 0.6557 GB, free: 2.77 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003726/0.7546, allocations: 3.221 MB / 0.6589 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.7546, allocations: 0 / 0.6589 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006254/0.7608, allocations: 4.155 MB / 0.6629 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001274/0.7621, allocations: 365.1 kB / 0.6633 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003322/0.7625, allocations: 24 kB / 0.6633 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001037/0.7635, allocations: 79.89 kB / 0.6634 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001906/0.7637, allocations: 72.33 kB / 0.6634 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.515e-05/0.7638, allocations: 36 kB / 0.6635 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004261/0.7681, allocations: 2.273 MB / 0.6657 GB, free: 8.383 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7681, allocations: 4 kB / 0.6657 GB, free: 8.379 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005749/0.7739, allocations: 0.8085 MB / 0.6665 GB, free: 7.57 MB / 0.4981 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004996/0.7744, allocations: 149.8 kB / 0.6666 GB, free: 7.418 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.007624/0.782, allocations: 4.125 MB / 0.6707 GB, free: 3.309 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/0.7821, allocations: 4.062 kB / 0.6707 GB, free: 3.305 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001758/0.7839, allocations: 1.119 MB / 0.6718 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002507/0.7864, allocations: 348.8 kB / 0.6721 GB, free: 1.828 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01688/0.8033, allocations: 8.474 MB / 0.6804 GB, free: 9.32 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00294/0.8062, allocations: 2.677 MB / 0.683 GB, free: 6.617 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0043/0.8106, allocations: 1.687 MB / 0.6846 GB, free: 4.926 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006841/0.8113, allocations: 207.4 kB / 0.6848 GB, free: 4.723 MB / 0.5137 GB Notification: Performance of SimCode: time 1.152e-06/0.8113, allocations: 0 / 0.6848 GB, free: 4.723 MB / 0.5137 GB Notification: Performance of Templates: time 0.3526/1.164, allocations: 27.58 MB / 0.7118 GB, free: 183.9 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches