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: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009403/0.0009403, allocations: 93.88 kB / 17.35 MB, free: 6.371 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.001101/0.001101, allocations: 171.8 kB / 18.25 MB, free: 5.527 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.254/1.254, allocations: 223.3 MB / 242.3 MB, free: 248 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1685/0.1685, allocations: 44.24 MB / 337.7 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002863/0.0002863, allocations: 8 kB / 410.4 MB, free: 27.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09854/0.09884, allocations: 61.92 MB / 472.4 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.03063/0.1295, allocations: 32.54 MB / 0.4931 GB, free: 12.6 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01546/0.145, allocations: 7.611 MB / 0.5005 GB, free: 4.965 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005124/0.1502, allocations: 147.6 kB / 0.5006 GB, free: 4.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001084/0.1513, allocations: 334.4 kB / 0.501 GB, free: 4.492 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003502/0.1548, allocations: 1.495 MB / 0.5024 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001085/0.1559, allocations: 0.5148 MB / 0.5029 GB, free: 2.477 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2248/0.3807, allocations: 5.073 MB / 0.5079 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005267/0.386, allocations: 2.963 MB / 0.5108 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001941/0.388, allocations: 0.8682 MB / 0.5116 GB, free: 10.46 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002789/0.3908, allocations: 1.529 MB / 0.5131 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004835/0.3913, allocations: 111.5 kB / 0.5132 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002015/0.3933, allocations: 1.065 MB / 0.5143 GB, free: 10.44 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001547/0.3949, allocations: 1.341 MB / 0.5156 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001328/0.3962, allocations: 1.605 MB / 0.5171 GB, free: 9.629 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005413/0.4016, allocations: 5.326 MB / 0.5223 GB, free: 8.578 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.4017, allocations: 0 / 0.5223 GB, free: 8.578 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.4017, allocations: 1.375 kB / 0.5223 GB, free: 8.578 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001271/0.4018, allocations: 0 / 0.5223 GB, free: 8.578 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.00801/0.4098, allocations: 3.199 MB / 0.5255 GB, free: 6.535 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.4099, allocations: 10.53 kB / 0.5255 GB, free: 6.535 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008953/0.4108, allocations: 0.5546 MB / 0.526 GB, free: 6.359 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08228/0.4931, allocations: 7.145 MB / 0.533 GB, free: 3.871 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005027/0.4981, allocations: 2.492 MB / 0.5354 GB, free: 2.977 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.04e-05/0.4983, allocations: 165.8 kB / 0.5356 GB, free: 2.969 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004041/0.4987, allocations: 229.3 kB / 0.5358 GB, free: 2.957 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009095/0.5078, allocations: 7.53 MB / 0.5431 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.521e-05/0.5079, allocations: 37.34 kB / 0.5432 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002753/0.5082, allocations: 113.1 kB / 0.5433 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002463/0.5106, allocations: 1.598 MB / 0.5449 GB, free: 12 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01014/0.5208, allocations: 6.359 MB / 0.5511 GB, free: 5.785 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03215/0.5529, allocations: 30.36 MB / 0.5807 GB, free: 6.855 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004143/0.5571, allocations: 2.181 MB / 0.5828 GB, free: 4.539 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00127/0.5584, allocations: 1.076 MB / 0.5839 GB, free: 3.457 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003242/0.5587, allocations: 321.8 kB / 0.5842 GB, free: 3.094 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.768e-05/0.5588, allocations: 50.94 kB / 0.5843 GB, free: 3.035 MB / 430.1 MB Notification: Performance of pre-optimization done (n=108): time 3.306e-06/0.5588, allocations: 0 / 0.5843 GB, free: 3.035 MB / 430.1 MB Notification: Performance of matching and sorting (n=132): time 0.03354/0.5923, allocations: 10.95 MB / 0.595 GB, free: 7.984 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.5925, allocations: 195.7 kB / 0.5951 GB, free: 7.754 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004575/0.5971, allocations: 3.666 MB / 0.5987 GB, free: 4.09 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001323/0.5972, allocations: 44.83 kB / 0.5988 GB, free: 4.043 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001601/0.5988, allocations: 2.609 MB / 0.6013 GB, free: 1.434 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004575/0.5993, allocations: 0.5249 MB / 0.6018 GB, free: 0.9141 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004732/0.5998, allocations: 449.3 kB / 0.6023 GB, free: 480 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.058e-05/0.5999, allocations: 313 kB / 0.6025 GB, free: 164 kB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002235/0.6021, allocations: 1.628 MB / 0.6041 GB, free: 14.53 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004111/0.6062, allocations: 4.991 MB / 0.609 GB, free: 7.898 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00707/0.6133, allocations: 7.206 MB / 0.616 GB, free: 15.51 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.053e-05/0.6134, allocations: 36 kB / 0.6161 GB, free: 15.48 MB / 478.1 MB Notification: Performance of matching and sorting (n=678) (initialization): time 0.00946/0.6228, allocations: 6.581 MB / 0.6225 GB, free: 9.523 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.921e-05/0.6229, allocations: 58.03 kB / 0.6226 GB, free: 9.469 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001055/0.623, allocations: 124.9 kB / 0.6227 GB, free: 9.348 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008509/0.6239, allocations: 400.6 kB / 0.6231 GB, free: 8.953 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003113/0.627, allocations: 1.201 MB / 0.6242 GB, free: 7.75 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003282/0.6303, allocations: 3.063 MB / 0.6272 GB, free: 4.555 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003288/0.6336, allocations: 283.4 kB / 0.6275 GB, free: 4.277 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003638/0.634, allocations: 330.6 kB / 0.6278 GB, free: 3.957 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 (643): * Single equations (assignments): 639 * 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.002644/0.6367, allocations: 1.736 MB / 0.6295 GB, free: 2.207 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004689/0.6371, allocations: 300.1 kB / 0.6298 GB, free: 1.91 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002925/0.6401, allocations: 1.726 MB / 0.6315 GB, free: 176 kB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.945e-05/0.6401, allocations: 12 kB / 0.6315 GB, free: 164 kB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.221e-05/0.6401, allocations: 7.938 kB / 0.6315 GB, free: 156 kB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.989e-06/0.6401, allocations: 3.984 kB / 0.6315 GB, free: 152 kB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008563/0.6487, allocations: 5.367 MB / 0.6367 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.728e-06/0.6487, allocations: 4 kB / 0.6368 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009435/0.6497, allocations: 195.7 kB / 0.6369 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006425/0.6503, allocations: 232.7 kB / 0.6372 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.923e-05/0.6504, allocations: 19.44 kB / 0.6372 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002594/0.653, allocations: 2.511 MB / 0.6396 GB, free: 7.625 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.653, allocations: 96 / 0.6396 GB, free: 7.625 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005023/0.6581, allocations: 3.715 MB / 0.6433 GB, free: 3.883 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009093/0.659, allocations: 369 kB / 0.6436 GB, free: 3.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005734/0.6596, allocations: 24 kB / 0.6436 GB, free: 3.477 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001306/0.6609, allocations: 67.91 kB / 0.6437 GB, free: 3.41 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001695/0.6611, allocations: 71.47 kB / 0.6438 GB, free: 3.344 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.562e-05/0.6612, allocations: 36 kB / 0.6438 GB, free: 3.309 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004287/0.6655, allocations: 2.301 MB / 0.646 GB, free: 1.02 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6655, allocations: 0 / 0.646 GB, free: 1.02 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004187/0.6697, allocations: 0.7812 MB / 0.6468 GB, free: 244 kB / 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 (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.00535/0.675, allocations: 4.348 MB / 0.6511 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.005845/0.6809, allocations: 3.917 MB / 0.6549 GB, free: 7.945 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.6809, allocations: 3.938 kB / 0.6549 GB, free: 7.941 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001388/0.6823, allocations: 1.063 MB / 0.6559 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00285/0.6852, allocations: 360.2 kB / 0.6563 GB, free: 6.52 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06176/0.7469, allocations: 42.53 MB / 0.6978 GB, free: 5.398 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003066/0.75, allocations: 2.681 MB / 0.7004 GB, free: 2.691 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003955/0.754, allocations: 1.683 MB / 0.7021 GB, free: 1.004 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.2005/0.9545, allocations: 1.442 MB / 0.7035 GB, free: 205.4 MB / 0.545 GB Notification: Performance of SimCode: time 1.092e-06/0.9546, allocations: 1.406 kB / 0.7035 GB, free: 205.4 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08393/1.039, allocations: 56.25 MB / 0.7584 GB, free: 169.2 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001581/1.039, allocations: 214.7 kB / 0.7586 GB, free: 169 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.034/4.073, allocations: 3.938 kB / 0.7586 GB, free: 169 MB / 0.545 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance.fmu > 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