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/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.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/Complex trunk/package.mo): time 0.001078/0.001078, allocations: 197.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.305/1.305, allocations: 225.6 MB / 234.8 MB, free: 3.273 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008422/0.0008424, allocations: 101.9 kB / 286.7 MB, free: 5.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1854/0.1854, allocations: 45.14 MB / 383.7 MB, free: 276 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.879e-05/1.888e-05, allocations: 0 / 453.2 MB, free: 75.84 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1126, allocations: 63.25 MB / 0.5044 GB, free: 12.63 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3931/0.5058, allocations: 106 MB / 0.6078 GB, free: 12.89 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001853/0.506, allocations: 73.22 kB / 0.6079 GB, free: 12.86 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1948/0.7008, allocations: 75.2 MB / 0.6813 GB, free: 9.828 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.7008, allocations: 0 / 0.6813 GB, free: 9.828 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002068/0.7011, allocations: 68 kB / 0.6814 GB, free: 9.762 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1269 * Number of variables: 1269 Notification: Performance of Generate backend data structure: time 0.01099/0.7121, allocations: 3.383 MB / 0.6847 GB, free: 6.32 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.7121, allocations: 8.031 kB / 0.6847 GB, free: 6.312 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01727/0.7294, allocations: 4.281 MB / 0.6889 GB, free: 2.02 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01063/0.7401, allocations: 3.6 MB / 0.6924 GB, free: 14.36 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002293/0.7404, allocations: 112 kB / 0.6925 GB, free: 14.25 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001793/0.7422, allocations: 204 kB / 0.6927 GB, free: 14.05 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009226/0.7514, allocations: 4.815 MB / 0.6974 GB, free: 9.227 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01377/0.7652, allocations: 7.821 MB / 0.7051 GB, free: 444 kB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001641/0.7654, allocations: 51.47 kB / 0.7051 GB, free: 392 kB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007903/0.7662, allocations: 35.95 kB / 0.7051 GB, free: 356 kB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001147/0.7674, allocations: 0.8254 MB / 0.706 GB, free: 15.52 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03867/0.806, allocations: 39.37 MB / 0.7444 GB, free: 6.875 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002605/0.8087, allocations: 2.322 MB / 0.7467 GB, free: 4.348 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001094/0.8098, allocations: 1.009 MB / 0.7477 GB, free: 3.328 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003365/0.8101, allocations: 327.6 kB / 0.748 GB, free: 2.949 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.963e-05/0.8102, allocations: 54.95 kB / 0.748 GB, free: 2.887 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=107): time 2.945e-06/0.8102, allocations: 0 / 0.748 GB, free: 2.887 MB / 0.5261 GB Notification: Performance of matching and sorting (n=122): time 0.2683/1.078, allocations: 8.982 MB / 0.7568 GB, free: 143.5 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.204e-05/1.079, allocations: 191.3 kB / 0.757 GB, free: 143.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006071/1.085, allocations: 2.907 MB / 0.7598 GB, free: 142.9 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001816/1.085, allocations: 26.83 kB / 0.7598 GB, free: 142.9 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002446/1.087, allocations: 2.872 MB / 0.7626 GB, free: 141.4 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007727/1.088, allocations: 0.493 MB / 0.7631 GB, free: 141.1 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005089/1.089, allocations: 0 / 0.7631 GB, free: 141.1 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.000601/1.089, allocations: 0.5492 MB / 0.7637 GB, free: 140.8 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002559/1.092, allocations: 1.453 MB / 0.7651 GB, free: 140.8 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004429/1.096, allocations: 5.189 MB / 0.7702 GB, free: 135.9 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004756/1.101, allocations: 2.747 MB / 0.7728 GB, free: 135.9 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002353/1.101, allocations: 38.91 kB / 0.7729 GB, free: 135.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=740) (initialization): time 0.01148/1.113, allocations: 5.885 MB / 0.7786 GB, free: 135.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001634/1.113, allocations: 62.19 kB / 0.7787 GB, free: 135.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001773/1.113, allocations: 136.5 kB / 0.7788 GB, free: 135.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007595/1.114, allocations: 361.2 kB / 0.7792 GB, free: 135.4 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003845/1.118, allocations: 1.301 MB / 0.7804 GB, free: 135.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002555/1.12, allocations: 2.635 MB / 0.783 GB, free: 133.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004531/1.125, allocations: 185.8 kB / 0.7832 GB, free: 133.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009919/1.126, allocations: 365.4 kB / 0.7835 GB, free: 133.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 615 * Number of states: 0 () * Number of discrete variables: 35 (LessEqualThreshold1.y,distance2.arrow.arrowLine.twoHeadedArrow,distance2.arrow.headAtOrigin,distance2.arrowColor[3],distance2.arrowColor[2],distance2.arrowColor[1],distance1.arrow.arrowLine.twoHeadedArrow,distance1.arrow.headAtOrigin,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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (705): * Single equations (assignments): 701 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001339/1.127, allocations: 443.8 kB / 0.7839 GB, free: 133.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007318/1.128, allocations: 287.6 kB / 0.7842 GB, free: 133.4 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002499/1.131, allocations: 1.279 MB / 0.7855 GB, free: 133.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.257e-05/1.131, allocations: 19.97 kB / 0.7855 GB, free: 133.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.408e-05/1.131, allocations: 3.844 kB / 0.7855 GB, free: 133.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.681e-05/1.131, allocations: 7.547 kB / 0.7855 GB, free: 133.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008211/1.139, allocations: 4.191 MB / 0.7896 GB, free: 132.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/1.139, allocations: 3.938 kB / 0.7896 GB, free: 132.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008009/1.14, allocations: 179.4 kB / 0.7898 GB, free: 132.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000407/1.14, allocations: 145.5 kB / 0.7899 GB, free: 132.7 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.237e-05/1.14, allocations: 7.844 kB / 0.7899 GB, free: 132.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001692/1.142, allocations: 2.046 MB / 0.7919 GB, free: 131.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.85e-06/1.142, allocations: 7.828 kB / 0.7919 GB, free: 131.5 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003355/1.145, allocations: 3.125 MB / 0.795 GB, free: 130.4 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000805/1.146, allocations: 331.9 kB / 0.7953 GB, free: 130.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005678/1.147, allocations: 2.031 kB / 0.7953 GB, free: 130.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001148/1.148, allocations: 36.38 kB / 0.7953 GB, free: 130.1 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/1.148, allocations: 64.77 kB / 0.7954 GB, free: 130.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.204e-05/1.148, allocations: 40.67 kB / 0.7954 GB, free: 130.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.00275/1.151, allocations: 1.917 MB / 0.7973 GB, free: 129.4 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.1e-07/1.151, allocations: 0 / 0.7973 GB, free: 129.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004639/1.155, allocations: 0.6856 MB / 0.798 GB, free: 129.4 MB / 0.5261 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 88 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003561/1.156, allocations: 135.8 kB / 0.7981 GB, free: 129.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.004745/1.161, allocations: 3.528 MB / 0.8015 GB, free: 128 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/1.161, allocations: 2.406 kB / 0.8015 GB, free: 128 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009132/1.162, allocations: 0.8658 MB / 0.8024 GB, free: 127.7 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001905/1.163, allocations: 306.3 kB / 0.8027 GB, free: 127.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0103/1.174, allocations: 5.779 MB / 0.8083 GB, free: 125.4 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003084/1.177, allocations: 2.882 MB / 0.8111 GB, free: 124.2 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.003868/1.181, allocations: 1.767 MB / 0.8129 GB, free: 124.1 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004424/1.181, allocations: 200 kB / 0.8131 GB, free: 124.1 MB / 0.5261 GB Notification: Performance of SimCode: time 7.11e-07/1.181, allocations: 3.062 kB / 0.8131 GB, free: 124.1 MB / 0.5261 GB Notification: Performance of Templates: time 0.03979/1.221, allocations: 22.79 MB / 0.8353 GB, free: 116.3 MB / 0.5261 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","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.Distance2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches