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.001478/0.001478, allocations: 117.8 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001812/0.001812, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2093/0.2093, allocations: 46.1 MB / 344.3 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001485/0.001485, allocations: 75.86 kB / 480.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2933, allocations: 62.44 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.00962/0.3029, allocations: 9.047 MB / 0.5393 GB, free: 6.34 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006817/0.3098, allocations: 3.563 MB / 0.5428 GB, free: 3.578 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001195/0.311, allocations: 49.12 kB / 0.5429 GB, free: 3.57 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00381/0.3148, allocations: 1.909 MB / 0.5447 GB, free: 2.285 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004044/0.3189, allocations: 1.571 MB / 0.5463 GB, free: 1.195 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001404/0.3203, allocations: 0.574 MB / 0.5468 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005615/0.326, allocations: 3.655 MB / 0.5504 GB, free: 13.39 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002673/0.3287, allocations: 2.429 MB / 0.5528 GB, free: 10.91 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001571/0.3303, allocations: 1.156 MB / 0.5539 GB, free: 9.746 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001923/0.3322, allocations: 1.643 MB / 0.5555 GB, free: 8.098 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004416/0.3327, allocations: 240 kB / 0.5557 GB, free: 7.863 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001772/0.3345, allocations: 1.112 MB / 0.5568 GB, free: 6.75 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001216/0.3357, allocations: 1.512 MB / 0.5583 GB, free: 5.234 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001578/0.3373, allocations: 1.782 MB / 0.56 GB, free: 3.441 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005543/0.3428, allocations: 5.851 MB / 0.5657 GB, free: 13.57 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.3429, allocations: 0 / 0.5657 GB, free: 13.57 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3429, allocations: 0 / 0.5657 GB, free: 13.57 MB / 430.1 MB Notification: Performance of Transformations before backend: time 9.633e-05/0.343, allocations: 0 / 0.5657 GB, free: 13.57 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: 1211 * Number of variables: 1211 Notification: Performance of Generate backend data structure: time 0.008633/0.3516, allocations: 3.966 MB / 0.5696 GB, free: 9.535 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.3517, allocations: 8.031 kB / 0.5696 GB, free: 9.527 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008183/0.3525, allocations: 0.5715 MB / 0.5702 GB, free: 8.945 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09503/0.4475, allocations: 6.948 MB / 0.577 GB, free: 1.984 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006049/0.4536, allocations: 2.455 MB / 0.5794 GB, free: 15.48 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001572/0.4538, allocations: 176.8 kB / 0.5795 GB, free: 15.3 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006911/0.4545, allocations: 239.7 kB / 0.5798 GB, free: 15.07 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01119/0.4657, allocations: 7.72 MB / 0.5873 GB, free: 6.695 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.16e-05/0.4658, allocations: 43.59 kB / 0.5873 GB, free: 6.652 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003287/0.4662, allocations: 119.9 kB / 0.5875 GB, free: 6.535 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002548/0.4687, allocations: 1.578 MB / 0.589 GB, free: 4.957 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01113/0.4799, allocations: 6.475 MB / 0.5953 GB, free: 14.47 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03478/0.5147, allocations: 31.3 MB / 0.6259 GB, free: 14.19 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004652/0.5194, allocations: 2.415 MB / 0.6282 GB, free: 11.63 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001343/0.5208, allocations: 1.064 MB / 0.6293 GB, free: 10.55 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000373/0.5212, allocations: 323.2 kB / 0.6296 GB, free: 10.19 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.666e-05/0.5212, allocations: 42.67 kB / 0.6296 GB, free: 10.14 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 3.787e-06/0.5212, allocations: 7.875 kB / 0.6296 GB, free: 10.13 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.0205/0.5417, allocations: 8.352 MB / 0.6378 GB, free: 1.664 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.22e-05/0.5418, allocations: 196.4 kB / 0.638 GB, free: 1.426 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004901/0.5468, allocations: 3.764 MB / 0.6417 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001738/0.547, allocations: 45.61 kB / 0.6417 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001773/0.5487, allocations: 2.712 MB / 0.6444 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004976/0.5492, allocations: 0.4902 MB / 0.6448 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001298/0.5506, allocations: 1.087 MB / 0.6459 GB, free: 9.27 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.267e-05/0.5507, allocations: 305.1 kB / 0.6462 GB, free: 8.969 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002288/0.553, allocations: 1.58 MB / 0.6477 GB, free: 7.383 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004543/0.5575, allocations: 5.141 MB / 0.6528 GB, free: 452 kB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008368/0.5659, allocations: 7.321 MB / 0.6599 GB, free: 7.348 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000103/0.5661, allocations: 40 kB / 0.6599 GB, free: 7.309 MB / 0.5137 GB Notification: Performance of matching and sorting (n=698) (initialization): time 0.014/0.5801, allocations: 6.622 MB / 0.6664 GB, free: 0.6758 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.142e-05/0.5802, allocations: 56 kB / 0.6665 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001215/0.5803, allocations: 132.2 kB / 0.6666 GB, free: 0.4922 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008719/0.5812, allocations: 404.6 kB / 0.667 GB, free: 96 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003596/0.5848, allocations: 1.221 MB / 0.6682 GB, free: 14.87 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003779/0.5886, allocations: 3.348 MB / 0.6714 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003566/0.5922, allocations: 283.5 kB / 0.6717 GB, free: 11.11 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005139/0.5927, allocations: 344 kB / 0.672 GB, free: 10.77 MB / 0.5294 GB 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.002436/0.5952, allocations: 1.775 MB / 0.6738 GB, free: 8.98 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00047/0.5957, allocations: 304 kB / 0.6741 GB, free: 8.68 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002481/0.5981, allocations: 1.474 MB / 0.6755 GB, free: 7.199 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.447e-05/0.5982, allocations: 12 kB / 0.6755 GB, free: 7.188 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.131e-05/0.5982, allocations: 7.938 kB / 0.6755 GB, free: 7.18 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.356e-05/0.5982, allocations: 7.969 kB / 0.6755 GB, free: 7.172 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008777/0.607, allocations: 4.829 MB / 0.6802 GB, free: 2.273 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.536e-06/0.607, allocations: 32 / 0.6802 GB, free: 2.273 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007723/0.6078, allocations: 159.8 kB / 0.6804 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006618/0.6085, allocations: 232.5 kB / 0.6806 GB, free: 1.887 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.541e-05/0.6086, allocations: 20 kB / 0.6806 GB, free: 1.867 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002893/0.6115, allocations: 2.704 MB / 0.6833 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/0.6115, allocations: 4.031 kB / 0.6833 GB, free: 15.02 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004416/0.6159, allocations: 3.273 MB / 0.6865 GB, free: 11.72 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007835/0.6168, allocations: 357 kB / 0.6868 GB, free: 11.35 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003049/0.6171, allocations: 20 kB / 0.6868 GB, free: 11.33 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009645/0.618, allocations: 47.94 kB / 0.6869 GB, free: 11.28 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001709/0.6182, allocations: 72.42 kB / 0.6869 GB, free: 11.21 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.082e-05/0.6183, allocations: 35.98 kB / 0.687 GB, free: 11.18 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003236/0.6216, allocations: 2.339 MB / 0.6893 GB, free: 8.852 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6216, allocations: 0 / 0.6893 GB, free: 8.852 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.003575/0.6251, allocations: 0.7695 MB / 0.69 GB, free: 8.082 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.004693/0.6299, allocations: 3.898 MB / 0.6938 GB, free: 4.141 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.005644/0.6355, allocations: 3.826 MB / 0.6976 GB, free: 340 kB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.6355, allocations: 0 / 0.6976 GB, free: 340 kB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001404/0.637, allocations: 0.9467 MB / 0.6985 GB, free: 15.37 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002089/0.6391, allocations: 380.7 kB / 0.6988 GB, free: 15 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.269/0.9081, allocations: 37.07 MB / 0.735 GB, free: 171 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002445/0.9106, allocations: 2.712 MB / 0.7377 GB, free: 169.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003194/0.9138, allocations: 1.711 MB / 0.7394 GB, free: 169.9 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001476/0.9152, allocations: 1.455 MB / 0.7408 GB, free: 168.7 MB / 0.5762 GB Notification: Performance of SimCode: time 9.12e-07/0.9153, allocations: 0 / 0.7408 GB, free: 168.7 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07752/0.9928, allocations: 54.91 MB / 0.7944 GB, free: 118.3 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.41/24.41, allocations: 0 / 0.7944 GB, free: 118.3 MB / 0.5762 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