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.001473/0.001473, allocations: 114.9 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001732/0.001732, allocations: 210.8 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.193/0.193, allocations: 46.09 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001449/0.001449, allocations: 71.88 kB / 482 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3191/0.3206, allocations: 62.43 MB / 0.5316 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.009501/0.3301, allocations: 8.927 MB / 0.5404 GB, free: 6.609 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.006266/0.3364, allocations: 3.55 MB / 0.5438 GB, free: 3.859 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001031/0.3375, allocations: 47.38 kB / 0.5439 GB, free: 3.852 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002826/0.3403, allocations: 1.663 MB / 0.5455 GB, free: 2.727 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003054/0.3434, allocations: 1.543 MB / 0.547 GB, free: 1.66 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.3445, allocations: 0.5567 MB / 0.5476 GB, free: 1.297 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.003801/0.3483, allocations: 3.574 MB / 0.551 GB, free: 13.84 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00204/0.3503, allocations: 2.197 MB / 0.5532 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001147/0.3515, allocations: 1.094 MB / 0.5543 GB, free: 10.49 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001667/0.3532, allocations: 1.53 MB / 0.5557 GB, free: 8.953 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003416/0.3535, allocations: 220 kB / 0.556 GB, free: 8.738 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001628/0.3552, allocations: 1.096 MB / 0.557 GB, free: 7.641 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001074/0.3562, allocations: 1.418 MB / 0.5584 GB, free: 6.219 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00119/0.3575, allocations: 1.611 MB / 0.56 GB, free: 4.598 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004499/0.362, allocations: 5.394 MB / 0.5653 GB, free: 15.19 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.362, allocations: 0 / 0.5653 GB, free: 15.19 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.362, allocations: 0 / 0.5653 GB, free: 15.19 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.001e-05/0.362, allocations: 0 / 0.5653 GB, free: 15.19 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.005641/0.3677, allocations: 3.665 MB / 0.5688 GB, free: 11.45 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.3677, allocations: 8.031 kB / 0.5688 GB, free: 11.45 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01427/0.382, allocations: 2.329 MB / 0.5711 GB, free: 9.109 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004619/0.3866, allocations: 2.182 MB / 0.5732 GB, free: 6.875 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001146/0.3868, allocations: 164.5 kB / 0.5734 GB, free: 6.711 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004255/0.3872, allocations: 219.9 kB / 0.5736 GB, free: 6.496 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01023/0.3975, allocations: 7.398 MB / 0.5808 GB, free: 14.47 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.597e-05/0.3976, allocations: 47.59 kB / 0.5809 GB, free: 14.43 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002875/0.3979, allocations: 111.8 kB / 0.581 GB, free: 14.32 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00242/0.4003, allocations: 1.539 MB / 0.5825 GB, free: 12.78 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0106/0.4109, allocations: 6.307 MB / 0.5887 GB, free: 6.457 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03272/0.4437, allocations: 30.18 MB / 0.6181 GB, free: 7.348 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004507/0.4482, allocations: 2.227 MB / 0.6203 GB, free: 4.973 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001464/0.4497, allocations: 1.147 MB / 0.6214 GB, free: 3.816 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000355/0.4501, allocations: 319.5 kB / 0.6217 GB, free: 3.449 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.4501, allocations: 42.94 kB / 0.6218 GB, free: 3.398 MB / 478.1 MB Notification: Performance of pre-optimization done (n=108): time 4.107e-06/0.4501, allocations: 0 / 0.6218 GB, free: 3.398 MB / 478.1 MB Notification: Performance of matching and sorting (n=132): time 0.03667/0.4868, allocations: 11.82 MB / 0.6333 GB, free: 7.422 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.752e-05/0.4869, allocations: 192.6 kB / 0.6335 GB, free: 7.191 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004976/0.4919, allocations: 3.599 MB / 0.637 GB, free: 3.59 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001949/0.4921, allocations: 45.7 kB / 0.6371 GB, free: 3.539 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001813/0.494, allocations: 2.534 MB / 0.6395 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006371/0.4946, allocations: 0.5363 MB / 0.6401 GB, free: 436 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001576/0.4962, allocations: 1.079 MB / 0.6411 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.229e-05/0.4963, allocations: 309.1 kB / 0.6414 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002644/0.4989, allocations: 1.748 MB / 0.6431 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00488/0.5038, allocations: 5.08 MB / 0.6481 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00811/0.512, allocations: 7.367 MB / 0.6553 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.083e-05/0.5121, allocations: 36 kB / 0.6553 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of matching and sorting (n=694) (initialization): time 0.0122/0.5243, allocations: 7.052 MB / 0.6622 GB, free: 6.391 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001026/0.5244, allocations: 64.92 kB / 0.6622 GB, free: 6.328 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001368/0.5246, allocations: 116 kB / 0.6624 GB, free: 6.215 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001632/0.5262, allocations: 0.6409 MB / 0.663 GB, free: 5.57 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003725/0.5299, allocations: 1.216 MB / 0.6642 GB, free: 4.352 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004933/0.5349, allocations: 4.06 MB / 0.6681 GB, free: 152 kB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003264/0.5382, allocations: 299.4 kB / 0.6684 GB, free: 15.85 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005775/0.5388, allocations: 332 kB / 0.6687 GB, free: 15.53 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.002663/0.5414, allocations: 1.693 MB / 0.6704 GB, free: 13.82 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000553/0.542, allocations: 296.2 kB / 0.6707 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004175/0.5462, allocations: 2.091 MB / 0.6727 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.562e-05/0.5462, allocations: 7.969 kB / 0.6727 GB, free: 11.42 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.5462, allocations: 4 kB / 0.6727 GB, free: 11.41 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006044/0.5468, allocations: 353.1 kB / 0.6731 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004479/0.5473, allocations: 23.94 kB / 0.6731 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001251/0.5485, allocations: 79.89 kB / 0.6732 GB, free: 10.95 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002014/0.5488, allocations: 72.48 kB / 0.6732 GB, free: 10.88 MB / 0.5294 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00458/0.5533, allocations: 2.67 MB / 0.6758 GB, free: 8.195 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004721/0.5581, allocations: 3.721 MB / 0.6795 GB, free: 4.445 MB / 0.5294 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001147/0.5592, allocations: 0.9033 MB / 0.6804 GB, free: 3.547 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004064/0.5633, allocations: 2.252 MB / 0.6826 GB, free: 1.305 MB / 0.5294 GB Notification: Performance of Backend: time 5.91e-07/0.5633, allocations: 4 kB / 0.6826 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007909/0.5712, allocations: 3.544 MB / 0.686 GB, free: 13.76 MB / 0.545 GB Notification: Performance of SimCode: time 0.01222/0.5835, allocations: 7.21 MB / 0.6931 GB, free: 6.5 MB / 0.545 GB Notification: Performance of Templates: time 0.06832/0.6518, allocations: 37.03 MB / 0.7292 GB, free: 1.531 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/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