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.0008234/0.0008237, allocations: 95.91 kB / 17 MB, free: 6.398 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.0009695/0.0009696, allocations: 177.7 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.469/1.469, allocations: 223.3 MB / 241.9 MB, free: 320 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.213/0.213, allocations: 44.25 MB / 337.3 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004208/0.0004208, allocations: 8 kB / 409.7 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1299/0.1303, allocations: 61.93 MB / 471.6 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.0398/0.1701, allocations: 36.88 MB / 0.4966 GB, free: 8.676 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02166/0.1919, allocations: 8.372 MB / 0.5047 GB, free: 284 kB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007942/0.1999, allocations: 171.6 kB / 0.5049 GB, free: 112 kB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2775/0.4774, allocations: 1.909 MB / 0.5068 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01806/0.4955, allocations: 5.793 MB / 0.5124 GB, free: 9.848 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003151/0.4987, allocations: 0.5035 MB / 0.5129 GB, free: 9.832 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0405/0.5392, allocations: 31.72 MB / 0.5439 GB, free: 14.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005583/0.5448, allocations: 2.962 MB / 0.5468 GB, free: 12.19 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002229/0.5471, allocations: 1.009 MB / 0.5478 GB, free: 11.5 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002607/0.5497, allocations: 1.604 MB / 0.5493 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004831/0.5502, allocations: 112 kB / 0.5495 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002077/0.5523, allocations: 0.9188 MB / 0.5503 GB, free: 9.516 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001562/0.5539, allocations: 1.425 MB / 0.5517 GB, free: 8.402 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007994/0.5547, allocations: 0.6821 MB / 0.5524 GB, free: 8.027 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004845/0.5595, allocations: 4.515 MB / 0.5568 GB, free: 4.094 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.098e-05/0.5596, allocations: 3.984 kB / 0.5568 GB, free: 4.09 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.5596, allocations: 0 / 0.5568 GB, free: 4.09 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000155/0.5597, allocations: 0 / 0.5568 GB, free: 4.09 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: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.007366/0.5671, allocations: 3.309 MB / 0.5601 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.752e-05/0.5672, allocations: 8.562 kB / 0.5601 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01331/0.5805, allocations: 2.466 MB / 0.5625 GB, free: 14.6 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005214/0.5857, allocations: 2.251 MB / 0.5647 GB, free: 12.82 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001327/0.5859, allocations: 182.6 kB / 0.5648 GB, free: 12.72 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005079/0.5864, allocations: 242 kB / 0.5651 GB, free: 12.56 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01245/0.5989, allocations: 8.144 MB / 0.573 GB, free: 5.988 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.586e-05/0.599, allocations: 41.28 kB / 0.5731 GB, free: 5.949 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003192/0.5993, allocations: 123.2 kB / 0.5732 GB, free: 5.91 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002679/0.602, allocations: 1.71 MB / 0.5749 GB, free: 4.473 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0134/0.6154, allocations: 6.875 MB / 0.5816 GB, free: 15.55 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04285/0.6583, allocations: 32.51 MB / 0.6133 GB, free: 14.88 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004576/0.6629, allocations: 2.485 MB / 0.6157 GB, free: 12.25 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00144/0.6644, allocations: 1.12 MB / 0.6168 GB, free: 11.12 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003284/0.6648, allocations: 320.8 kB / 0.6171 GB, free: 10.75 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.284e-05/0.6648, allocations: 50.52 kB / 0.6172 GB, free: 10.7 MB / 462.1 MB Notification: Performance of pre-optimization done (n=104): time 3.226e-06/0.6648, allocations: 0 / 0.6172 GB, free: 10.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=118): time 0.02253/0.6874, allocations: 9.223 MB / 0.6262 GB, free: 1.371 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/0.6875, allocations: 196.4 kB / 0.6264 GB, free: 1.137 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005561/0.6931, allocations: 3.788 MB / 0.6301 GB, free: 13.36 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002901/0.6934, allocations: 41.7 kB / 0.6301 GB, free: 13.31 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00234/0.6957, allocations: 2.79 MB / 0.6328 GB, free: 10.54 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008247/0.6966, allocations: 0.491 MB / 0.6333 GB, free: 10.06 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002186/0.6968, allocations: 108 kB / 0.6334 GB, free: 9.953 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003472/0.6972, allocations: 0.5415 MB / 0.634 GB, free: 9.406 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002646/0.6998, allocations: 1.682 MB / 0.6356 GB, free: 7.719 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0059/0.7057, allocations: 5.311 MB / 0.6408 GB, free: 0.582 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004844/0.7106, allocations: 2.93 MB / 0.6436 GB, free: 13.66 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.02e-05/0.7107, allocations: 39.95 kB / 0.6437 GB, free: 13.62 MB / 494.1 MB Notification: Performance of matching and sorting (n=726) (initialization): time 0.01429/0.725, allocations: 7.137 MB / 0.6507 GB, free: 6.473 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001213/0.7252, allocations: 60 kB / 0.6507 GB, free: 6.414 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001973/0.7254, allocations: 132.1 kB / 0.6508 GB, free: 6.285 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001738/0.7271, allocations: 0.671 MB / 0.6515 GB, free: 5.613 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004227/0.7314, allocations: 1.271 MB / 0.6527 GB, free: 4.34 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004633/0.736, allocations: 3.798 MB / 0.6564 GB, free: 428 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004278/0.7403, allocations: 295.5 kB / 0.6567 GB, free: 132 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000809/0.7412, allocations: 359.9 kB / 0.6571 GB, free: 15.78 MB / 0.4981 GB 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 (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%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003463/0.7446, allocations: 1.838 MB / 0.6589 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00065/0.7453, allocations: 311.9 kB / 0.6592 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003408/0.7487, allocations: 1.837 MB / 0.661 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.677e-05/0.7487, allocations: 12 kB / 0.661 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.7488, allocations: 4 kB / 0.661 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.7488, allocations: 3.984 kB / 0.661 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009437/0.7582, allocations: 5.352 MB / 0.6662 GB, free: 6.352 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.53e-05/0.7583, allocations: 4 kB / 0.6662 GB, free: 6.348 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008514/0.7591, allocations: 159.8 kB / 0.6664 GB, free: 6.191 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001276/0.7604, allocations: 488.2 kB / 0.6668 GB, free: 5.711 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.907e-05/0.7605, allocations: 20 kB / 0.6668 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004066/0.7646, allocations: 3.21 MB / 0.67 GB, free: 2.352 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.7646, allocations: 0 / 0.67 GB, free: 2.352 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005729/0.7704, allocations: 3.726 MB / 0.6736 GB, free: 14.61 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00118/0.7716, allocations: 380.8 kB / 0.674 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002897/0.7719, allocations: 16 kB / 0.674 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000956/0.7729, allocations: 63.86 kB / 0.674 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001721/0.773, allocations: 60.47 kB / 0.6741 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.933e-05/0.7731, allocations: 36 kB / 0.6741 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003535/0.7767, allocations: 2.343 MB / 0.6764 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.044e-06/0.7767, allocations: 4 kB / 0.6764 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004158/0.7809, allocations: 0.832 MB / 0.6772 GB, free: 10.88 MB / 0.5137 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 (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.0003595/0.7812, allocations: 145.5 kB / 0.6774 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007222/0.7885, allocations: 4.014 MB / 0.6813 GB, free: 6.73 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.7885, allocations: 0 / 0.6813 GB, free: 6.73 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001527/0.79, allocations: 0.9971 MB / 0.6823 GB, free: 5.723 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002381/0.7924, allocations: 358.5 kB / 0.6826 GB, free: 5.375 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01367/0.8061, allocations: 8.73 MB / 0.6911 GB, free: 12.62 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002865/0.809, allocations: 2.798 MB / 0.6939 GB, free: 9.801 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.004155/0.8132, allocations: 1.727 MB / 0.6956 GB, free: 8.07 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005979/0.8138, allocations: 211.4 kB / 0.6958 GB, free: 7.863 MB / 0.5294 GB Notification: Performance of SimCode: time 1.062e-06/0.8138, allocations: 3.938 kB / 0.6958 GB, free: 7.859 MB / 0.5294 GB Notification: Performance of Templates: time 0.335/1.149, allocations: 27.41 MB / 0.7225 GB, free: 182.3 MB / 0.5294 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/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) Reference file matches