Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance2,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007754/0.0007754, allocations: 92.36 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009038/0.0009039, allocations: 205.4 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.131/1.131, allocations: 227.7 MB / 246.8 MB, free: 11.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1674/0.1674, allocations: 46.18 MB / 345.2 MB, free: 11.38 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002183/0.0002183, allocations: 8 kB / 419.6 MB, free: 19.63 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08357/0.0838, allocations: 63.56 MB / 483.2 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.02486/0.1087, allocations: 32.37 MB / 0.5035 GB, free: 3.547 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.1663/0.2751, allocations: 7.489 MB / 0.5108 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003166/0.2783, allocations: 137 kB / 0.5109 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007045/0.279, allocations: 346.7 kB / 0.5112 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002568/0.2815, allocations: 1.481 MB / 0.5127 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000869/0.2824, allocations: 0.5201 MB / 0.5132 GB, free: 10.13 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004912/0.2874, allocations: 5.223 MB / 0.5183 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003569/0.2909, allocations: 3.268 MB / 0.5215 GB, free: 9.691 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00102/0.292, allocations: 0.8777 MB / 0.5223 GB, free: 9.691 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001545/0.2935, allocations: 1.572 MB / 0.5239 GB, free: 9.527 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002123/0.2937, allocations: 115.5 kB / 0.524 GB, free: 9.523 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001394/0.2951, allocations: 1.045 MB / 0.525 GB, free: 9.332 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000895/0.296, allocations: 1.39 MB / 0.5264 GB, free: 8.605 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008923/0.297, allocations: 1.62 MB / 0.5279 GB, free: 7.383 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003317/0.3003, allocations: 5.468 MB / 0.5333 GB, free: 3.863 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.3003, allocations: 0 / 0.5333 GB, free: 3.863 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.3003, allocations: 0 / 0.5333 GB, free: 3.863 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.583e-05/0.3003, allocations: 0 / 0.5333 GB, free: 3.863 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.005192/0.3055, allocations: 3.274 MB / 0.5365 GB, free: 1.531 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.212e-05/0.3056, allocations: 8.312 kB / 0.5365 GB, free: 1.531 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004832/0.3061, allocations: 0.5739 MB / 0.5371 GB, free: 1.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08057/0.3866, allocations: 7.136 MB / 0.544 GB, free: 12.96 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003909/0.3906, allocations: 2.43 MB / 0.5464 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.3907, allocations: 180.8 kB / 0.5466 GB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003787/0.3911, allocations: 232.3 kB / 0.5468 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008867/0.3999, allocations: 7.739 MB / 0.5543 GB, free: 1.957 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.965e-05/0.4, allocations: 39.59 kB / 0.5544 GB, free: 1.918 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002722/0.4003, allocations: 114.1 kB / 0.5545 GB, free: 1.836 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002239/0.4025, allocations: 1.586 MB / 0.556 GB, free: 264 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008818/0.4114, allocations: 6.486 MB / 0.5624 GB, free: 9.762 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02567/0.4371, allocations: 31.46 MB / 0.5931 GB, free: 9.48 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004042/0.4411, allocations: 2.411 MB / 0.5955 GB, free: 6.922 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001194/0.4423, allocations: 1.061 MB / 0.5965 GB, free: 5.848 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002863/0.4426, allocations: 336.6 kB / 0.5968 GB, free: 5.469 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/0.4427, allocations: 42.56 kB / 0.5968 GB, free: 5.418 MB / 446.1 MB Notification: Performance of pre-optimization done (n=104): time 2.565e-06/0.4427, allocations: 3.938 kB / 0.5969 GB, free: 5.414 MB / 446.1 MB Notification: Performance of matching and sorting (n=118): time 0.01754/0.4602, allocations: 8.346 MB / 0.605 GB, free: 12.96 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.672e-05/0.4603, allocations: 196.4 kB / 0.6052 GB, free: 12.72 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003945/0.4643, allocations: 3.753 MB / 0.6089 GB, free: 8.977 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 6.94e-05/0.4643, allocations: 49.69 kB / 0.6089 GB, free: 8.922 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001541/0.4659, allocations: 2.716 MB / 0.6116 GB, free: 6.207 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003313/0.4662, allocations: 492.8 kB / 0.612 GB, free: 5.73 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004596/0.4667, allocations: 465.7 kB / 0.6125 GB, free: 5.27 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.567e-05/0.4668, allocations: 301.1 kB / 0.6128 GB, free: 4.973 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00202/0.4688, allocations: 1.584 MB / 0.6143 GB, free: 3.383 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003878/0.4727, allocations: 5.152 MB / 0.6193 GB, free: 12.43 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006396/0.4791, allocations: 7.323 MB / 0.6265 GB, free: 3.336 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.345e-05/0.4791, allocations: 36 kB / 0.6265 GB, free: 3.301 MB / 478.1 MB Notification: Performance of matching and sorting (n=698) (initialization): time 0.008428/0.4876, allocations: 6.62 MB / 0.633 GB, free: 12.67 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.97e-05/0.4876, allocations: 64 kB / 0.633 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.965e-05/0.4878, allocations: 128.3 kB / 0.6332 GB, free: 12.48 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007552/0.4885, allocations: 404 kB / 0.6336 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002906/0.4914, allocations: 1.224 MB / 0.6347 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003111/0.4946, allocations: 3.09 MB / 0.6378 GB, free: 7.641 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002407/0.497, allocations: 291.5 kB / 0.638 GB, free: 7.355 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003361/0.4973, allocations: 336 kB / 0.6384 GB, free: 7.027 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 577 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.twoHeadedArrow,distance2.arrow.headAtOrigin,distance1.arrow.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 (663): * Single equations (assignments): 659 * 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.002089/0.4994, allocations: 1.782 MB / 0.6401 GB, free: 5.234 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003247/0.4997, allocations: 304 kB / 0.6404 GB, free: 4.934 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002289/0.502, allocations: 1.47 MB / 0.6418 GB, free: 3.457 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.746e-05/0.5021, allocations: 16 kB / 0.6418 GB, free: 3.441 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.5021, allocations: 4 kB / 0.6418 GB, free: 3.438 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.5021, allocations: 3.984 kB / 0.6419 GB, free: 3.434 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006598/0.5087, allocations: 4.862 MB / 0.6466 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.5087, allocations: 0 / 0.6466 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006708/0.5094, allocations: 163.8 kB / 0.6468 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005512/0.5099, allocations: 224.6 kB / 0.647 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.686e-05/0.51, allocations: 19.52 kB / 0.647 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00249/0.5125, allocations: 2.526 MB / 0.6495 GB, free: 11.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/0.5125, allocations: 4.031 kB / 0.6495 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003815/0.5163, allocations: 3.268 MB / 0.6527 GB, free: 8.16 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003773/0.5167, allocations: 369 kB / 0.653 GB, free: 7.777 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002304/0.517, allocations: 20 kB / 0.653 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008265/0.5178, allocations: 51.94 kB / 0.6531 GB, free: 7.707 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001341/0.5179, allocations: 60.41 kB / 0.6531 GB, free: 7.648 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.133e-05/0.518, allocations: 34.8 kB / 0.6532 GB, free: 7.617 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002599/0.5206, allocations: 2.346 MB / 0.6555 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5206, allocations: 0 / 0.6555 GB, free: 5.285 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002762/0.5234, allocations: 0.7695 MB / 0.6562 GB, free: 4.516 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.004174/0.5276, allocations: 3.894 MB / 0.66 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004456/0.532, allocations: 3.803 MB / 0.6637 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.5321, allocations: 0 / 0.6637 GB, free: 12.8 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001228/0.5333, allocations: 0.9612 MB / 0.6647 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001926/0.5352, allocations: 354.6 kB / 0.665 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04721/0.5825, allocations: 42.96 MB / 0.707 GB, free: 9.574 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00269/0.5852, allocations: 2.716 MB / 0.7096 GB, free: 6.828 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003473/0.5886, allocations: 1.695 MB / 0.7113 GB, free: 5.129 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001593/0.5902, allocations: 1.456 MB / 0.7127 GB, free: 3.676 MB / 0.5606 GB Notification: Performance of SimCode: time 2.21e-07/0.5903, allocations: 0 / 0.7127 GB, free: 3.676 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2195/0.8098, allocations: 56.04 MB / 0.7674 GB, free: 181.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001399/0.8099, allocations: 225.8 kB / 0.7676 GB, free: 181.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.899/3.709, allocations: 0 / 0.7676 GB, free: 181.3 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-10 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance2.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches