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: translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") translateModel(ModelicaTest.MultiBody.Sensors.Distance2,tolerance=1e-10,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|distance1.distance|distance2.distance",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001249/0.001249, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001397/0.001397, 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.443/1.443, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.236/0.236, allocations: 46.1 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 79.88 kB / 481.3 MB, free: 4.059 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4305/0.4325, allocations: 62.44 MB / 0.531 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.Distance2): time 0.01226/0.4448, allocations: 9.055 MB / 0.5398 GB, free: 6.504 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009064/0.4539, allocations: 3.573 MB / 0.5433 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002519/0.4565, allocations: 48.56 kB / 0.5434 GB, free: 3.73 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004562/0.461, allocations: 1.91 MB / 0.5452 GB, free: 2.445 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005868/0.467, allocations: 1.567 MB / 0.5468 GB, free: 1.359 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002179/0.4692, allocations: 0.575 MB / 0.5473 GB, free: 0.957 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.006523/0.4757, allocations: 3.653 MB / 0.5509 GB, free: 13.3 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00364/0.4794, allocations: 2.427 MB / 0.5533 GB, free: 10.82 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002294/0.4817, allocations: 1.16 MB / 0.5544 GB, free: 9.652 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002776/0.4845, allocations: 1.639 MB / 0.556 GB, free: 8.008 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009426/0.4855, allocations: 240 kB / 0.5562 GB, free: 7.773 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002726/0.4882, allocations: 1.116 MB / 0.5573 GB, free: 6.656 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002009/0.4902, allocations: 1.52 MB / 0.5588 GB, free: 5.133 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003165/0.4934, allocations: 1.712 MB / 0.5605 GB, free: 3.41 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008348/0.5018, allocations: 5.684 MB / 0.566 GB, free: 13.71 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.5018, allocations: 0 / 0.566 GB, free: 13.71 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.5018, allocations: 0 / 0.566 GB, free: 13.71 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001816/0.502, allocations: 4 kB / 0.566 GB, free: 13.7 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.008291/0.5103, allocations: 3.83 MB / 0.5698 GB, free: 9.805 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.5104, allocations: 8.031 kB / 0.5698 GB, free: 9.797 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01613/0.5265, allocations: 2.352 MB / 0.5721 GB, free: 7.438 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006195/0.5327, allocations: 2.249 MB / 0.5743 GB, free: 5.137 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000167/0.5329, allocations: 172.8 kB / 0.5744 GB, free: 4.965 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007698/0.5337, allocations: 243.8 kB / 0.5747 GB, free: 4.727 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01209/0.5458, allocations: 7.783 MB / 0.5823 GB, free: 12.29 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.57e-05/0.546, allocations: 39.59 kB / 0.5823 GB, free: 12.25 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003277/0.5463, allocations: 119.9 kB / 0.5824 GB, free: 12.14 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002871/0.5492, allocations: 1.582 MB / 0.584 GB, free: 10.55 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01238/0.5616, allocations: 6.586 MB / 0.5904 GB, free: 3.957 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04052/0.6021, allocations: 31.62 MB / 0.6213 GB, free: 3.355 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005138/0.6073, allocations: 2.474 MB / 0.6237 GB, free: 0.7344 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001451/0.6088, allocations: 1.132 MB / 0.6248 GB, free: 15.59 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004846/0.6093, allocations: 331.2 kB / 0.6251 GB, free: 15.21 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.889e-05/0.6094, allocations: 50.56 kB / 0.6251 GB, free: 15.15 MB / 494.1 MB Notification: Performance of pre-optimization done (n=104): time 3.186e-06/0.6094, allocations: 0 / 0.6251 GB, free: 15.15 MB / 494.1 MB Notification: Performance of matching and sorting (n=118): time 0.02409/0.6335, allocations: 9.129 MB / 0.6341 GB, free: 5.91 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001577/0.6337, allocations: 196.4 kB / 0.6342 GB, free: 5.672 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005679/0.6394, allocations: 3.755 MB / 0.6379 GB, free: 1.922 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002202/0.6396, allocations: 37.7 kB / 0.638 GB, free: 1.879 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001941/0.6416, allocations: 2.688 MB / 0.6406 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005685/0.6422, allocations: 0.4902 MB / 0.6411 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001373/0.6435, allocations: 1.122 MB / 0.6422 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.6437, allocations: 309.1 kB / 0.6424 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002464/0.6461, allocations: 1.693 MB / 0.6441 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005123/0.6513, allocations: 5.255 MB / 0.6492 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009077/0.6604, allocations: 7.513 MB / 0.6566 GB, free: 11.18 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001121/0.6605, allocations: 36 kB / 0.6566 GB, free: 11.14 MB / 0.5138 GB Notification: Performance of matching and sorting (n=717) (initialization): time 0.01324/0.6738, allocations: 7.125 MB / 0.6636 GB, free: 4.004 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 9.108e-05/0.6739, allocations: 59.94 kB / 0.6636 GB, free: 3.945 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001247/0.674, allocations: 128.9 kB / 0.6637 GB, free: 3.82 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001563/0.6756, allocations: 0.6564 MB / 0.6644 GB, free: 3.16 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003646/0.6793, allocations: 1.255 MB / 0.6656 GB, free: 1.902 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004921/0.6842, allocations: 4.067 MB / 0.6696 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004181/0.6884, allocations: 299.4 kB / 0.6699 GB, free: 13.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006114/0.689, allocations: 352 kB / 0.6702 GB, free: 13.06 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 (682): * Single equations (assignments): 678 * 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 {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002659/0.6917, allocations: 1.782 MB / 0.6719 GB, free: 11.27 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005327/0.6922, allocations: 300.1 kB / 0.6722 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003301/0.6955, allocations: 1.848 MB / 0.674 GB, free: 9.105 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.092e-05/0.6956, allocations: 12 kB / 0.674 GB, free: 9.094 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.6956, allocations: 4 kB / 0.674 GB, free: 9.09 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.168e-05/0.6956, allocations: 7.969 kB / 0.6741 GB, free: 9.082 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01035/0.706, allocations: 5.2 MB / 0.6791 GB, free: 3.812 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.399e-05/0.706, allocations: 3.938 kB / 0.6791 GB, free: 3.809 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007874/0.7068, allocations: 159.8 kB / 0.6793 GB, free: 3.652 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001386/0.7082, allocations: 484.2 kB / 0.6798 GB, free: 3.176 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.315e-05/0.7083, allocations: 19.98 kB / 0.6798 GB, free: 3.156 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003816/0.7121, allocations: 3.438 MB / 0.6831 GB, free: 15.57 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.7121, allocations: 0 / 0.6831 GB, free: 15.57 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005571/0.7177, allocations: 3.736 MB / 0.6868 GB, free: 11.82 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/0.7188, allocations: 365 kB / 0.6871 GB, free: 11.44 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002677/0.7191, allocations: 23.98 kB / 0.6871 GB, free: 11.41 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009527/0.72, allocations: 63.92 kB / 0.6872 GB, free: 11.35 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001854/0.7202, allocations: 52.48 kB / 0.6873 GB, free: 11.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.378e-05/0.7203, allocations: 32 kB / 0.6873 GB, free: 11.27 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003736/0.724, allocations: 2.334 MB / 0.6896 GB, free: 8.949 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7241, allocations: 0 / 0.6896 GB, free: 8.949 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.004772/0.7288, allocations: 0.793 MB / 0.6903 GB, free: 8.156 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.0003626/0.7292, allocations: 155 kB / 0.6905 GB, free: 7.996 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.006643/0.7359, allocations: 4.031 MB / 0.6944 GB, free: 3.98 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.7359, allocations: 0 / 0.6944 GB, free: 3.98 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001511/0.7374, allocations: 0.9958 MB / 0.6954 GB, free: 2.977 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002229/0.7397, allocations: 364.3 kB / 0.6957 GB, free: 2.617 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01346/0.7531, allocations: 7.117 MB / 0.7027 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002817/0.756, allocations: 2.712 MB / 0.7053 GB, free: 8.715 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003729/0.7597, allocations: 1.707 MB / 0.707 GB, free: 7.004 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005249/0.7603, allocations: 215.3 kB / 0.7072 GB, free: 6.797 MB / 0.5606 GB Notification: Performance of SimCode: time 5.01e-07/0.7603, allocations: 0 / 0.7072 GB, free: 6.797 MB / 0.5606 GB Notification: Performance of Templates: time 0.4134/1.174, allocations: 25.39 MB / 0.732 GB, free: 176.6 MB / 0.5763 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/Distance2/Distance2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches