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.00242/0.002425, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.077/2.077, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001208/0.001208, allocations: 94.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2961/0.2961, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006282/0.0006287, allocations: 16 kB / 431.4 MB, free: 20.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1224, allocations: 58.86 MB / 490.2 MB, free: 9.344 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.04768/0.1701, allocations: 28.98 MB / 0.507 GB, free: 12.27 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.02215/0.1923, allocations: 7.541 MB / 0.5144 GB, free: 4.711 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005918/0.1983, allocations: 143.6 kB / 0.5145 GB, free: 4.57 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005261/0.2036, allocations: 1.404 MB / 0.5159 GB, free: 3.16 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.3809/0.5846, allocations: 4.292 MB / 0.5201 GB, free: 11.26 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002906/0.5875, allocations: 471.3 kB / 0.5205 GB, free: 11.25 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.03634/0.6239, allocations: 13.77 MB / 0.534 GB, free: 10.78 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005384/0.6293, allocations: 2.644 MB / 0.5366 GB, free: 10.51 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002289/0.6317, allocations: 0.8269 MB / 0.5374 GB, free: 10.5 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002853/0.6346, allocations: 1.139 MB / 0.5385 GB, free: 10.5 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001074/0.6357, allocations: 112.2 kB / 0.5386 GB, free: 10.5 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003166/0.6389, allocations: 0.8857 MB / 0.5395 GB, free: 10.5 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002488/0.6415, allocations: 1.264 MB / 0.5407 GB, free: 10.47 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001597/0.6431, allocations: 0.67 MB / 0.5414 GB, free: 10.44 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007216/0.6504, allocations: 4.535 MB / 0.5458 GB, free: 8.043 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.6504, allocations: 0 / 0.5458 GB, free: 8.043 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.617e-06/0.6505, allocations: 0 / 0.5458 GB, free: 8.043 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002424/0.6507, allocations: 0 / 0.5458 GB, free: 8.043 MB / 362.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.01269/0.6634, allocations: 3.398 MB / 0.5491 GB, free: 5.941 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/0.6635, allocations: 10 kB / 0.5491 GB, free: 5.941 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1768/0.8403, allocations: 8.235 MB / 0.5572 GB, free: 14.98 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008572/0.849, allocations: 2.438 MB / 0.5595 GB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002349/0.8492, allocations: 181.5 kB / 0.5597 GB, free: 13.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001201/0.8505, allocations: 227.5 kB / 0.5599 GB, free: 12.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01964/0.8701, allocations: 7.856 MB / 0.5676 GB, free: 6.648 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001601/0.8704, allocations: 36.59 kB / 0.5676 GB, free: 6.629 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006768/0.871, allocations: 114.8 kB / 0.5677 GB, free: 6.594 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005043/0.8761, allocations: 1.667 MB / 0.5694 GB, free: 5.211 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02008/0.8962, allocations: 6.654 MB / 0.5759 GB, free: 0.5977 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05845/0.9547, allocations: 31.29 MB / 0.6064 GB, free: 2.578 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008161/0.963, allocations: 2.296 MB / 0.6087 GB, free: 148 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006078/0.9636, allocations: 331.9 kB / 0.609 GB, free: 15.77 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.39e-05/0.9637, allocations: 46.97 kB / 0.609 GB, free: 15.72 MB / 426.7 MB Notification: Performance of pre-optimization done (n=117): time 5.26e-06/0.9637, allocations: 0 / 0.609 GB, free: 15.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.06424/1.028, allocations: 11.7 MB / 0.6205 GB, free: 3.891 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001651/1.028, allocations: 194.9 kB / 0.6206 GB, free: 3.66 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008722/1.037, allocations: 3.853 MB / 0.6244 GB, free: 15.82 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003345/1.037, allocations: 45.7 kB / 0.6245 GB, free: 15.77 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003028/1.04, allocations: 2.63 MB / 0.627 GB, free: 13.15 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009771/1.041, allocations: 0.5539 MB / 0.6276 GB, free: 12.6 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004893/1.042, allocations: 111.5 kB / 0.6277 GB, free: 12.5 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000465/1.042, allocations: 0.5302 MB / 0.6282 GB, free: 11.96 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004695/1.047, allocations: 1.674 MB / 0.6298 GB, free: 10.27 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007842/1.055, allocations: 5.102 MB / 0.6348 GB, free: 3.5 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007498/1.062, allocations: 2.88 MB / 0.6376 GB, free: 0.7344 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001046/1.063, allocations: 32 kB / 0.6376 GB, free: 0.7031 MB / 442.7 MB Notification: Performance of matching and sorting (n=700) (initialization): time 0.0194/1.082, allocations: 6.649 MB / 0.6441 GB, free: 10.09 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001162/1.082, allocations: 56 kB / 0.6442 GB, free: 10.04 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000203/1.082, allocations: 120.8 kB / 0.6443 GB, free: 9.918 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001688/1.084, allocations: 422.4 kB / 0.6447 GB, free: 9.504 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00769/1.092, allocations: 1.24 MB / 0.6459 GB, free: 8.262 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006002/1.098, allocations: 3.14 MB / 0.649 GB, free: 4.984 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005785/1.104, allocations: 298.9 kB / 0.6493 GB, free: 4.695 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001265/1.105, allocations: 336.7 kB / 0.6496 GB, free: 4.367 MB / 458.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 (665): * Single equations (assignments): 661 * 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.005122/1.11, allocations: 1.778 MB / 0.6513 GB, free: 2.574 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009032/1.111, allocations: 312 kB / 0.6516 GB, free: 2.266 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005873/1.117, allocations: 1.849 MB / 0.6534 GB, free: 408 kB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.368e-05/1.117, allocations: 16 kB / 0.6534 GB, free: 392 kB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/1.117, allocations: 11.95 kB / 0.6535 GB, free: 380 kB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-05/1.117, allocations: 7.969 kB / 0.6535 GB, free: 372 kB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01728/1.135, allocations: 5.628 MB / 0.659 GB, free: 10.68 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.579e-05/1.135, allocations: 4.062 kB / 0.659 GB, free: 10.68 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002105/1.137, allocations: 215.7 kB / 0.6592 GB, free: 10.47 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001185/1.138, allocations: 230.4 kB / 0.6594 GB, free: 10.24 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001865/1.138, allocations: 27.98 kB / 0.6594 GB, free: 10.21 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004826/1.143, allocations: 2.565 MB / 0.6619 GB, free: 7.52 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/1.143, allocations: 4 kB / 0.6619 GB, free: 7.516 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009988/1.153, allocations: 4.002 MB / 0.6658 GB, free: 3.465 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002005/1.155, allocations: 0.5476 MB / 0.6664 GB, free: 2.895 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007313/1.156, allocations: 27.95 kB / 0.6664 GB, free: 2.867 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00226/1.158, allocations: 67.91 kB / 0.6665 GB, free: 2.801 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003975/1.159, allocations: 77.19 kB / 0.6665 GB, free: 2.727 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001694/1.159, allocations: 39.98 kB / 0.6666 GB, free: 2.688 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006238/1.165, allocations: 2.432 MB / 0.6689 GB, free: 276 kB / 474.7 MB Notification: Performance of sort global known variables: time 1.943e-06/1.165, allocations: 0 / 0.6689 GB, free: 276 kB / 474.7 MB Notification: Performance of remove unused functions: time 0.006022/1.171, allocations: 0.8267 MB / 0.6698 GB, free: 15.44 MB / 490.7 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 (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.0006856/1.172, allocations: 163.8 kB / 0.6699 GB, free: 15.28 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01101/1.183, allocations: 4.075 MB / 0.6739 GB, free: 11.22 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.326e-06/1.183, allocations: 0 / 0.6739 GB, free: 11.22 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003176/1.186, allocations: 1.139 MB / 0.675 GB, free: 10.07 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002877/1.189, allocations: 351.7 kB / 0.6753 GB, free: 9.723 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02223/1.211, allocations: 8.999 MB / 0.6841 GB, free: 0.6797 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005103/1.216, allocations: 2.835 MB / 0.6869 GB, free: 13.82 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001534/1.218, allocations: 267.4 kB / 0.6872 GB, free: 13.56 MB / 0.4949 GB Notification: Performance of SimCode: time 1.042e-06/1.218, allocations: 0 / 0.6872 GB, free: 13.56 MB / 0.4949 GB Notification: Performance of Templates: time 0.465/1.683, allocations: 61.56 MB / 0.7473 GB, free: 167.9 MB / 0.5105 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/jenkins1/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