Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_3.2.3_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.001731/0.001731, allocations: 110 kB / 16.41 MB, free: 6.445 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.002327/0.002328, allocations: 185.5 kB / 17.34 MB, free: 5.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.66/1.66, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2436/0.2436, allocations: 43.52 MB / 314.1 MB, free: 452 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001377/0.001377, allocations: 65.94 kB / 441.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.165/0.1664, allocations: 57.78 MB / 499.6 MB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01397/0.1804, allocations: 9.432 MB / 0.4971 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01009/0.1906, allocations: 3.598 MB / 0.5006 GB, free: 14.73 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002157/0.1928, allocations: 51.88 kB / 0.5006 GB, free: 14.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004048/0.1969, allocations: 1.689 MB / 0.5023 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005777/0.2028, allocations: 1.642 MB / 0.5039 GB, free: 11.33 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001756/0.2046, allocations: 0.5575 MB / 0.5044 GB, free: 10.77 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006287/0.2109, allocations: 3.517 MB / 0.5079 GB, free: 7.246 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004116/0.215, allocations: 2.259 MB / 0.5101 GB, free: 4.938 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002782/0.2178, allocations: 1.164 MB / 0.5112 GB, free: 3.77 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003832/0.2217, allocations: 1.635 MB / 0.5128 GB, free: 2.129 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001244/0.223, allocations: 236 kB / 0.513 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003209/0.2262, allocations: 1.119 MB / 0.5141 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002656/0.2289, allocations: 1.523 MB / 0.5156 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003809/0.2327, allocations: 1.728 MB / 0.5173 GB, free: 13.51 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01006/0.2428, allocations: 5.769 MB / 0.5229 GB, free: 7.723 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.255e-06/0.2428, allocations: 0 / 0.5229 GB, free: 7.723 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.2428, allocations: 0 / 0.5229 GB, free: 7.723 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002652/0.2431, allocations: 8 kB / 0.5229 GB, free: 7.715 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1219 * Number of variables: 1219 Notification: Performance of Generate backend data structure: time 0.01468/0.2578, allocations: 3.849 MB / 0.5267 GB, free: 3.797 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.326e-05/0.2579, allocations: 15.83 kB / 0.5267 GB, free: 3.781 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01787/0.2758, allocations: 2.375 MB / 0.529 GB, free: 1.398 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3715/0.6473, allocations: 2.319 MB / 0.5313 GB, free: 36.68 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001954/0.6475, allocations: 170.6 kB / 0.5315 GB, free: 36.67 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001063/0.6486, allocations: 236 kB / 0.5317 GB, free: 36.67 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01646/0.6651, allocations: 7.886 MB / 0.5394 GB, free: 33.97 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001344/0.6653, allocations: 41.98 kB / 0.5394 GB, free: 33.95 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003879/0.6657, allocations: 112.1 kB / 0.5395 GB, free: 33.91 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00424/0.6699, allocations: 1.669 MB / 0.5412 GB, free: 33.61 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01905/0.689, allocations: 6.752 MB / 0.5478 GB, free: 31.52 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04508/0.7342, allocations: 31.4 MB / 0.5784 GB, free: 5.613 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00435/0.7386, allocations: 2.346 MB / 0.5807 GB, free: 3.117 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001323/0.7399, allocations: 1.186 MB / 0.5819 GB, free: 1.922 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003466/0.7403, allocations: 315.9 kB / 0.5822 GB, free: 1.559 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.7403, allocations: 47.12 kB / 0.5822 GB, free: 1.504 MB / 414.1 MB Notification: Performance of pre-optimization done (n=117): time 4.669e-06/0.7404, allocations: 4 kB / 0.5822 GB, free: 1.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=141): time 0.03899/0.7794, allocations: 12.3 MB / 0.5942 GB, free: 5.055 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001527/0.7796, allocations: 200.5 kB / 0.5944 GB, free: 4.816 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005873/0.7854, allocations: 3.738 MB / 0.5981 GB, free: 1.082 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004051/0.7859, allocations: 41.7 kB / 0.5981 GB, free: 1.035 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002032/0.7879, allocations: 2.662 MB / 0.6007 GB, free: 14.34 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008976/0.7888, allocations: 0.5672 MB / 0.6013 GB, free: 13.76 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00168/0.7905, allocations: 1.115 MB / 0.6024 GB, free: 12.64 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001278/0.7907, allocations: 305.1 kB / 0.6027 GB, free: 12.34 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003024/0.7937, allocations: 1.81 MB / 0.6044 GB, free: 10.52 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005969/0.7997, allocations: 5.245 MB / 0.6095 GB, free: 3.543 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01117/0.8109, allocations: 7.611 MB / 0.617 GB, free: 10.22 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001792/0.8111, allocations: 39.94 kB / 0.617 GB, free: 10.18 MB / 462.1 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01669/0.8279, allocations: 7.289 MB / 0.6241 GB, free: 2.883 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001213/0.8281, allocations: 56 kB / 0.6242 GB, free: 2.828 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000209/0.8283, allocations: 120.5 kB / 0.6243 GB, free: 2.711 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00182/0.8301, allocations: 0.6566 MB / 0.6249 GB, free: 2.051 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00461/0.8347, allocations: 1.271 MB / 0.6262 GB, free: 0.7773 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005569/0.8403, allocations: 4.077 MB / 0.6302 GB, free: 12.56 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005179/0.8455, allocations: 303.4 kB / 0.6305 GB, free: 12.26 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001115/0.8467, allocations: 332 kB / 0.6308 GB, free: 11.94 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 27 (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 (684): * Single equations (assignments): 680 * 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.003537/0.8502, allocations: 1.79 MB / 0.6325 GB, free: 10.14 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007505/0.851, allocations: 308.1 kB / 0.6328 GB, free: 9.836 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004338/0.8553, allocations: 2.223 MB / 0.635 GB, free: 7.598 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.923e-05/0.8554, allocations: 16 kB / 0.635 GB, free: 7.582 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/0.8554, allocations: 0 / 0.635 GB, free: 7.582 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.992e-05/0.8554, allocations: 15.91 kB / 0.635 GB, free: 7.566 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01179/0.8672, allocations: 5.925 MB / 0.6408 GB, free: 1.555 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.465e-05/0.8673, allocations: 3.938 kB / 0.6408 GB, free: 1.551 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001098/0.8684, allocations: 219.7 kB / 0.641 GB, free: 1.336 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001429/0.8698, allocations: 488.3 kB / 0.6415 GB, free: 0.8555 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001197/0.87, allocations: 27.97 kB / 0.6415 GB, free: 0.8281 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004193/0.8742, allocations: 3.429 MB / 0.6449 GB, free: 13.26 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.8742, allocations: 4.062 kB / 0.6449 GB, free: 13.26 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007227/0.8814, allocations: 4.351 MB / 0.6491 GB, free: 8.867 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001913/0.8834, allocations: 0.5439 MB / 0.6496 GB, free: 8.301 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008431/0.8842, allocations: 27.92 kB / 0.6497 GB, free: 8.273 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00178/0.886, allocations: 75.91 kB / 0.6497 GB, free: 8.199 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002616/0.8863, allocations: 84.53 kB / 0.6498 GB, free: 8.117 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001131/0.8864, allocations: 43.97 kB / 0.6499 GB, free: 8.074 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003965/0.8904, allocations: 2.337 MB / 0.6521 GB, free: 5.75 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.8904, allocations: 0 / 0.6521 GB, free: 5.75 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004925/0.8954, allocations: 0.8346 MB / 0.653 GB, free: 4.918 MB / 494.1 MB 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 (112): * Single equations (assignments): 108 * 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.0004714/0.8958, allocations: 160.1 kB / 0.6531 GB, free: 4.758 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008249/0.9041, allocations: 4.298 MB / 0.6573 GB, free: 488 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/0.9041, allocations: 1.125 kB / 0.6573 GB, free: 488 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00195/0.9061, allocations: 1.193 MB / 0.6585 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003158/0.9093, allocations: 363.2 kB / 0.6588 GB, free: 14.92 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01777/0.9271, allocations: 7.462 MB / 0.6661 GB, free: 7.426 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004758/0.9319, allocations: 2.761 MB / 0.6688 GB, free: 4.641 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.005034/0.9369, allocations: 1.746 MB / 0.6705 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000992/0.9379, allocations: 215.4 kB / 0.6707 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of SimCode: time 1.884e-06/0.938, allocations: 3.938 kB / 0.6707 GB, free: 2.676 MB / 0.4981 GB Notification: Performance of Templates: time 0.06027/0.9982, allocations: 26.7 MB / 0.6968 GB, free: 7.988 MB / 0.5294 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches