Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.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.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Sensors.Distance,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001091/0.001091, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001048/0.001048, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.246/1.246, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2048/0.2048, allocations: 46.11 MB / 343.6 MB, free: 11.81 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 78.97 kB / 416.9 MB, free: 20.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09601/0.09727, allocations: 62.45 MB / 479.4 MB, free: 5.656 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.02479/0.1221, allocations: 29.73 MB / 0.4972 GB, free: 7.809 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01414/0.1363, allocations: 6.999 MB / 0.504 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003994/0.1403, allocations: 123.7 kB / 0.5041 GB, free: 0.6641 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1908/0.3311, allocations: 1.64 MB / 0.5057 GB, free: 10.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00327/0.3344, allocations: 1.439 MB / 0.5071 GB, free: 10.56 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.3355, allocations: 0.5102 MB / 0.5076 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005477/0.341, allocations: 5.039 MB / 0.5126 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002399/0.3434, allocations: 2.167 MB / 0.5147 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001326/0.3447, allocations: 0.9593 MB / 0.5156 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002082/0.3468, allocations: 1.659 MB / 0.5172 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003389/0.3472, allocations: 156.3 kB / 0.5174 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00161/0.3488, allocations: 1.095 MB / 0.5184 GB, free: 10.1 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001005/0.3498, allocations: 1.358 MB / 0.5198 GB, free: 9.953 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001163/0.351, allocations: 1.617 MB / 0.5214 GB, free: 9.348 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003553/0.3545, allocations: 5.321 MB / 0.5265 GB, free: 6.734 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.626e-06/0.3545, allocations: 0 / 0.5265 GB, free: 6.734 MB / 382.1 MB Notification: Performance of FrontEnd: time 6.81e-07/0.3545, allocations: 0 / 0.5265 GB, free: 6.734 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.51e-05/0.3546, allocations: 0 / 0.5265 GB, free: 6.734 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: 1141 * Number of variables: 1141 Notification: Performance of Generate backend data structure: time 0.005926/0.3605, allocations: 3.784 MB / 0.5302 GB, free: 4.141 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.3606, allocations: 11.47 kB / 0.5303 GB, free: 4.141 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000443/0.361, allocations: 0.5405 MB / 0.5308 GB, free: 3.789 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07167/0.4327, allocations: 6.919 MB / 0.5375 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004575/0.4373, allocations: 2.363 MB / 0.5398 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.66e-05/0.4374, allocations: 167.6 kB / 0.54 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003509/0.4378, allocations: 218.5 kB / 0.5402 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008658/0.4464, allocations: 7.348 MB / 0.5474 GB, free: 6.746 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.23e-05/0.4465, allocations: 33.53 kB / 0.5474 GB, free: 6.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002464/0.4467, allocations: 112.6 kB / 0.5475 GB, free: 6.652 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002137/0.4489, allocations: 1.541 MB / 0.549 GB, free: 5.137 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008318/0.4572, allocations: 6.191 MB / 0.5551 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02611/0.4833, allocations: 29.97 MB / 0.5843 GB, free: 0.5703 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004086/0.4875, allocations: 2.178 MB / 0.5865 GB, free: 14.25 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001252/0.4887, allocations: 1.076 MB / 0.5875 GB, free: 13.17 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003095/0.4891, allocations: 318.2 kB / 0.5878 GB, free: 12.81 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/0.4891, allocations: 53.61 kB / 0.5879 GB, free: 12.75 MB / 446.1 MB Notification: Performance of pre-optimization done (n=108): time 3.536e-06/0.4891, allocations: 0 / 0.5879 GB, free: 12.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=132): time 0.02973/0.5188, allocations: 10.86 MB / 0.5985 GB, free: 1.812 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.896e-05/0.5189, allocations: 200.2 kB / 0.5987 GB, free: 1.578 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004127/0.5231, allocations: 3.615 MB / 0.6022 GB, free: 13.96 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 8.453e-05/0.5232, allocations: 41.7 kB / 0.6022 GB, free: 13.92 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001455/0.5246, allocations: 2.559 MB / 0.6047 GB, free: 11.36 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004034/0.525, allocations: 0.5298 MB / 0.6053 GB, free: 10.84 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001115/0.5262, allocations: 1.043 MB / 0.6063 GB, free: 9.781 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.415e-05/0.5262, allocations: 305.1 kB / 0.6066 GB, free: 9.48 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002091/0.5283, allocations: 1.626 MB / 0.6082 GB, free: 7.848 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003825/0.5322, allocations: 4.966 MB / 0.613 GB, free: 1.254 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00656/0.5387, allocations: 7.168 MB / 0.62 GB, free: 8.75 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.089e-05/0.5388, allocations: 36 kB / 0.62 GB, free: 8.715 MB / 478.1 MB Notification: Performance of matching and sorting (n=675) (initialization): time 0.00875/0.5476, allocations: 6.571 MB / 0.6265 GB, free: 2.137 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.027e-05/0.5476, allocations: 54.5 kB / 0.6265 GB, free: 2.086 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001069/0.5478, allocations: 120 kB / 0.6266 GB, free: 1.969 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008059/0.5486, allocations: 408.6 kB / 0.627 GB, free: 1.566 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003076/0.5517, allocations: 1.185 MB / 0.6282 GB, free: 388 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003003/0.5547, allocations: 3.072 MB / 0.6312 GB, free: 13.18 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002565/0.5573, allocations: 283.6 kB / 0.6314 GB, free: 12.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003417/0.5576, allocations: 323.8 kB / 0.6318 GB, free: 12.59 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 539 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.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 (640): * Single equations (assignments): 636 * 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.00192/0.5595, allocations: 1.697 MB / 0.6334 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003895/0.5599, allocations: 304 kB / 0.6337 GB, free: 10.58 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002629/0.5626, allocations: 1.717 MB / 0.6354 GB, free: 8.848 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-05/0.5626, allocations: 16 kB / 0.6354 GB, free: 8.832 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.5626, allocations: 4 kB / 0.6354 GB, free: 8.828 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.32e-05/0.5626, allocations: 7.969 kB / 0.6354 GB, free: 8.82 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00738/0.57, allocations: 5.304 MB / 0.6406 GB, free: 3.453 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/0.57, allocations: 4 kB / 0.6406 GB, free: 3.449 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000871/0.5709, allocations: 191.7 kB / 0.6408 GB, free: 3.262 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005948/0.5715, allocations: 232.6 kB / 0.641 GB, free: 3.031 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.809e-05/0.5716, allocations: 27.92 kB / 0.641 GB, free: 3.004 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002382/0.574, allocations: 2.511 MB / 0.6435 GB, free: 360 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.574, allocations: 4.031 kB / 0.6435 GB, free: 356 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004391/0.5784, allocations: 3.706 MB / 0.6471 GB, free: 12.61 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004303/0.5788, allocations: 357.1 kB / 0.6474 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002981/0.5791, allocations: 27.89 kB / 0.6475 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009868/0.5801, allocations: 63.92 kB / 0.6475 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000165/0.5803, allocations: 72.62 kB / 0.6476 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.078e-05/0.5804, allocations: 28 kB / 0.6476 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.002581/0.583, allocations: 2.269 MB / 0.6498 GB, free: 9.801 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.583, allocations: 0 / 0.6498 GB, free: 9.801 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002773/0.5858, allocations: 0.7539 MB / 0.6506 GB, free: 9.047 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.004745/0.5905, allocations: 4.34 MB / 0.6548 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.004579/0.5951, allocations: 3.915 MB / 0.6586 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.5951, allocations: 0 / 0.6586 GB, free: 0.7656 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001244/0.5964, allocations: 1.064 MB / 0.6597 GB, free: 15.69 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001615/0.598, allocations: 353.4 kB / 0.66 GB, free: 15.35 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04617/0.6442, allocations: 41.95 MB / 0.701 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002445/0.6466, allocations: 2.639 MB / 0.7036 GB, free: 12.19 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003526/0.6502, allocations: 1.671 MB / 0.7052 GB, free: 10.51 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0016/0.6518, allocations: 1.409 MB / 0.7066 GB, free: 9.105 MB / 0.5606 GB Notification: Performance of SimCode: time 5.11e-07/0.6518, allocations: 0 / 0.7066 GB, free: 9.105 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7166/1.368, allocations: 56.04 MB / 0.7613 GB, free: 187.4 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001573/1.369, allocations: 222.7 kB / 0.7615 GB, free: 187.2 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.545/4.914, allocations: 4 kB / 0.7615 GB, free: 187.2 MB / 0.5606 GB (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_MultiBody_Sensors_Distance.fmu > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches