Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001104/0.001104, allocations: 173.7 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.304/1.304, allocations: 205.4 MB / 222.9 MB, free: 9.035 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008655/0.0008654, allocations: 84.98 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3028/0.3028, allocations: 43.57 MB / 363.1 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004045/0.0004047, allocations: 12 kB / 432 MB, free: 5.828 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.117/0.1175, allocations: 58.85 MB / 490.8 MB, free: 10.89 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.2101/0.3276, allocations: 30.68 MB / 0.5093 GB, free: 28.72 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01434/0.3419, allocations: 7.263 MB / 0.5164 GB, free: 23.83 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005727/0.3477, allocations: 141.3 kB / 0.5165 GB, free: 23.8 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004615/0.3523, allocations: 1.559 MB / 0.518 GB, free: 23.25 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01184/0.3642, allocations: 4.846 MB / 0.5228 GB, free: 21.24 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002287/0.3665, allocations: 0.5151 MB / 0.5233 GB, free: 21.05 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.01971/0.3863, allocations: 18.07 MB / 0.5409 GB, free: 16.5 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00454/0.3908, allocations: 2.909 MB / 0.5437 GB, free: 15.3 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001991/0.3929, allocations: 0.9924 MB / 0.5447 GB, free: 14.98 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002474/0.3954, allocations: 1.596 MB / 0.5463 GB, free: 14.52 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005802/0.396, allocations: 112.9 kB / 0.5464 GB, free: 14.52 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002062/0.398, allocations: 1.054 MB / 0.5474 GB, free: 14.06 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001325/0.3994, allocations: 1.364 MB / 0.5487 GB, free: 13.33 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001433/0.4008, allocations: 1.52 MB / 0.5502 GB, free: 12.21 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003828/0.4047, allocations: 4.376 MB / 0.5545 GB, free: 9.191 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.4047, allocations: 0 / 0.5545 GB, free: 9.191 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.063e-06/0.4047, allocations: 0 / 0.5545 GB, free: 9.191 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001634/0.4049, allocations: 0 / 0.5545 GB, free: 9.191 MB / 378.7 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.005471/0.4103, allocations: 3.186 MB / 0.5576 GB, free: 5.938 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.4104, allocations: 12.02 kB / 0.5576 GB, free: 5.926 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01272/0.4231, allocations: 2.442 MB / 0.56 GB, free: 3.477 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004413/0.4276, allocations: 2.283 MB / 0.5622 GB, free: 1.141 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.802e-05/0.4277, allocations: 168.9 kB / 0.5624 GB, free: 0.9727 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000557/0.4283, allocations: 239.7 kB / 0.5626 GB, free: 0.7383 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01316/0.4415, allocations: 7.879 MB / 0.5703 GB, free: 8.23 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.564e-05/0.4416, allocations: 47.58 kB / 0.5704 GB, free: 8.184 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003167/0.4419, allocations: 111.9 kB / 0.5705 GB, free: 8.074 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002527/0.4445, allocations: 1.668 MB / 0.5721 GB, free: 6.406 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01197/0.4564, allocations: 6.727 MB / 0.5787 GB, free: 15.66 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03595/0.4924, allocations: 31.58 MB / 0.6095 GB, free: 15.15 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004601/0.4971, allocations: 2.348 MB / 0.6118 GB, free: 12.66 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001586/0.4987, allocations: 1.181 MB / 0.613 GB, free: 11.47 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003987/0.4991, allocations: 319.7 kB / 0.6133 GB, free: 11.11 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.627e-05/0.4992, allocations: 47.06 kB / 0.6133 GB, free: 11.05 MB / 442.7 MB Notification: Performance of pre-optimization done (n=117): time 4.138e-06/0.4992, allocations: 4 kB / 0.6133 GB, free: 11.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=141): time 0.0368/0.536, allocations: 12.32 MB / 0.6253 GB, free: 14.58 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001152/0.5362, allocations: 196.7 kB / 0.6255 GB, free: 14.35 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006622/0.5428, allocations: 3.726 MB / 0.6292 GB, free: 10.62 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002898/0.5431, allocations: 45.64 kB / 0.6292 GB, free: 10.57 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001954/0.5451, allocations: 2.666 MB / 0.6318 GB, free: 7.871 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007033/0.5458, allocations: 0.5633 MB / 0.6324 GB, free: 7.301 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003047/0.5461, allocations: 112 kB / 0.6325 GB, free: 7.191 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000335/0.5465, allocations: 0.5375 MB / 0.633 GB, free: 6.648 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00288/0.5493, allocations: 1.783 MB / 0.6347 GB, free: 4.859 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005292/0.5547, allocations: 5.229 MB / 0.6398 GB, free: 13.9 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009878/0.5646, allocations: 7.589 MB / 0.6473 GB, free: 4.598 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00013/0.5648, allocations: 35.94 kB / 0.6473 GB, free: 4.562 MB / 474.7 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01601/0.5808, allocations: 7.234 MB / 0.6544 GB, free: 13.31 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001924/0.581, allocations: 56 kB / 0.6544 GB, free: 13.26 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002512/0.5813, allocations: 124 kB / 0.6545 GB, free: 13.14 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001744/0.5831, allocations: 0.6498 MB / 0.6552 GB, free: 12.48 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004158/0.5872, allocations: 1.271 MB / 0.6564 GB, free: 11.21 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004979/0.5923, allocations: 3.78 MB / 0.6601 GB, free: 7.301 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004153/0.5964, allocations: 303.4 kB / 0.6604 GB, free: 7.004 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001034/0.5975, allocations: 340 kB / 0.6607 GB, free: 6.672 MB / 490.7 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 (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.004434/0.602, allocations: 1.778 MB / 0.6624 GB, free: 4.883 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008295/0.6028, allocations: 308 kB / 0.6627 GB, free: 4.578 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004709/0.6075, allocations: 2.227 MB / 0.6649 GB, free: 2.332 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-05/0.6076, allocations: 16 kB / 0.6649 GB, free: 2.316 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.439e-05/0.6076, allocations: 8 kB / 0.6649 GB, free: 2.309 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-05/0.6076, allocations: 7.969 kB / 0.6649 GB, free: 2.301 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01234/0.62, allocations: 5.979 MB / 0.6708 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-05/0.62, allocations: 0 / 0.6708 GB, free: 12.23 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001089/0.6211, allocations: 219.7 kB / 0.671 GB, free: 12.01 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001288/0.6224, allocations: 484.3 kB / 0.6715 GB, free: 11.54 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001198/0.6226, allocations: 27.98 kB / 0.6715 GB, free: 11.51 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003714/0.6263, allocations: 3.206 MB / 0.6746 GB, free: 8.168 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.6263, allocations: 0 / 0.6746 GB, free: 8.168 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006385/0.6327, allocations: 4.331 MB / 0.6788 GB, free: 3.805 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001414/0.6342, allocations: 0.5517 MB / 0.6794 GB, free: 3.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007017/0.6349, allocations: 31.91 kB / 0.6794 GB, free: 3.199 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001548/0.6364, allocations: 79.97 kB / 0.6795 GB, free: 3.121 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002199/0.6367, allocations: 76.48 kB / 0.6796 GB, free: 3.047 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001126/0.6368, allocations: 43.98 kB / 0.6796 GB, free: 3.004 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.004032/0.6408, allocations: 2.314 MB / 0.6819 GB, free: 0.7031 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.12e-07/0.6408, allocations: 0 / 0.6819 GB, free: 0.7031 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.2057/0.8465, allocations: 0.8352 MB / 0.6827 GB, free: 148.8 MB / 0.4948 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 (112): * Single equations (assignments): 108 * 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.0005392/0.8471, allocations: 142.1 kB / 0.6828 GB, free: 148.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007504/0.8546, allocations: 4.264 MB / 0.687 GB, free: 148.3 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.8547, allocations: 5.781 kB / 0.687 GB, free: 148.3 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001712/0.8564, allocations: 1.193 MB / 0.6881 GB, free: 148.2 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00269/0.8591, allocations: 340 kB / 0.6885 GB, free: 148.2 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01287/0.872, allocations: 9.118 MB / 0.6974 GB, free: 144.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00242/0.8745, allocations: 2.756 MB / 0.7001 GB, free: 143.3 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009244/0.8754, allocations: 261 kB / 0.7003 GB, free: 143.3 MB / 0.4948 GB Notification: Performance of SimCode: time 8.11e-07/0.8754, allocations: 0 / 0.7003 GB, free: 143.3 MB / 0.4948 GB Notification: Performance of Templates: time 0.07816/0.9536, allocations: 63.08 MB / 0.7619 GB, free: 110.7 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches