Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Sensors.CutTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque1a.torque.3.|cutTorque2a.torque.3.|cutTorque1b.torque.3.|cutTorque2b.torque.3.|cutTorque1a.torque.2.|cutTorque2a.torque.2.|cutTorque1b.torque.2.|cutTorque2b.torque.2.|cutTorque1a.torque.1.|cutTorque2a.torque.1.|cutTorque1b.torque.1.|cutTorque2b.torque.1.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque") translateModel(ModelicaTest.MultiBody.Sensors.CutTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cutTorque1a.torque.3.|cutTorque2a.torque.3.|cutTorque1b.torque.3.|cutTorque2b.torque.3.|cutTorque1a.torque.2.|cutTorque2a.torque.2.|cutTorque1b.torque.2.|cutTorque2b.torque.2.|cutTorque1a.torque.1.|cutTorque2a.torque.1.|cutTorque1b.torque.1.|cutTorque2b.torque.1.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009765/0.0009763, allocations: 171.2 kB / 8.739 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 221.5 MB / 230.7 MB, free: 7.516 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009214/0.0009213, allocations: 95.47 kB / 281.6 MB, free: 5.258 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1905/0.1905, allocations: 44.16 MB / 376.5 MB, free: 3.027 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.97e-05/2.98e-05, allocations: 4.219 kB / 444.6 MB, free: 15.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1126, allocations: 61.92 MB / 0.4947 GB, free: 1.258 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4793/0.5919, allocations: 105.3 MB / 0.5975 GB, free: 7.238 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002629/0.5922, allocations: 79.95 kB / 0.5975 GB, free: 7.16 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5993/1.191, allocations: 147.9 MB / 0.742 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.073e-06/1.192, allocations: 224 / 0.742 GB, free: 103.2 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0004582/1.192, allocations: 150.2 kB / 0.7421 GB, free: 103.2 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2587 * Number of variables: 2587 Notification: Performance of Generate backend data structure: time 0.02184/1.214, allocations: 7.346 MB / 0.7493 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.231e-05/1.214, allocations: 13.92 kB / 0.7493 GB, free: 100.4 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01926/1.233, allocations: 3.527 MB / 0.7528 GB, free: 99.84 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02141/1.255, allocations: 8.766 MB / 0.7613 GB, free: 98.85 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004561/1.255, allocations: 248.8 kB / 0.7616 GB, free: 98.85 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003259/1.258, allocations: 446 kB / 0.762 GB, free: 98.84 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01767/1.276, allocations: 10.29 MB / 0.772 GB, free: 95.83 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0316/1.308, allocations: 15.22 MB / 0.7869 GB, free: 85.84 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005141/1.308, allocations: 86.73 kB / 0.787 GB, free: 85.76 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002977/1.311, allocations: 48 kB / 0.787 GB, free: 85.71 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002445/1.314, allocations: 1.62 MB / 0.7886 GB, free: 84.39 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08027/1.394, allocations: 76.23 MB / 0.863 GB, free: 8.023 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00342/1.398, allocations: 2.343 MB / 0.8653 GB, free: 5.539 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001537/1.399, allocations: 1.142 MB / 0.8664 GB, free: 4.387 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 9.095e-05/1.399, allocations: 32.11 kB / 0.8665 GB, free: 4.359 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/1.399, allocations: 51.88 kB / 0.8665 GB, free: 4.301 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=176): time 5.41e-06/1.399, allocations: 0 / 0.8665 GB, free: 4.301 MB / 0.4948 GB Notification: Performance of matching and sorting (n=188): time 0.0243/1.424, allocations: 10.03 MB / 0.8763 GB, free: 10.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.078e-05/1.424, allocations: 149.8 kB / 0.8765 GB, free: 10.02 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007612/1.431, allocations: 4.825 MB / 0.8812 GB, free: 5.188 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0003144/1.432, allocations: 29.7 kB / 0.8812 GB, free: 5.152 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004323/1.436, allocations: 5.366 MB / 0.8864 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001033/1.437, allocations: 0.7369 MB / 0.8872 GB, free: 14.97 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000422/1.438, allocations: 0 / 0.8872 GB, free: 14.97 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004881/1.438, allocations: 0.6571 MB / 0.8878 GB, free: 14.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002921/1.441, allocations: 1.957 MB / 0.8897 GB, free: 12.34 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008133/1.449, allocations: 7.374 MB / 0.8969 GB, free: 2.211 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3232/1.772, allocations: 3.746 MB / 0.9006 GB, free: 113.9 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002078/1.773, allocations: 56.75 kB / 0.9006 GB, free: 113.9 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1073) (initialization): time 0.01988/1.792, allocations: 8.086 MB / 0.9085 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000193/1.793, allocations: 90.62 kB / 0.9086 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003062/1.793, allocations: 196.8 kB / 0.9088 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003804/1.793, allocations: 284.3 kB / 0.9091 GB, free: 113.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007168/1.801, allocations: 2.018 MB / 0.911 GB, free: 113.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000423/1.801, allocations: 381.3 kB / 0.9114 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007884/1.809, allocations: 430.5 kB / 0.9118 GB, free: 113.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002114/1.811, allocations: 0.5089 MB / 0.9123 GB, free: 113.4 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 895 * Number of states: 0 () * Number of discrete variables: 68 (rotate2b.color[3],rotate2b.color[2],rotate2b.color[1],body2b.sphereColor[3],body2b.sphereColor[2],body2b.sphereColor[1],translate2b.color[3],translate2b.color[2],translate2b.color[1],cutTorque2b.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2b.torqueArrow.headAtOrigin,cutTorque2b.torqueColor[3],cutTorque2b.torqueColor[2],cutTorque2b.torqueColor[1],rotate1b.color[3],rotate1b.color[2],rotate1b.color[1],body1b.sphereColor[3],body1b.sphereColor[2],body1b.sphereColor[1],translate1b.color[3],translate1b.color[2],translate1b.color[1],cutTorque1b.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1b.torqueArrow.headAtOrigin,cutTorque1b.torqueColor[3],cutTorque1b.torqueColor[2],cutTorque1b.torqueColor[1],rotate2a.color[3],rotate2a.color[2],rotate2a.color[1],rotate1a.color[3],rotate1a.color[2],rotate1a.color[1],body2a.sphereColor[3],body2a.sphereColor[2],body2a.sphereColor[1],translate2a.color[3],translate2a.color[2],translate2a.color[1],cutTorque2a.torqueArrow.arrowLine.twoHeadedArrow,cutTorque2a.torqueArrow.headAtOrigin,cutTorque2a.torqueColor[3],cutTorque2a.torqueColor[2],cutTorque2a.torqueColor[1],body1a.sphereColor[3],body1a.sphereColor[2],body1a.sphereColor[1],translate1a.color[3],translate1a.color[2],translate1a.color[1],cutTorque1a.torqueArrow.arrowLine.twoHeadedArrow,cutTorque1a.torqueArrow.headAtOrigin,cutTorque1a.torqueColor[3],cutTorque1a.torqueColor[2],cutTorque1a.torqueColor[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 (1049): * Single equations (assignments): 1046 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001748/1.813, allocations: 0.5958 MB / 0.9129 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001034/1.814, allocations: 0.4964 MB / 0.9134 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001928/1.816, allocations: 0.5837 MB / 0.914 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.243e-05/1.816, allocations: 21.84 kB / 0.914 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.867e-05/1.816, allocations: 0.625 kB / 0.914 GB, free: 113.1 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.747e-05/1.816, allocations: 13.09 kB / 0.914 GB, free: 113 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02088/1.837, allocations: 12.18 MB / 0.9259 GB, free: 111 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.529e-05/1.837, allocations: 40.81 kB / 0.9259 GB, free: 111 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/1.838, allocations: 392.4 kB / 0.9263 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.02e-05/1.838, allocations: 61.81 kB / 0.9264 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001121/1.838, allocations: 57.33 kB / 0.9264 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.658e-05/1.838, allocations: 74.88 kB / 0.9265 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.651e-05/1.838, allocations: 60.72 kB / 0.9265 GB, free: 110.9 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005269/1.844, allocations: 10.11 MB / 0.9364 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001226/1.845, allocations: 0.5839 MB / 0.937 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005636/1.845, allocations: 59.84 kB / 0.937 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002026/1.847, allocations: 132.6 kB / 0.9372 GB, free: 100.8 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002253/1.848, allocations: 265.3 kB / 0.9374 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001257/1.848, allocations: 123.4 kB / 0.9375 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.005403/1.853, allocations: 3.24 MB / 0.9407 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.7e-07/1.853, allocations: 0 / 0.9407 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007627/1.861, allocations: 1.159 MB / 0.9418 GB, free: 100.5 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 179 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (212): * Single equations (assignments): 209 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005138/1.861, allocations: 216.6 kB / 0.942 GB, free: 100.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.006849/1.868, allocations: 4.587 MB / 0.9465 GB, free: 99.92 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.043e-05/1.868, allocations: 6.594 kB / 0.9465 GB, free: 99.92 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001714/1.87, allocations: 1.01 MB / 0.9475 GB, free: 99.81 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00454/1.875, allocations: 0.7128 MB / 0.9482 GB, free: 99.78 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02683/1.901, allocations: 12.28 MB / 0.9602 GB, free: 94.59 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009495/1.911, allocations: 5.37 MB / 0.9654 GB, free: 92.89 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.007086/1.918, allocations: 2.611 MB / 0.968 GB, free: 92.69 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008649/1.919, allocations: 331 kB / 0.9683 GB, free: 92.67 MB / 0.5261 GB Notification: Performance of SimCode: time 9.42e-07/1.919, allocations: 0 / 0.9683 GB, free: 92.67 MB / 0.5261 GB Notification: Performance of Templates: time 0.07201/1.991, allocations: 35.39 MB / 1.003 GB, free: 81.24 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Sensors/CutTorque/CutTorque.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Sensors.CutTorque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches