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.001329/0.001329, allocations: 180.1 kB / 16.41 MB, free: 5.727 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.568/1.568, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.0007788/0.0007788, allocations: 82.36 kB / 270.9 MB, free: 8.355 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.3333/0.3333, allocations: 43.57 MB / 362.7 MB, free: 51.85 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003852/0.0003852, allocations: 8 kB / 431.4 MB, free: 5.93 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1133, allocations: 58.86 MB / 490.2 MB, free: 10.98 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.2865/0.3998, allocations: 30.67 MB / 0.5087 GB, free: 28.72 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.02349/0.4234, allocations: 7.262 MB / 0.5158 GB, free: 23.83 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008745/0.4322, allocations: 142.5 kB / 0.5159 GB, free: 23.81 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005833/0.4381, allocations: 1.548 MB / 0.5174 GB, free: 23.26 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01514/0.4533, allocations: 4.833 MB / 0.5222 GB, free: 21.25 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002757/0.4561, allocations: 480 kB / 0.5226 GB, free: 21.09 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.02329/0.4794, allocations: 18.05 MB / 0.5402 GB, free: 16.54 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006558/0.486, allocations: 2.662 MB / 0.5428 GB, free: 15.5 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00326/0.4893, allocations: 0.9979 MB / 0.5438 GB, free: 15.18 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004183/0.4935, allocations: 1.591 MB / 0.5454 GB, free: 14.72 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001423/0.495, allocations: 113 kB / 0.5455 GB, free: 14.72 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003392/0.4984, allocations: 0.9095 MB / 0.5464 GB, free: 14.39 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002772/0.5012, allocations: 1.372 MB / 0.5477 GB, free: 13.65 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002022/0.5033, allocations: 0.6633 MB / 0.5484 GB, free: 13.18 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006364/0.5096, allocations: 4.365 MB / 0.5526 GB, free: 10.32 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.074e-05/0.5097, allocations: 1.656 kB / 0.5526 GB, free: 10.32 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.598e-06/0.5097, allocations: 3.938 kB / 0.5526 GB, free: 10.32 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003174/0.51, allocations: 0 / 0.5526 GB, free: 10.32 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.009214/0.5193, allocations: 3.231 MB / 0.5558 GB, free: 7.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.5193, allocations: 8.031 kB / 0.5558 GB, free: 7.402 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01548/0.5348, allocations: 2.441 MB / 0.5582 GB, free: 4.953 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005994/0.5409, allocations: 2.245 MB / 0.5604 GB, free: 2.656 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001658/0.5411, allocations: 168.3 kB / 0.5605 GB, free: 2.488 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001238/0.5423, allocations: 235.8 kB / 0.5607 GB, free: 2.258 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01636/0.5587, allocations: 7.883 MB / 0.5684 GB, free: 9.746 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001639/0.5589, allocations: 43.58 kB / 0.5685 GB, free: 9.703 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007641/0.5597, allocations: 123.2 kB / 0.5686 GB, free: 9.586 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002922/0.5626, allocations: 1.668 MB / 0.5702 GB, free: 7.914 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01343/0.5761, allocations: 6.727 MB / 0.5768 GB, free: 1.184 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04818/0.6243, allocations: 31.55 MB / 0.6076 GB, free: 0.6953 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005261/0.6296, allocations: 2.35 MB / 0.6099 GB, free: 14.2 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002039/0.6317, allocations: 1.176 MB / 0.6111 GB, free: 13.01 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004824/0.6322, allocations: 323.7 kB / 0.6114 GB, free: 12.64 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.076e-05/0.6322, allocations: 43.12 kB / 0.6114 GB, free: 12.59 MB / 442.7 MB Notification: Performance of pre-optimization done (n=117): time 4.479e-06/0.6323, allocations: 4 kB / 0.6114 GB, free: 12.59 MB / 442.7 MB Notification: Performance of matching and sorting (n=141): time 0.04028/0.6725, allocations: 12.31 MB / 0.6234 GB, free: 124 kB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001372/0.6727, allocations: 200.5 kB / 0.6236 GB, free: 15.88 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007204/0.6799, allocations: 3.718 MB / 0.6273 GB, free: 12.17 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000257/0.6802, allocations: 45.7 kB / 0.6273 GB, free: 12.12 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002432/0.6826, allocations: 2.67 MB / 0.6299 GB, free: 9.41 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008139/0.6835, allocations: 0.5555 MB / 0.6305 GB, free: 8.848 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004504/0.6839, allocations: 116.2 kB / 0.6306 GB, free: 8.734 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005132/0.6845, allocations: 0.5414 MB / 0.6311 GB, free: 8.188 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003389/0.6879, allocations: 1.783 MB / 0.6328 GB, free: 6.398 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006303/0.6942, allocations: 5.233 MB / 0.6379 GB, free: 15.43 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005425/0.6996, allocations: 2.992 MB / 0.6409 GB, free: 12.44 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001367/0.6998, allocations: 32 kB / 0.6409 GB, free: 12.41 MB / 474.7 MB Notification: Performance of matching and sorting (n=719) (initialization): time 0.01583/0.7156, allocations: 7.244 MB / 0.648 GB, free: 5.16 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001646/0.7158, allocations: 56 kB / 0.648 GB, free: 5.105 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002994/0.7162, allocations: 124 kB / 0.6481 GB, free: 4.984 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001949/0.7181, allocations: 0.6643 MB / 0.6488 GB, free: 4.316 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004498/0.7226, allocations: 1.263 MB / 0.65 GB, free: 3.051 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005097/0.7278, allocations: 3.776 MB / 0.6537 GB, free: 15.13 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005249/0.733, allocations: 311.5 kB / 0.654 GB, free: 14.83 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001165/0.7342, allocations: 344 kB / 0.6543 GB, free: 14.49 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.004228/0.7385, allocations: 1.782 MB / 0.6561 GB, free: 12.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000775/0.7392, allocations: 304.1 kB / 0.6564 GB, free: 12.39 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004577/0.7438, allocations: 2.223 MB / 0.6585 GB, free: 10.15 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.106e-05/0.7439, allocations: 16 kB / 0.6586 GB, free: 10.14 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.308e-05/0.7439, allocations: 4 kB / 0.6586 GB, free: 10.13 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.655e-05/0.7439, allocations: 3.984 kB / 0.6586 GB, free: 10.13 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01384/0.7578, allocations: 5.979 MB / 0.6644 GB, free: 4.062 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.466e-05/0.7578, allocations: 4 kB / 0.6644 GB, free: 4.059 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/0.759, allocations: 215.7 kB / 0.6646 GB, free: 3.848 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001418/0.7604, allocations: 488.3 kB / 0.6651 GB, free: 3.367 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001489/0.7606, allocations: 24 kB / 0.6651 GB, free: 3.344 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003785/0.7644, allocations: 3.216 MB / 0.6682 GB, free: 15.99 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-06/0.7644, allocations: 7.984 kB / 0.6682 GB, free: 15.98 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006437/0.7708, allocations: 4.327 MB / 0.6725 GB, free: 11.63 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001526/0.7724, allocations: 0.5555 MB / 0.673 GB, free: 11.05 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003323/0.7727, allocations: 23.94 kB / 0.673 GB, free: 11.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001234/0.774, allocations: 87.83 kB / 0.6731 GB, free: 10.95 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001688/0.7742, allocations: 72.61 kB / 0.6732 GB, free: 10.88 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.46e-05/0.7743, allocations: 40 kB / 0.6732 GB, free: 10.84 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.00365/0.7779, allocations: 2.321 MB / 0.6755 GB, free: 8.527 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7779, allocations: 0 / 0.6755 GB, free: 8.527 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004124/0.7821, allocations: 0.832 MB / 0.6763 GB, free: 7.695 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.0003875/0.7825, allocations: 155 kB / 0.6765 GB, free: 7.535 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.007057/0.7895, allocations: 4.269 MB / 0.6806 GB, free: 3.281 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.7895, allocations: 0 / 0.6806 GB, free: 3.281 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001557/0.7911, allocations: 1.182 MB / 0.6818 GB, free: 2.086 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002199/0.7933, allocations: 346.3 kB / 0.6821 GB, free: 1.746 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2167/1.01, allocations: 9.121 MB / 0.691 GB, free: 148.2 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002773/1.013, allocations: 2.752 MB / 0.6937 GB, free: 147.4 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009808/1.014, allocations: 260.4 kB / 0.694 GB, free: 147.4 MB / 0.4948 GB Notification: Performance of SimCode: time 8.12e-07/1.014, allocations: 0 / 0.694 GB, free: 147.4 MB / 0.4948 GB Notification: Performance of Templates: time 0.09566/1.11, allocations: 63.18 MB / 0.7556 GB, free: 118.3 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