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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001485/0.001485, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001771/0.001771, allocations: 213.6 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.511/1.511, allocations: 230.5 MB / 257.4 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2502/0.2502, allocations: 46.95 MB / 360.8 MB, free: 3.93 MB / 286.1 MB " [Timeout remaining time 179] 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=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") translateModel(ModelicaTest.MultiBody.Sensors.Distance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|Distance1.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002584/0.002584, allocations: 87.86 kB / 0.4966 GB, free: 7.062 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3518/0.3544, allocations: 66.08 MB / 0.5612 GB, free: 4.008 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.011/0.3654, allocations: 7.928 MB / 0.5689 GB, free: 12.04 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.007337/0.3727, allocations: 3.361 MB / 0.5722 GB, free: 8.672 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009391/0.3736, allocations: 55.75 kB / 0.5722 GB, free: 8.617 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003319/0.3769, allocations: 1.635 MB / 0.5738 GB, free: 6.977 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003743/0.3807, allocations: 1.58 MB / 0.5754 GB, free: 5.391 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001256/0.3819, allocations: 0.5575 MB / 0.5759 GB, free: 4.832 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004851/0.3868, allocations: 3.582 MB / 0.5794 GB, free: 1.246 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002388/0.3892, allocations: 1.813 MB / 0.5812 GB, free: 15.38 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002728/0.3919, allocations: 1.117 MB / 0.5823 GB, free: 14.26 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003017/0.3949, allocations: 1.592 MB / 0.5838 GB, free: 12.66 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005792/0.3955, allocations: 220 kB / 0.5841 GB, free: 12.45 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002183/0.3977, allocations: 0.9985 MB / 0.585 GB, free: 11.45 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001696/0.3994, allocations: 1.441 MB / 0.5864 GB, free: 10 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001571/0.401, allocations: 1.176 MB / 0.5876 GB, free: 8.816 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006499/0.4075, allocations: 5.428 MB / 0.5929 GB, free: 3.367 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.4075, allocations: 0 / 0.5929 GB, free: 3.367 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4075, allocations: 3.938 kB / 0.5929 GB, free: 3.363 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.421e-05/0.4075, allocations: 4 kB / 0.5929 GB, free: 3.359 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.007166/0.4147, allocations: 3.681 MB / 0.5965 GB, free: 15.62 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.4148, allocations: 8.031 kB / 0.5965 GB, free: 15.61 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01576/0.4305, allocations: 2.347 MB / 0.5988 GB, free: 13.26 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006386/0.4369, allocations: 2.127 MB / 0.6009 GB, free: 11.1 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000158/0.437, allocations: 160.5 kB / 0.601 GB, free: 10.94 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000632/0.4377, allocations: 223.9 kB / 0.6012 GB, free: 10.72 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01215/0.4498, allocations: 7.456 MB / 0.6085 GB, free: 2.625 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-05/0.4499, allocations: 43.64 kB / 0.6086 GB, free: 2.582 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002872/0.4502, allocations: 99.89 kB / 0.6086 GB, free: 2.484 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002712/0.4529, allocations: 1.554 MB / 0.6102 GB, free: 0.9258 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01194/0.4649, allocations: 6.291 MB / 0.6163 GB, free: 10.62 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03711/0.502, allocations: 28.39 MB / 0.644 GB, free: 13.33 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004459/0.5064, allocations: 1.704 MB / 0.6457 GB, free: 11.59 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001532/0.508, allocations: 1.043 MB / 0.6467 GB, free: 10.53 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003012/0.5083, allocations: 92.16 kB / 0.6468 GB, free: 10.44 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.065e-05/0.5083, allocations: 47 kB / 0.6469 GB, free: 10.39 MB / 494.1 MB Notification: Performance of pre-optimization done (n=108): time 4.058e-06/0.5083, allocations: 0 / 0.6469 GB, free: 10.39 MB / 494.1 MB Notification: Performance of matching and sorting (n=132): time 0.03935/0.5477, allocations: 11.78 MB / 0.6584 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002076/0.5479, allocations: 196.6 kB / 0.6585 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006969/0.5548, allocations: 3.367 MB / 0.6618 GB, free: 10.91 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003046/0.5551, allocations: 41.89 kB / 0.6619 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.002725/0.5579, allocations: 2.68 MB / 0.6645 GB, free: 8.156 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008878/0.5588, allocations: 0.5466 MB / 0.665 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002483/0.5612, allocations: 1.099 MB / 0.6661 GB, free: 6.496 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001744/0.5614, allocations: 305.1 kB / 0.6664 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003389/0.5648, allocations: 1.732 MB / 0.6681 GB, free: 4.457 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007851/0.5727, allocations: 5.142 MB / 0.6731 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01214/0.5848, allocations: 7.366 MB / 0.6803 GB, free: 4.586 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000177/0.585, allocations: 32 kB / 0.6803 GB, free: 4.555 MB / 0.5137 GB Notification: Performance of matching and sorting (n=694) (initialization): time 0.01643/0.6014, allocations: 7.028 MB / 0.6872 GB, free: 13.52 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001635/0.6016, allocations: 59.94 kB / 0.6872 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002554/0.6018, allocations: 116.9 kB / 0.6874 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001942/0.6038, allocations: 0.6447 MB / 0.688 GB, free: 12.7 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004227/0.608, allocations: 1.209 MB / 0.6892 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005974/0.614, allocations: 3.905 MB / 0.693 GB, free: 7.477 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003788/0.6178, allocations: 299.6 kB / 0.6933 GB, free: 7.184 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008845/0.6186, allocations: 328 kB / 0.6936 GB, free: 6.863 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.003889/0.6225, allocations: 1.704 MB / 0.6952 GB, free: 5.148 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007913/0.6233, allocations: 282.1 kB / 0.6955 GB, free: 4.871 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004559/0.6279, allocations: 2.053 MB / 0.6975 GB, free: 2.801 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.893e-05/0.6279, allocations: 12 kB / 0.6975 GB, free: 2.789 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-05/0.6279, allocations: 4 kB / 0.6975 GB, free: 2.785 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.731e-05/0.6279, allocations: 3.984 kB / 0.6975 GB, free: 2.781 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01379/0.6417, allocations: 4.781 MB / 0.7022 GB, free: 13.94 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-05/0.6418, allocations: 4 kB / 0.7022 GB, free: 13.94 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001606/0.6434, allocations: 203.7 kB / 0.7024 GB, free: 13.74 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002243/0.6456, allocations: 480.2 kB / 0.7029 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002345/0.6458, allocations: 24 kB / 0.7029 GB, free: 13.24 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007046/0.6529, allocations: 3.292 MB / 0.7061 GB, free: 9.848 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.6529, allocations: 4.031 kB / 0.7061 GB, free: 9.844 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01113/0.664, allocations: 4.147 MB / 0.7102 GB, free: 5.668 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001184/0.6652, allocations: 254 kB / 0.7104 GB, free: 5.418 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007727/0.666, allocations: 16 kB / 0.7104 GB, free: 5.402 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002242/0.6682, allocations: 83.83 kB / 0.7105 GB, free: 5.32 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003258/0.6686, allocations: 76.47 kB / 0.7106 GB, free: 5.246 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001675/0.6687, allocations: 35.98 kB / 0.7106 GB, free: 5.211 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005655/0.6744, allocations: 1.937 MB / 0.7125 GB, free: 3.273 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.3e-07/0.6744, allocations: 0 / 0.7125 GB, free: 3.273 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00757/0.6819, allocations: 0.7773 MB / 0.7132 GB, free: 2.496 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.0006898/0.6826, allocations: 139 kB / 0.7134 GB, free: 2.348 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01076/0.6934, allocations: 3.987 MB / 0.7173 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.6934, allocations: 4.125 kB / 0.7173 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.002692/0.6961, allocations: 1.064 MB / 0.7183 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003294/0.6994, allocations: 310.2 kB / 0.7186 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01756/0.7169, allocations: 7.191 MB / 0.7256 GB, free: 5.742 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004039/0.721, allocations: 2.084 MB / 0.7277 GB, free: 3.621 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.004556/0.7255, allocations: 1.649 MB / 0.7293 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007658/0.7263, allocations: 191.4 kB / 0.7295 GB, free: 1.777 MB / 0.5606 GB Notification: Performance of SimCode: time 1.273e-06/0.7263, allocations: 3.938 kB / 0.7295 GB, free: 1.773 MB / 0.5606 GB Notification: Performance of Templates: time 0.3526/1.079, allocations: 25.88 MB / 0.7547 GB, free: 140.9 MB / 0.5606 GB " [Timeout remaining time 659] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.141634063795209]