Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_4.0.0_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.001893/0.001892, allocations: 101.5 kB / 17.85 MB, free: 5.66 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.002249/0.002249, allocations: 194 kB / 18.77 MB, free: 4.742 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.18/2.18, allocations: 222.9 MB / 242.5 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3403/0.3403, allocations: 44.18 MB / 336.8 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00227/0.00227, allocations: 66.2 kB / 408.4 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1847/0.187, allocations: 60.83 MB / 469.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.0504/0.2375, allocations: 33.51 MB / 0.4909 GB, free: 13.17 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02644/0.264, allocations: 7.658 MB / 0.4984 GB, free: 5.484 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009965/0.274, allocations: 139.6 kB / 0.4985 GB, free: 5.348 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005292/0.2793, allocations: 1.66 MB / 0.5001 GB, free: 3.684 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006116/0.2856, allocations: 1.48 MB / 0.5016 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002348/0.2879, allocations: 0.5148 MB / 0.5021 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.3825/0.6705, allocations: 5.076 MB / 0.507 GB, free: 10.82 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006115/0.6767, allocations: 2.194 MB / 0.5092 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003722/0.6805, allocations: 0.984 MB / 0.5102 GB, free: 10.57 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005048/0.6856, allocations: 1.679 MB / 0.5118 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00143/0.6871, allocations: 154.7 kB / 0.5119 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005/0.6921, allocations: 1.118 MB / 0.513 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003945/0.6961, allocations: 1.409 MB / 0.5144 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004806/0.701, allocations: 1.611 MB / 0.516 GB, free: 9.715 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009307/0.7103, allocations: 4.292 MB / 0.5202 GB, free: 9.461 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.047e-06/0.7104, allocations: 4 kB / 0.5202 GB, free: 9.457 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.7104, allocations: 1.219 kB / 0.5202 GB, free: 9.457 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002493/0.7106, allocations: 0 / 0.5202 GB, free: 9.457 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.01722/0.7279, allocations: 3.737 MB / 0.5238 GB, free: 7.836 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.034e-05/0.728, allocations: 12.91 kB / 0.5238 GB, free: 7.832 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0229/0.7509, allocations: 2.355 MB / 0.5261 GB, free: 6.785 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008229/0.7591, allocations: 2.201 MB / 0.5283 GB, free: 5.973 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002583/0.7594, allocations: 165.7 kB / 0.5284 GB, free: 5.965 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001443/0.7609, allocations: 223.1 kB / 0.5287 GB, free: 5.957 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01945/0.7804, allocations: 7.589 MB / 0.5361 GB, free: 1.441 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002126/0.7806, allocations: 36.97 kB / 0.5361 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007953/0.7815, allocations: 110 kB / 0.5362 GB, free: 1.395 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00381/0.7853, allocations: 1.598 MB / 0.5378 GB, free: 0.793 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01941/0.8047, allocations: 6.474 MB / 0.5441 GB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05571/0.8605, allocations: 30.67 MB / 0.574 GB, free: 12 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007056/0.8676, allocations: 2.238 MB / 0.5762 GB, free: 9.621 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002509/0.8702, allocations: 1.133 MB / 0.5773 GB, free: 8.477 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005902/0.8708, allocations: 314.7 kB / 0.5776 GB, free: 8.117 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.3e-05/0.8709, allocations: 45.91 kB / 0.5777 GB, free: 8.066 MB / 430.1 MB Notification: Performance of pre-optimization done (n=108): time 5.43e-06/0.8709, allocations: 0 / 0.5777 GB, free: 8.066 MB / 430.1 MB Notification: Performance of matching and sorting (n=132): time 0.05775/0.9286, allocations: 11.87 MB / 0.5893 GB, free: 12.09 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001538/0.9288, allocations: 195.8 kB / 0.5895 GB, free: 11.86 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009477/0.9383, allocations: 3.664 MB / 0.593 GB, free: 8.195 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000448/0.9388, allocations: 41.7 kB / 0.5931 GB, free: 8.148 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003553/0.9424, allocations: 2.587 MB / 0.5956 GB, free: 5.57 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00131/0.9437, allocations: 0.5311 MB / 0.5961 GB, free: 5.043 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003479/0.9472, allocations: 1.087 MB / 0.5972 GB, free: 3.945 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002103/0.9475, allocations: 305.1 kB / 0.5975 GB, free: 3.645 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004952/0.9525, allocations: 1.746 MB / 0.5992 GB, free: 1.895 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009902/0.9624, allocations: 5.107 MB / 0.6042 GB, free: 11.15 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01443/0.9769, allocations: 7.395 MB / 0.6114 GB, free: 2.586 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001396/0.9771, allocations: 36 kB / 0.6114 GB, free: 2.551 MB / 462.1 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.02274/0.9998, allocations: 7.086 MB / 0.6183 GB, free: 12.1 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001416/1, allocations: 56 kB / 0.6184 GB, free: 12.04 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002354/1, allocations: 120 kB / 0.6185 GB, free: 11.93 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002779/1.003, allocations: 0.6452 MB / 0.6191 GB, free: 11.28 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006726/1.01, allocations: 1.224 MB / 0.6203 GB, free: 10.05 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007527/1.017, allocations: 3.776 MB / 0.624 GB, free: 6.141 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00737/1.025, allocations: 295.4 kB / 0.6243 GB, free: 5.852 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001675/1.027, allocations: 335.6 kB / 0.6246 GB, free: 5.527 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.twoHeadedArrow,Distance1.arrow.headAtOrigin,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 (662): * Single equations (assignments): 658 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005775/1.032, allocations: 1.725 MB / 0.6263 GB, free: 3.793 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001151/1.034, allocations: 300.2 kB / 0.6266 GB, free: 3.496 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006105/1.04, allocations: 2.1 MB / 0.6286 GB, free: 1.379 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.679e-05/1.04, allocations: 12 kB / 0.6287 GB, free: 1.367 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.538e-05/1.04, allocations: 4 kB / 0.6287 GB, free: 1.363 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.562e-05/1.04, allocations: 7.984 kB / 0.6287 GB, free: 1.355 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01915/1.059, allocations: 5.732 MB / 0.6343 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.318e-05/1.059, allocations: 4 kB / 0.6343 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001803/1.061, allocations: 195.7 kB / 0.6345 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002286/1.063, allocations: 496.1 kB / 0.6349 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002752/1.063, allocations: 20 kB / 0.6349 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006355/1.07, allocations: 3.209 MB / 0.6381 GB, free: 7.52 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/1.07, allocations: 0 / 0.6381 GB, free: 7.52 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01055/1.08, allocations: 4.171 MB / 0.6422 GB, free: 3.32 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001662/1.082, allocations: 361.1 kB / 0.6425 GB, free: 2.945 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009493/1.083, allocations: 27.92 kB / 0.6425 GB, free: 2.918 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002182/1.085, allocations: 71.91 kB / 0.6426 GB, free: 2.848 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003283/1.086, allocations: 68.5 kB / 0.6427 GB, free: 2.781 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001621/1.086, allocations: 39.98 kB / 0.6427 GB, free: 2.742 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.007033/1.093, allocations: 2.288 MB / 0.6449 GB, free: 476 kB / 494.1 MB Notification: Performance of sort global known variables: time 3.657e-06/1.093, allocations: 0 / 0.6449 GB, free: 476 kB / 494.1 MB Notification: Performance of remove unused functions: time 0.008533/1.101, allocations: 0.8158 MB / 0.6457 GB, free: 15.65 MB / 0.4981 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 (102): * Single equations (assignments): 98 * 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.0006937/1.102, allocations: 152.2 kB / 0.6459 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0113/1.114, allocations: 4.139 MB / 0.6499 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.068e-05/1.114, allocations: 192 / 0.6499 GB, free: 11.38 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.002729/1.116, allocations: 1.134 MB / 0.651 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004514/1.121, allocations: 339.3 kB / 0.6513 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0238/1.145, allocations: 9.064 MB / 0.6602 GB, free: 0.7891 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005528/1.15, allocations: 2.676 MB / 0.6628 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00151/1.152, allocations: 247.4 kB / 0.663 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of SimCode: time 1.703e-06/1.152, allocations: 0 / 0.663 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of Templates: time 0.4732/1.625, allocations: 61.48 MB / 0.7231 GB, free: 200.8 MB / 0.545 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches