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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001401/0.001401, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 226.7 MB / 245.5 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001207/0.001207, allocations: 118.1 kB / 296.7 MB, free: 6.477 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3891/0.3891, allocations: 44.83 MB / 392.7 MB, free: 34.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 59.91 kB / 465.5 MB, free: 12.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3934/0.3945, allocations: 62.02 MB / 0.5151 GB, free: 37.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance): time 0.02533/0.4199, allocations: 33.52 MB / 0.5479 GB, free: 13.86 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01736/0.4373, allocations: 7.7 MB / 0.5554 GB, free: 8.75 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008089/0.4454, allocations: 138 kB / 0.5555 GB, free: 8.73 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003672/0.4491, allocations: 1.644 MB / 0.5571 GB, free: 7.984 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004271/0.4535, allocations: 1.47 MB / 0.5586 GB, free: 7.359 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001301/0.4548, allocations: 0.5082 MB / 0.5591 GB, free: 7.164 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.009265/0.4641, allocations: 5.165 MB / 0.5641 GB, free: 5.418 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004199/0.4683, allocations: 2.194 MB / 0.5663 GB, free: 4.145 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002444/0.4708, allocations: 0.9896 MB / 0.5672 GB, free: 3.621 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003324/0.4741, allocations: 1.676 MB / 0.5689 GB, free: 2.434 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00104/0.4752, allocations: 159.9 kB / 0.569 GB, free: 2.277 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003144/0.4784, allocations: 1.1 MB / 0.5701 GB, free: 1.176 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001947/0.4804, allocations: 1.41 MB / 0.5715 GB, free: 15.76 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002141/0.4825, allocations: 1.611 MB / 0.573 GB, free: 14.14 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005874/0.4884, allocations: 5.284 MB / 0.5782 GB, free: 8.84 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.63e-05/0.4884, allocations: 4 kB / 0.5782 GB, free: 8.836 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.4884, allocations: 0 / 0.5782 GB, free: 8.836 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.393e-05/0.4885, allocations: 0 / 0.5782 GB, free: 8.836 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1170 * Number of variables: 1170 Notification: Performance of Generate backend data structure: time 0.007102/0.4956, allocations: 3.743 MB / 0.5819 GB, free: 5.023 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.4957, allocations: 12.03 kB / 0.5819 GB, free: 5.012 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01553/0.5112, allocations: 2.356 MB / 0.5842 GB, free: 2.648 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005957/0.5172, allocations: 2.178 MB / 0.5863 GB, free: 428 kB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001415/0.5174, allocations: 164.5 kB / 0.5865 GB, free: 260 kB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000493/0.5179, allocations: 227.9 kB / 0.5867 GB, free: 32 kB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01103/0.5289, allocations: 7.587 MB / 0.5941 GB, free: 7.824 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.385e-05/0.5291, allocations: 35.66 kB / 0.5941 GB, free: 7.789 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002867/0.5294, allocations: 111.9 kB / 0.5942 GB, free: 7.68 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002588/0.532, allocations: 1.601 MB / 0.5958 GB, free: 6.078 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0114/0.5434, allocations: 6.464 MB / 0.6021 GB, free: 15.6 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0423/0.5857, allocations: 30.67 MB / 0.632 GB, free: 0 / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004663/0.5905, allocations: 2.239 MB / 0.6342 GB, free: 13.61 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001543/0.592, allocations: 1.133 MB / 0.6353 GB, free: 12.46 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004351/0.5925, allocations: 319.6 kB / 0.6356 GB, free: 12.1 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.488e-05/0.5926, allocations: 54.88 kB / 0.6357 GB, free: 12.04 MB / 458.7 MB Notification: Performance of pre-optimization done (n=108): time 4.438e-06/0.5926, allocations: 0 / 0.6357 GB, free: 12.04 MB / 458.7 MB Notification: Performance of matching and sorting (n=132): time 0.03764/0.6302, allocations: 11.86 MB / 0.6473 GB, free: 24 kB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001387/0.6304, allocations: 200.5 kB / 0.6475 GB, free: 15.79 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006274/0.6367, allocations: 3.66 MB / 0.651 GB, free: 12.12 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002575/0.637, allocations: 41.7 kB / 0.6511 GB, free: 12.08 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002158/0.6392, allocations: 2.588 MB / 0.6536 GB, free: 9.453 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008658/0.64, allocations: 0.5325 MB / 0.6541 GB, free: 8.914 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001828/0.6419, allocations: 1.079 MB / 0.6552 GB, free: 7.824 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.642, allocations: 305.1 kB / 0.6555 GB, free: 7.523 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002712/0.6447, allocations: 1.74 MB / 0.6572 GB, free: 5.777 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005301/0.65, allocations: 5.111 MB / 0.6622 GB, free: 14.97 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008754/0.6588, allocations: 7.403 MB / 0.6694 GB, free: 5.902 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001207/0.659, allocations: 35.98 kB / 0.6694 GB, free: 5.867 MB / 490.7 MB Notification: Performance of matching and sorting (n=697) (initialization): time 0.01438/0.6734, allocations: 7.084 MB / 0.6764 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001602/0.6736, allocations: 56 kB / 0.6764 GB, free: 14.72 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002145/0.6738, allocations: 116 kB / 0.6765 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001888/0.6757, allocations: 0.6487 MB / 0.6771 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004443/0.6802, allocations: 1.224 MB / 0.6783 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005262/0.6855, allocations: 3.768 MB / 0.682 GB, free: 8.824 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003804/0.6894, allocations: 299.5 kB / 0.6823 GB, free: 8.531 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009566/0.6903, allocations: 336 kB / 0.6826 GB, free: 8.203 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 542 * Number of states: 0 () * Number of discrete variables: 29 (Distance1.arrow.arrowLine.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 (662): * Single equations (assignments): 658 * 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.003372/0.6937, allocations: 1.728 MB / 0.6843 GB, free: 6.465 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007059/0.6944, allocations: 304 kB / 0.6846 GB, free: 6.164 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004285/0.6987, allocations: 2.088 MB / 0.6866 GB, free: 4.055 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.589e-05/0.6988, allocations: 16 kB / 0.6867 GB, free: 4.039 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.778e-05/0.6988, allocations: 8 kB / 0.6867 GB, free: 4.031 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.521e-05/0.6988, allocations: 8.297 kB / 0.6867 GB, free: 4.023 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.269/0.9679, allocations: 5.733 MB / 0.6923 GB, free: 141.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.497e-05/0.9679, allocations: 1.625 kB / 0.6923 GB, free: 141.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/0.969, allocations: 195.2 kB / 0.6925 GB, free: 141.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001294/0.9703, allocations: 485.7 kB / 0.6929 GB, free: 141.7 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/0.9704, allocations: 26.59 kB / 0.693 GB, free: 141.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002932/0.9734, allocations: 3.214 MB / 0.6961 GB, free: 139.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.9734, allocations: 2.938 kB / 0.6961 GB, free: 139.8 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02715/1.001, allocations: 18.63 MB / 0.7143 GB, free: 132.1 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00054/1.001, allocations: 365.9 kB / 0.7146 GB, free: 131.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002835/1.001, allocations: 18.09 kB / 0.7146 GB, free: 131.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/1.002, allocations: 78.19 kB / 0.7147 GB, free: 131.8 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002193/1.003, allocations: 70.89 kB / 0.7148 GB, free: 131.8 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.53e-05/1.003, allocations: 36.64 kB / 0.7148 GB, free: 131.7 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003809/1.007, allocations: 2.29 MB / 0.7171 GB, free: 131 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.61e-07/1.007, allocations: 0.5625 kB / 0.7171 GB, free: 131 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004643/1.011, allocations: 1.046 MB / 0.7181 GB, free: 130.9 MB / 0.4948 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.0003597/1.012, allocations: 155.7 kB / 0.7182 GB, free: 130.8 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.006956/1.019, allocations: 4.131 MB / 0.7223 GB, free: 129.3 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/1.019, allocations: 0 / 0.7223 GB, free: 129.3 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001604/1.02, allocations: 1.136 MB / 0.7234 GB, free: 128.9 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002292/1.023, allocations: 346.3 kB / 0.7237 GB, free: 128.7 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01231/1.035, allocations: 9.742 MB / 0.7332 GB, free: 123.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002416/1.037, allocations: 2.72 MB / 0.7359 GB, free: 122.3 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.003869/1.041, allocations: 1.687 MB / 0.7375 GB, free: 122.2 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005431/1.042, allocations: 208.1 kB / 0.7377 GB, free: 122.2 MB / 0.4948 GB Notification: Performance of SimCode: time 1.573e-06/1.042, allocations: 0 / 0.7377 GB, free: 122.2 MB / 0.4948 GB Notification: Performance of Templates: time 0.04814/1.09, allocations: 32.24 MB / 0.7692 GB, free: 92.46 MB / 0.4948 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance/Distance.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches