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.0008905/0.0008905, allocations: 96.2 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.0009354/0.0009354, allocations: 172.2 kB / 18.25 MB, free: 5.523 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.268/1.268, allocations: 223.3 MB / 242.3 MB, free: 212 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.1862/0.1862, allocations: 44.24 MB / 337.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002961/0.0002961, allocations: 9.031 kB / 410.4 MB, free: 27.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1081, allocations: 61.92 MB / 472.4 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.03443/0.1426, allocations: 39.63 MB / 0.5 GB, free: 5.457 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2325/0.3751, allocations: 8.781 MB / 0.5086 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007456/0.3826, allocations: 175.2 kB / 0.5087 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001877/0.3845, allocations: 356 kB / 0.5091 GB, free: 10.24 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005196/0.3897, allocations: 1.541 MB / 0.5106 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001333/0.3911, allocations: 0.5246 MB / 0.5111 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007066/0.3981, allocations: 5.351 MB / 0.5163 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004559/0.4027, allocations: 3.305 MB / 0.5195 GB, free: 9.699 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00162/0.4043, allocations: 0.9056 MB / 0.5204 GB, free: 9.699 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002275/0.4066, allocations: 1.627 MB / 0.522 GB, free: 9.59 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003114/0.407, allocations: 113.1 kB / 0.5221 GB, free: 9.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001876/0.4088, allocations: 1.073 MB / 0.5232 GB, free: 9.328 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001302/0.4102, allocations: 1.454 MB / 0.5246 GB, free: 8.812 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001261/0.4114, allocations: 1.702 MB / 0.5263 GB, free: 8.012 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004245/0.4157, allocations: 5.701 MB / 0.5318 GB, free: 4.551 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.4157, allocations: 0 / 0.5318 GB, free: 4.551 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.4157, allocations: 0 / 0.5318 GB, free: 4.551 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.577e-05/0.4158, allocations: 0 / 0.5318 GB, free: 4.551 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: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.006141/0.4219, allocations: 3.379 MB / 0.5351 GB, free: 2.145 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.422, allocations: 14.19 kB / 0.5351 GB, free: 2.141 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005636/0.4225, allocations: 0.6016 MB / 0.5357 GB, free: 1.754 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08902/0.5116, allocations: 7.191 MB / 0.5427 GB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005736/0.5173, allocations: 2.573 MB / 0.5453 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001308/0.5175, allocations: 186.6 kB / 0.5454 GB, free: 10.92 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005479/0.5181, allocations: 252.7 kB / 0.5457 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01066/0.5287, allocations: 8.095 MB / 0.5536 GB, free: 2.148 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.911e-05/0.5288, allocations: 42.17 kB / 0.5536 GB, free: 2.125 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002978/0.5291, allocations: 122.6 kB / 0.5537 GB, free: 2.039 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002618/0.5318, allocations: 1.708 MB / 0.5554 GB, free: 372 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01058/0.5423, allocations: 6.786 MB / 0.562 GB, free: 9.727 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03511/0.5775, allocations: 32.21 MB / 0.5935 GB, free: 8.906 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004861/0.5824, allocations: 2.416 MB / 0.5958 GB, free: 6.352 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001392/0.5838, allocations: 1.057 MB / 0.5969 GB, free: 5.285 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003326/0.5842, allocations: 326.8 kB / 0.5972 GB, free: 4.914 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.931e-05/0.5842, allocations: 48.67 kB / 0.5972 GB, free: 4.859 MB / 446.1 MB Notification: Performance of pre-optimization done (n=104): time 4.389e-06/0.5842, allocations: 0 / 0.5972 GB, free: 4.859 MB / 446.1 MB Notification: Performance of matching and sorting (n=118): time 0.02187/0.6061, allocations: 8.461 MB / 0.6055 GB, free: 12.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.767e-05/0.6062, allocations: 188.5 kB / 0.6057 GB, free: 12.07 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005997/0.6122, allocations: 3.822 MB / 0.6094 GB, free: 8.258 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001787/0.6124, allocations: 49.64 kB / 0.6095 GB, free: 8.203 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001902/0.6144, allocations: 2.8 MB / 0.6122 GB, free: 5.406 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005467/0.6149, allocations: 495.7 kB / 0.6127 GB, free: 4.926 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007069/0.6156, allocations: 473.9 kB / 0.6131 GB, free: 4.457 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.062e-05/0.6157, allocations: 301.1 kB / 0.6134 GB, free: 4.16 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002701/0.6184, allocations: 1.599 MB / 0.615 GB, free: 2.555 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004742/0.6232, allocations: 5.208 MB / 0.6201 GB, free: 11.52 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007916/0.6311, allocations: 7.405 MB / 0.6273 GB, free: 2.316 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001073/0.6312, allocations: 43.98 kB / 0.6273 GB, free: 2.273 MB / 478.1 MB Notification: Performance of matching and sorting (n=707) (initialization): time 0.01175/0.643, allocations: 6.713 MB / 0.6339 GB, free: 11.55 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001233/0.6432, allocations: 64.12 kB / 0.6339 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001964/0.6434, allocations: 132 kB / 0.6341 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009573/0.6443, allocations: 404.6 kB / 0.6345 GB, free: 10.96 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003525/0.6479, allocations: 1.236 MB / 0.6357 GB, free: 9.727 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003465/0.6514, allocations: 3.091 MB / 0.6387 GB, free: 6.504 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003579/0.655, allocations: 291.5 kB / 0.639 GB, free: 6.219 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000629/0.6556, allocations: 340.2 kB / 0.6393 GB, free: 5.887 MB / 494.1 MB 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.003131/0.6587, allocations: 1.842 MB / 0.6411 GB, free: 4.031 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006299/0.6594, allocations: 311.9 kB / 0.6414 GB, free: 3.723 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002705/0.6621, allocations: 1.475 MB / 0.6428 GB, free: 2.238 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.919e-05/0.6621, allocations: 12 kB / 0.6428 GB, free: 2.227 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.186e-06/0.6621, allocations: 4 kB / 0.6428 GB, free: 2.223 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.338e-05/0.6622, allocations: 11.97 kB / 0.6428 GB, free: 2.211 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008836/0.671, allocations: 4.989 MB / 0.6477 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.671, allocations: 3.938 kB / 0.6477 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007366/0.6718, allocations: 163.8 kB / 0.6479 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006267/0.6724, allocations: 224.6 kB / 0.6481 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.476e-05/0.6725, allocations: 20 kB / 0.6481 GB, free: 12.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002666/0.6752, allocations: 2.533 MB / 0.6506 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.287e-06/0.6752, allocations: 8 kB / 0.6506 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004305/0.6795, allocations: 3.265 MB / 0.6538 GB, free: 6.812 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008408/0.6804, allocations: 376.8 kB / 0.6541 GB, free: 6.422 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005491/0.6809, allocations: 20 kB / 0.6542 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001204/0.6821, allocations: 55.88 kB / 0.6542 GB, free: 6.348 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/0.6823, allocations: 60.42 kB / 0.6543 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.706e-05/0.6824, allocations: 35.27 kB / 0.6543 GB, free: 6.258 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003984/0.6864, allocations: 2.375 MB / 0.6566 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6864, allocations: 0 / 0.6566 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004614/0.691, allocations: 0.8046 MB / 0.6574 GB, free: 3.094 MB / 0.4981 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.005151/0.6962, allocations: 3.898 MB / 0.6612 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006097/0.7023, allocations: 3.834 MB / 0.665 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.7023, allocations: 0 / 0.665 GB, free: 11.34 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001342/0.7037, allocations: 0.9519 MB / 0.6659 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002668/0.7063, allocations: 381.4 kB / 0.6663 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2735/0.9798, allocations: 43.82 MB / 0.709 GB, free: 203.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003385/0.9833, allocations: 2.802 MB / 0.7118 GB, free: 202.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004656/0.9879, allocations: 1.716 MB / 0.7135 GB, free: 202.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001752/0.9897, allocations: 1.523 MB / 0.7149 GB, free: 201.8 MB / 0.545 GB Notification: Performance of SimCode: time 9.72e-07/0.9897, allocations: 0 / 0.7149 GB, free: 201.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07778/1.068, allocations: 57.09 MB / 0.7707 GB, free: 156.7 MB / 0.545 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000156/1.068, allocations: 208.7 kB / 0.7709 GB, free: 156.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.106/4.174, allocations: 0 / 0.7709 GB, free: 156.5 MB / 0.545 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