Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.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.Distance2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2",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.001107/0.001107, allocations: 110.4 kB / 17.78 MB, free: 5.289 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.001217/0.001217, allocations: 187.9 kB / 18.71 MB, free: 4.371 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.285/1.285, allocations: 222.9 MB / 242.4 MB, free: 15.08 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.2054/0.2054, allocations: 44.19 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 71.88 kB / 470 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2891/0.2905, allocations: 60.82 MB / 0.5184 GB, free: 3.297 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.009646/0.3002, allocations: 9.239 MB / 0.5274 GB, free: 12.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007233/0.3074, allocations: 3.585 MB / 0.5309 GB, free: 10.33 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001487/0.3089, allocations: 49.56 kB / 0.531 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003527/0.3125, allocations: 1.934 MB / 0.5329 GB, free: 9.012 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004147/0.3167, allocations: 1.641 MB / 0.5345 GB, free: 7.867 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001314/0.318, allocations: 0.5749 MB / 0.535 GB, free: 7.488 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004882/0.3229, allocations: 3.707 MB / 0.5387 GB, free: 5.461 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002835/0.3258, allocations: 2.458 MB / 0.5411 GB, free: 3.988 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001967/0.3277, allocations: 1.203 MB / 0.5422 GB, free: 3.305 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002086/0.3298, allocations: 1.679 MB / 0.5439 GB, free: 1.961 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004387/0.3303, allocations: 248 kB / 0.5441 GB, free: 1.719 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001842/0.3322, allocations: 1.139 MB / 0.5452 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001291/0.3335, allocations: 1.582 MB / 0.5468 GB, free: 14.99 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001584/0.335, allocations: 1.86 MB / 0.5486 GB, free: 13.12 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005392/0.3405, allocations: 6.12 MB / 0.5546 GB, free: 6.98 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.3405, allocations: 3.938 kB / 0.5546 GB, free: 6.977 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3405, allocations: 0 / 0.5546 GB, free: 6.977 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.285e-05/0.3406, allocations: 0 / 0.5546 GB, free: 6.977 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.007839/0.3484, allocations: 4.092 MB / 0.5586 GB, free: 2.816 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.3485, allocations: 8.031 kB / 0.5586 GB, free: 2.809 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006503/0.3491, allocations: 0.6041 MB / 0.5592 GB, free: 2.195 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09171/0.4408, allocations: 6.995 MB / 0.566 GB, free: 11.19 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006175/0.4471, allocations: 2.608 MB / 0.5685 GB, free: 8.516 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001417/0.4472, allocations: 185 kB / 0.5687 GB, free: 8.332 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007711/0.448, allocations: 251.7 kB / 0.5689 GB, free: 8.086 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01137/0.4594, allocations: 8.091 MB / 0.5768 GB, free: 15.36 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.111e-05/0.4595, allocations: 43.67 kB / 0.5769 GB, free: 15.31 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002965/0.4598, allocations: 115.9 kB / 0.577 GB, free: 15.2 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002649/0.4625, allocations: 1.703 MB / 0.5787 GB, free: 13.5 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01111/0.4736, allocations: 6.783 MB / 0.5853 GB, free: 6.707 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03375/0.5074, allocations: 32.03 MB / 0.6166 GB, free: 5.672 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004611/0.512, allocations: 2.411 MB / 0.6189 GB, free: 3.113 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001339/0.5134, allocations: 1.054 MB / 0.6199 GB, free: 2.047 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003488/0.5138, allocations: 327.2 kB / 0.6203 GB, free: 1.672 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.844e-05/0.5138, allocations: 50.39 kB / 0.6203 GB, free: 1.613 MB / 478.1 MB Notification: Performance of pre-optimization done (n=104): time 3.557e-06/0.5138, allocations: 0 / 0.6203 GB, free: 1.613 MB / 478.1 MB Notification: Performance of matching and sorting (n=118): time 0.02144/0.5353, allocations: 8.486 MB / 0.6286 GB, free: 9.012 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.322e-05/0.5354, allocations: 192.5 kB / 0.6288 GB, free: 8.781 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004576/0.54, allocations: 3.814 MB / 0.6325 GB, free: 4.977 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001261/0.5401, allocations: 45.69 kB / 0.6325 GB, free: 4.926 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001694/0.5418, allocations: 2.801 MB / 0.6353 GB, free: 2.082 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004331/0.5423, allocations: 0.4902 MB / 0.6358 GB, free: 1.586 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001191/0.5435, allocations: 1.099 MB / 0.6368 GB, free: 488 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.595e-05/0.5435, allocations: 309.1 kB / 0.6371 GB, free: 176 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002181/0.5457, allocations: 1.592 MB / 0.6387 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004207/0.55, allocations: 5.216 MB / 0.6438 GB, free: 7.531 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00723/0.5572, allocations: 7.418 MB / 0.651 GB, free: 14.31 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.358e-05/0.5573, allocations: 36 kB / 0.6511 GB, free: 14.28 MB / 0.5137 GB Notification: Performance of matching and sorting (n=707) (initialization): time 0.009972/0.5673, allocations: 6.695 MB / 0.6576 GB, free: 7.57 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 7.738e-05/0.5674, allocations: 62.34 kB / 0.6577 GB, free: 7.512 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001204/0.5675, allocations: 132 kB / 0.6578 GB, free: 7.383 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008591/0.5683, allocations: 405.4 kB / 0.6582 GB, free: 6.984 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003276/0.5716, allocations: 1.24 MB / 0.6594 GB, free: 5.742 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003624/0.5753, allocations: 3.352 MB / 0.6626 GB, free: 2.25 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00354/0.5788, allocations: 283.5 kB / 0.6629 GB, free: 1.973 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004764/0.5793, allocations: 344 kB / 0.6632 GB, free: 1.637 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 586 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.arrowLine.twoHeadedArrow,distance1.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrowColor[3],distance1.arrowColor[2],distance1.arrowColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.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 (672): * Single equations (assignments): 668 * 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.002417/0.5817, allocations: 1.842 MB / 0.665 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004473/0.5822, allocations: 315.8 kB / 0.6653 GB, free: 15.46 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002431/0.5846, allocations: 1.467 MB / 0.6668 GB, free: 13.99 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.531e-05/0.5847, allocations: 19.98 kB / 0.6668 GB, free: 13.97 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.5847, allocations: 4 kB / 0.6668 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.378e-05/0.5847, allocations: 11.97 kB / 0.6668 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008349/0.5931, allocations: 4.959 MB / 0.6717 GB, free: 8.934 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.838e-06/0.5931, allocations: 4 kB / 0.6717 GB, free: 8.93 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007414/0.5938, allocations: 155.8 kB / 0.6718 GB, free: 8.777 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006407/0.5945, allocations: 224.7 kB / 0.672 GB, free: 8.555 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.161e-05/0.5946, allocations: 19.98 kB / 0.672 GB, free: 8.535 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002821/0.5974, allocations: 2.704 MB / 0.6747 GB, free: 5.688 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.5974, allocations: 0 / 0.6747 GB, free: 5.688 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004296/0.6017, allocations: 3.288 MB / 0.6779 GB, free: 2.375 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007568/0.6025, allocations: 364.9 kB / 0.6782 GB, free: 1.996 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002812/0.6028, allocations: 16 kB / 0.6783 GB, free: 1.98 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009435/0.6037, allocations: 51.92 kB / 0.6783 GB, free: 1.93 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001549/0.6039, allocations: 72.36 kB / 0.6784 GB, free: 1.859 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.869e-05/0.604, allocations: 32 kB / 0.6784 GB, free: 1.828 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00318/0.6072, allocations: 2.379 MB / 0.6807 GB, free: 15.46 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6072, allocations: 0 / 0.6807 GB, free: 15.46 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003503/0.6107, allocations: 0.8007 MB / 0.6815 GB, free: 14.66 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (Revolute1.phi,Revolute1.w) * Number of discrete variables: 1 (LessEqualThreshold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (88): * Single equations (assignments): 84 * 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.004681/0.6154, allocations: 3.904 MB / 0.6853 GB, free: 10.72 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.005499/0.6209, allocations: 3.842 MB / 0.6891 GB, free: 6.895 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/0.6209, allocations: 4 kB / 0.6891 GB, free: 6.891 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001346/0.6223, allocations: 0.955 MB / 0.69 GB, free: 5.926 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002003/0.6243, allocations: 402.7 kB / 0.6904 GB, free: 5.539 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2642/0.8885, allocations: 37.72 MB / 0.7272 GB, free: 183.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002562/0.8911, allocations: 2.805 MB / 0.73 GB, free: 182.6 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00354/0.8946, allocations: 1.726 MB / 0.7317 GB, free: 182.5 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001641/0.8963, allocations: 1.523 MB / 0.7331 GB, free: 181.5 MB / 0.5762 GB Notification: Performance of SimCode: time 1.262e-06/0.8963, allocations: 0 / 0.7331 GB, free: 181.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07965/0.976, allocations: 55.93 MB / 0.7878 GB, free: 136.6 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.99/23.97, allocations: 15.61 kB / 0.7878 GB, free: 136.6 MB / 0.5762 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_4_0_0_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches