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: translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00125/0.00125, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001289/0.001289, 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.502/1.502, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2466/0.2466, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001961/0.001962, allocations: 79.86 kB / 481.3 MB, free: 4.059 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4541/0.4561, allocations: 62.45 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.01161/0.4677, allocations: 8.925 MB / 0.5397 GB, free: 6.609 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01092/0.4787, allocations: 3.55 MB / 0.5432 GB, free: 3.859 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002542/0.4813, allocations: 47.28 kB / 0.5432 GB, free: 3.852 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004603/0.4859, allocations: 1.664 MB / 0.5448 GB, free: 2.727 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006707/0.4927, allocations: 1.545 MB / 0.5463 GB, free: 1.66 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001995/0.4948, allocations: 0.5555 MB / 0.5469 GB, free: 1.297 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00655/0.5013, allocations: 3.572 MB / 0.5504 GB, free: 13.82 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002989/0.5043, allocations: 2.185 MB / 0.5525 GB, free: 11.58 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001809/0.5062, allocations: 1.098 MB / 0.5536 GB, free: 10.48 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001827/0.508, allocations: 1.538 MB / 0.5551 GB, free: 8.938 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004237/0.5084, allocations: 220 kB / 0.5553 GB, free: 8.723 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001997/0.5104, allocations: 1.092 MB / 0.5564 GB, free: 7.629 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001253/0.5117, allocations: 1.422 MB / 0.5578 GB, free: 6.203 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001549/0.5133, allocations: 1.611 MB / 0.5593 GB, free: 4.582 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006395/0.5197, allocations: 5.386 MB / 0.5646 GB, free: 15.18 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.5197, allocations: 4 kB / 0.5646 GB, free: 15.18 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.5197, allocations: 0 / 0.5646 GB, free: 15.18 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001209/0.5198, allocations: 0 / 0.5646 GB, free: 15.18 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.008065/0.5279, allocations: 3.657 MB / 0.5682 GB, free: 11.45 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.526e-05/0.528, allocations: 12.03 kB / 0.5682 GB, free: 11.44 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01584/0.5438, allocations: 2.34 MB / 0.5705 GB, free: 9.09 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005978/0.5498, allocations: 2.174 MB / 0.5726 GB, free: 6.863 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001499/0.55, allocations: 164.5 kB / 0.5727 GB, free: 6.699 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006353/0.5507, allocations: 219.9 kB / 0.5729 GB, free: 6.484 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01163/0.5623, allocations: 7.398 MB / 0.5802 GB, free: 14.46 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.491e-05/0.5624, allocations: 35.66 kB / 0.5802 GB, free: 14.43 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002738/0.5627, allocations: 111.8 kB / 0.5803 GB, free: 14.32 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002405/0.5651, allocations: 1.539 MB / 0.5818 GB, free: 12.78 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01101/0.5761, allocations: 6.319 MB / 0.588 GB, free: 6.445 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03669/0.6129, allocations: 30.19 MB / 0.6175 GB, free: 7.328 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004823/0.6177, allocations: 2.23 MB / 0.6196 GB, free: 4.949 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001484/0.6193, allocations: 1.125 MB / 0.6207 GB, free: 3.812 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004441/0.6197, allocations: 323.5 kB / 0.621 GB, free: 3.441 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001195/0.6199, allocations: 46.94 kB / 0.6211 GB, free: 3.387 MB / 478.1 MB Notification: Performance of pre-optimization done (n=108): time 2.925e-06/0.6199, allocations: 0 / 0.6211 GB, free: 3.387 MB / 478.1 MB Notification: Performance of matching and sorting (n=132): time 0.03625/0.6561, allocations: 11.81 MB / 0.6326 GB, free: 7.422 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000129/0.6563, allocations: 204.5 kB / 0.6328 GB, free: 7.18 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005341/0.6616, allocations: 3.599 MB / 0.6363 GB, free: 3.578 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002108/0.6619, allocations: 45.7 kB / 0.6364 GB, free: 3.527 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00184/0.6637, allocations: 2.542 MB / 0.6389 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005468/0.6643, allocations: 0.5247 MB / 0.6394 GB, free: 428 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00151/0.6658, allocations: 1.087 MB / 0.6404 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001633/0.666, allocations: 309 kB / 0.6407 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002501/0.6685, allocations: 1.736 MB / 0.6424 GB, free: 13.27 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005326/0.6738, allocations: 5.088 MB / 0.6474 GB, free: 6.5 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01042/0.6842, allocations: 7.365 MB / 0.6546 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-05/0.6844, allocations: 36 kB / 0.6546 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01451/0.6989, allocations: 7.047 MB / 0.6615 GB, free: 6.383 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.323e-05/0.699, allocations: 59.94 kB / 0.6616 GB, free: 6.324 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001373/0.6992, allocations: 124 kB / 0.6617 GB, free: 6.203 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001635/0.7008, allocations: 0.6415 MB / 0.6623 GB, free: 5.559 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004101/0.7049, allocations: 1.216 MB / 0.6635 GB, free: 4.34 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004952/0.7099, allocations: 4.06 MB / 0.6675 GB, free: 140 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00446/0.7144, allocations: 307.2 kB / 0.6678 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007399/0.7151, allocations: 328 kB / 0.6681 GB, free: 15.52 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 (659): * Single equations (assignments): 655 * 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.003254/0.7184, allocations: 1.701 MB / 0.6697 GB, free: 13.8 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006173/0.719, allocations: 296.2 kB / 0.67 GB, free: 13.51 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003791/0.7228, allocations: 2.088 MB / 0.672 GB, free: 11.41 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.762e-05/0.7229, allocations: 16 kB / 0.6721 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/0.7229, allocations: 4 kB / 0.6721 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.7229, allocations: 3.984 kB / 0.6721 GB, free: 11.38 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01019/0.7331, allocations: 5.597 MB / 0.6775 GB, free: 5.695 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.237e-06/0.7332, allocations: 12 kB / 0.6775 GB, free: 5.684 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009388/0.7341, allocations: 191.7 kB / 0.6777 GB, free: 5.496 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001325/0.7354, allocations: 488.2 kB / 0.6782 GB, free: 5.016 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.534e-05/0.7355, allocations: 20 kB / 0.6782 GB, free: 4.996 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004063/0.7396, allocations: 3.445 MB / 0.6816 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/0.7397, allocations: 7.969 kB / 0.6816 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006555/0.7462, allocations: 4.175 MB / 0.6857 GB, free: 13.19 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009678/0.7472, allocations: 357.2 kB / 0.686 GB, free: 12.82 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002801/0.7475, allocations: 16 kB / 0.686 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/0.7486, allocations: 75.91 kB / 0.6861 GB, free: 12.73 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000194/0.7488, allocations: 68.5 kB / 0.6862 GB, free: 12.66 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.219e-05/0.7489, allocations: 39.98 kB / 0.6862 GB, free: 12.62 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003259/0.7522, allocations: 2.248 MB / 0.6884 GB, free: 10.39 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.91e-07/0.7522, allocations: 4 kB / 0.6884 GB, free: 10.38 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00418/0.7564, allocations: 0.7852 MB / 0.6892 GB, free: 9.598 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.0004606/0.7568, allocations: 143 kB / 0.6893 GB, free: 9.449 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.007348/0.7642, allocations: 4.147 MB / 0.6933 GB, free: 5.312 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/0.7642, allocations: 4.5 kB / 0.6934 GB, free: 5.309 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001597/0.7658, allocations: 1.123 MB / 0.6944 GB, free: 4.176 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002227/0.7681, allocations: 367.9 kB / 0.6948 GB, free: 3.816 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01417/0.7823, allocations: 7.075 MB / 0.7017 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002854/0.7852, allocations: 2.631 MB / 0.7043 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003695/0.7889, allocations: 1.694 MB / 0.7059 GB, free: 8.34 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005789/0.7895, allocations: 203.4 kB / 0.7061 GB, free: 8.141 MB / 0.5606 GB Notification: Performance of SimCode: time 8.82e-07/0.7895, allocations: 7.938 kB / 0.7061 GB, free: 8.133 MB / 0.5606 GB Notification: Performance of Templates: time 0.3772/1.167, allocations: 25.5 MB / 0.731 GB, free: 178.6 MB / 0.5762 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches