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.001436/0.001436, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001803/0.001803, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.214/0.214, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002392/0.002392, allocations: 71.89 kB / 480.8 MB, free: 4.566 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3547/0.3571, allocations: 62.44 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01044/0.3676, allocations: 8.928 MB / 0.5392 GB, free: 6.438 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00735/0.375, allocations: 3.547 MB / 0.5427 GB, free: 3.688 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001439/0.3764, allocations: 47 kB / 0.5427 GB, free: 3.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00353/0.38, allocations: 1.664 MB / 0.5444 GB, free: 2.555 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004067/0.3841, allocations: 1.544 MB / 0.5459 GB, free: 1.488 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001483/0.3856, allocations: 0.5592 MB / 0.5464 GB, free: 1.121 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004927/0.3906, allocations: 3.568 MB / 0.5499 GB, free: 13.89 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00286/0.3934, allocations: 2.197 MB / 0.552 GB, free: 11.64 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001799/0.3953, allocations: 1.094 MB / 0.5531 GB, free: 10.54 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002296/0.3976, allocations: 1.534 MB / 0.5546 GB, free: 9 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006812/0.3983, allocations: 220 kB / 0.5548 GB, free: 8.785 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002211/0.4005, allocations: 1.1 MB / 0.5559 GB, free: 7.684 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001624/0.4022, allocations: 1.41 MB / 0.5573 GB, free: 6.27 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002351/0.4045, allocations: 1.681 MB / 0.5589 GB, free: 4.578 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00647/0.411, allocations: 5.544 MB / 0.5643 GB, free: 15.02 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.4111, allocations: 0 / 0.5643 GB, free: 15.02 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.4111, allocations: 3.938 kB / 0.5643 GB, free: 15.01 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.000155/0.4112, allocations: 0 / 0.5643 GB, free: 15.01 MB / 430.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.009649/0.4209, allocations: 3.794 MB / 0.568 GB, free: 11.15 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.421, allocations: 12.03 kB / 0.568 GB, free: 11.14 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001264/0.4222, allocations: 0.5462 MB / 0.5686 GB, free: 10.58 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08137/0.5036, allocations: 6.921 MB / 0.5753 GB, free: 3.645 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005458/0.5091, allocations: 2.389 MB / 0.5777 GB, free: 1.203 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001472/0.5093, allocations: 160.5 kB / 0.5778 GB, free: 1.043 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007432/0.51, allocations: 231.7 kB / 0.578 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01132/0.5214, allocations: 7.336 MB / 0.5852 GB, free: 8.855 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001058/0.5215, allocations: 35.66 kB / 0.5852 GB, free: 8.82 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000487/0.522, allocations: 107.9 kB / 0.5853 GB, free: 8.715 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002624/0.5246, allocations: 1.542 MB / 0.5868 GB, free: 7.172 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01153/0.5362, allocations: 6.186 MB / 0.5929 GB, free: 0.9727 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0334/0.5696, allocations: 29.87 MB / 0.6221 GB, free: 2.172 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004322/0.574, allocations: 2.165 MB / 0.6242 GB, free: 15.86 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001341/0.5754, allocations: 1.067 MB / 0.6252 GB, free: 14.78 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003598/0.5758, allocations: 315.7 kB / 0.6255 GB, free: 14.42 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.48e-05/0.5758, allocations: 50.94 kB / 0.6256 GB, free: 14.36 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 3.526e-06/0.5758, allocations: 0 / 0.6256 GB, free: 14.36 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03297/0.6088, allocations: 10.87 MB / 0.6362 GB, free: 3.359 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/0.6089, allocations: 200.5 kB / 0.6364 GB, free: 3.121 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004782/0.6137, allocations: 3.609 MB / 0.6399 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002002/0.614, allocations: 45.7 kB / 0.6399 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001799/0.6158, allocations: 2.557 MB / 0.6424 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000591/0.6164, allocations: 0.5248 MB / 0.6429 GB, free: 12.33 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001363/0.6177, allocations: 1.055 MB / 0.644 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.6179, allocations: 301.1 kB / 0.6443 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002338/0.6202, allocations: 1.63 MB / 0.6459 GB, free: 9.332 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00463/0.6249, allocations: 4.965 MB / 0.6507 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007434/0.6323, allocations: 7.173 MB / 0.6577 GB, free: 9.848 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.98e-05/0.6324, allocations: 36 kB / 0.6577 GB, free: 9.812 MB / 0.5138 GB Notification: Performance of matching and sorting (n=675) (initialization): time 0.0109/0.6433, allocations: 6.552 MB / 0.6641 GB, free: 3.25 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 8.281e-05/0.6435, allocations: 60.3 kB / 0.6642 GB, free: 3.191 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001334/0.6436, allocations: 120 kB / 0.6643 GB, free: 3.074 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009334/0.6445, allocations: 404.5 kB / 0.6647 GB, free: 2.676 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00366/0.6482, allocations: 1.189 MB / 0.6659 GB, free: 1.484 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00357/0.6518, allocations: 3.308 MB / 0.6691 GB, free: 14.04 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003447/0.6553, allocations: 291.5 kB / 0.6694 GB, free: 13.75 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006676/0.656, allocations: 323.9 kB / 0.6697 GB, free: 13.44 MB / 0.5294 GB 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.002665/0.6587, allocations: 1.701 MB / 0.6713 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005404/0.6592, allocations: 300.1 kB / 0.6716 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002984/0.6622, allocations: 1.714 MB / 0.6733 GB, free: 9.703 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.793e-05/0.6623, allocations: 16 kB / 0.6733 GB, free: 9.688 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/0.6623, allocations: 8.047 kB / 0.6733 GB, free: 9.68 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.456e-05/0.6623, allocations: 7.922 kB / 0.6733 GB, free: 9.672 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008686/0.671, allocations: 5.25 MB / 0.6785 GB, free: 4.332 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.099e-05/0.671, allocations: 0 / 0.6785 GB, free: 4.332 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009849/0.672, allocations: 199.7 kB / 0.6786 GB, free: 4.137 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006844/0.6727, allocations: 224.7 kB / 0.6789 GB, free: 3.914 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001152/0.6729, allocations: 24 kB / 0.6789 GB, free: 3.891 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002766/0.6756, allocations: 2.691 MB / 0.6815 GB, free: 1.051 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.6757, allocations: 11.94 kB / 0.6815 GB, free: 1.039 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005104/0.6808, allocations: 3.714 MB / 0.6852 GB, free: 13.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007953/0.6816, allocations: 353.1 kB / 0.6855 GB, free: 12.93 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004825/0.6821, allocations: 24 kB / 0.6855 GB, free: 12.91 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001219/0.6833, allocations: 67.91 kB / 0.6856 GB, free: 12.84 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00021/0.6836, allocations: 80.5 kB / 0.6857 GB, free: 12.77 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.694e-05/0.6837, allocations: 32 kB / 0.6857 GB, free: 12.73 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003668/0.6873, allocations: 2.265 MB / 0.6879 GB, free: 10.48 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.31e-07/0.6874, allocations: 0 / 0.6879 GB, free: 10.48 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004075/0.6914, allocations: 0.7539 MB / 0.6886 GB, free: 9.727 MB / 0.545 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.005673/0.6971, allocations: 4.345 MB / 0.6929 GB, free: 5.34 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006162/0.7033, allocations: 3.935 MB / 0.6967 GB, free: 1.418 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.269e-05/0.7034, allocations: 4 kB / 0.6967 GB, free: 1.414 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00152/0.7049, allocations: 1.068 MB / 0.6978 GB, free: 340 kB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002446/0.7074, allocations: 368 kB / 0.6981 GB, free: 15.96 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2751/0.9825, allocations: 36.42 MB / 0.7337 GB, free: 173.2 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002827/0.9854, allocations: 2.632 MB / 0.7362 GB, free: 172 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.003714/0.9891, allocations: 1.705 MB / 0.7379 GB, free: 172 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001876/0.991, allocations: 1.399 MB / 0.7393 GB, free: 170.9 MB / 0.5763 GB Notification: Performance of SimCode: time 8.12e-07/0.991, allocations: 0 / 0.7393 GB, free: 170.9 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1097/1.101, allocations: 54.12 MB / 0.7921 GB, free: 121.6 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.49/22.59, allocations: 7.922 kB / 0.7921 GB, free: 121.6 MB / 0.5763 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