Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.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.0009254/0.0009254, allocations: 79.69 kB / 21.7 MB, free: 2.848 MB / 18.57 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.0009796/0.0009796, allocations: 169.7 kB / 24.99 MB, free: 8.219 MB / 18.57 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.003/1.003, allocations: 177 MB / 205.2 MB, free: 5.566 MB / 186.7 MB " [Timeout remaining time 179] 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.286/0.286, allocations: 34.86 MB / 296.6 MB, free: 0.5508 MB / 266.7 MB " [Timeout remaining time 180] 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.CutTorque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|cutTorque.torque.[0-9,]+.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2") translateModel(ModelicaTest.MultiBody.Sensors.CutTorque2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|cutTorque.torque.[0-9,]+.",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.054e-06/2.054e-06, allocations: 0 / 378.7 MB, free: 2.422 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.146e-05/3.351e-05, allocations: 6.312 kB / 378.7 MB, free: 2.414 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Sensors.CutTorque2): time 0.008789/0.008822, allocations: 9.193 MB / 387.9 MB, free: 9.172 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.005188/0.01401, allocations: 2.865 MB / 390.8 MB, free: 6.297 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007769/0.01479, allocations: 59.81 kB / 390.9 MB, free: 6.238 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002329/0.01712, allocations: 2.126 MB / 393 MB, free: 4.105 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00185/0.01897, allocations: 1.182 MB / 394.2 MB, free: 2.918 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005271/0.01949, allocations: 315.2 kB / 394.5 MB, free: 2.609 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001918/0.02141, allocations: 2.367 MB / 396.8 MB, free: 244 kB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001405/0.02282, allocations: 1.79 MB / 398.6 MB, free: 14.41 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009979/0.02381, allocations: 1.298 MB / 399.9 MB, free: 13.11 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001045/0.02486, allocations: 1.177 MB / 401.1 MB, free: 11.93 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003634/0.02522, allocations: 192 kB / 401.3 MB, free: 11.74 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007285/0.02595, allocations: 0.6396 MB / 401.9 MB, free: 11.1 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006587/0.02661, allocations: 1.188 MB / 403.1 MB, free: 9.906 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005304/0.02714, allocations: 0.7241 MB / 403.8 MB, free: 9.18 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002045/0.02919, allocations: 2.717 MB / 406.6 MB, free: 6.453 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.02919, allocations: 3.938 kB / 406.6 MB, free: 6.449 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.02919, allocations: 0 / 406.6 MB, free: 6.449 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.064e-05/0.02921, allocations: 0 / 406.6 MB, free: 6.449 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 975 * Number of variables: 975 Notification: Performance of Generate backend data structure: time 0.003358/0.03257, allocations: 3.138 MB / 409.7 MB, free: 3.262 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.03262, allocations: 8.031 kB / 409.7 MB, free: 3.254 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003025/0.03565, allocations: 1.879 MB / 411.6 MB, free: 1.371 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001283/0.03693, allocations: 1.227 MB / 412.8 MB, free: 108 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.734e-05/0.03702, allocations: 144.1 kB / 413 MB, free: 15.96 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002045/0.03722, allocations: 184.2 kB / 413.1 MB, free: 15.79 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00376/0.04098, allocations: 3.317 MB / 416.5 MB, free: 12.1 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.856e-05/0.04102, allocations: 11.88 kB / 416.5 MB, free: 12.09 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001602/0.04118, allocations: 87.91 kB / 416.6 MB, free: 12 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001225/0.0424, allocations: 1.348 MB / 417.9 MB, free: 10.65 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003115/0.04552, allocations: 1.8 MB / 419.7 MB, free: 8.828 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01513/0.06065, allocations: 20.62 MB / 440.3 MB, free: 3.555 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001934/0.06258, allocations: 0.8889 MB / 441.2 MB, free: 2.637 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003187/0.0629, allocations: 221.9 kB / 441.4 MB, free: 2.414 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1775/0.2404, allocations: 2.576 MB / 444 MB, free: 99.48 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.152e-05/0.2405, allocations: 40.42 kB / 444 MB, free: 99.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=78): time 3.356e-06/0.2405, allocations: 0 / 444 MB, free: 99.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=78): time 0.003787/0.2443, allocations: 1.288 MB / 445.3 MB, free: 99.4 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.249e-05/0.2443, allocations: 58.58 kB / 445.4 MB, free: 99.34 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001809/0.2461, allocations: 1.803 MB / 447.2 MB, free: 99.07 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/0.2461, allocations: 36.3 kB / 447.2 MB, free: 99.04 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007207/0.2468, allocations: 2.011 MB / 449.2 MB, free: 97.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001676/0.247, allocations: 335.4 kB / 449.6 MB, free: 97.6 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005804/0.2476, allocations: 0.6686 MB / 450.2 MB, free: 97.51 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.425e-05/0.2477, allocations: 0.5288 MB / 450.8 MB, free: 97.03 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005124/0.2482, allocations: 292.9 kB / 451 MB, free: 97.02 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001351/0.2495, allocations: 3.05 MB / 454.1 MB, free: 93.45 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002394/0.2519, allocations: 3.683 MB / 457.8 MB, free: 89.42 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.721e-05/0.252, allocations: 25.69 kB / 457.8 MB, free: 89.42 MB / 410.7 MB Notification: Performance of matching and sorting (n=396) (initialization): time 0.00306/0.255, allocations: 2.495 MB / 460.3 MB, free: 88.45 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.4e-05/0.2551, allocations: 35.62 kB / 460.3 MB, free: 88.45 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.406e-05/0.2551, allocations: 67.81 kB / 460.4 MB, free: 88.45 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.16e-05/0.2552, allocations: 90 kB / 460.5 MB, free: 88.45 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001396/0.2566, allocations: 0.6606 MB / 461.1 MB, free: 88.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.753e-05/0.2567, allocations: 127.2 kB / 461.3 MB, free: 88.33 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001393/0.2581, allocations: 413.6 kB / 461.7 MB, free: 88.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001927/0.2583, allocations: 192.6 kB / 461.9 MB, free: 88.05 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 301 * Number of states: 0 () * Number of discrete variables: 26 (cutTorque.torqueArrow.twoHeadedArrow,cutTorque.torqueArrow.headAtOrigin,worldTorque.color[3],worldTorque.color[2],worldTorque.color[1],frame_b.color_x[3],frame_b.color_x[2],frame_b.color_x[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],cutTorque.torqueColor[3],cutTorque.torqueColor[2],cutTorque.torqueColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (362): * Single equations (assignments): 357 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006771/0.2589, allocations: 413 kB / 462.3 MB, free: 87.71 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.2591, allocations: 168.4 kB / 462.4 MB, free: 87.62 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001817/0.2593, allocations: 155.6 kB / 462.6 MB, free: 87.52 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.719e-05/0.2593, allocations: 11.62 kB / 462.6 MB, free: 87.52 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.408e-06/0.2593, allocations: 3.188 kB / 462.6 MB, free: 87.52 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.2593, allocations: 3.281 kB / 462.6 MB, free: 87.52 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003549/0.2629, allocations: 2.864 MB / 465.5 MB, free: 85.98 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.255e-06/0.2629, allocations: 6.188 kB / 465.5 MB, free: 85.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002769/0.2631, allocations: 111.4 kB / 465.6 MB, free: 85.97 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.059e-05/0.2632, allocations: 9.688 kB / 465.6 MB, free: 85.97 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.561e-05/0.2632, allocations: 23.83 kB / 465.6 MB, free: 85.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.187e-06/0.2632, allocations: 13.66 kB / 465.6 MB, free: 85.96 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.051e-05/0.2632, allocations: 10.38 kB / 465.6 MB, free: 85.95 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000775/0.264, allocations: 0.9013 MB / 466.5 MB, free: 85.24 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001374/0.2641, allocations: 148.3 kB / 466.7 MB, free: 85.14 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.2643, allocations: 22 kB / 466.7 MB, free: 85.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003239/0.2646, allocations: 32.05 kB / 466.7 MB, free: 85.12 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.842e-05/0.2647, allocations: 53.42 kB / 466.8 MB, free: 85.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-05/0.2647, allocations: 33.81 kB / 466.8 MB, free: 85.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008193/0.2655, allocations: 0.7762 MB / 467.6 MB, free: 84.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2655, allocations: 0 / 467.6 MB, free: 84.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001903/0.2674, allocations: 0.7119 MB / 468.3 MB, free: 84.55 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 0 () * 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 (57): * Single equations (assignments): 54 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002554/0.2677, allocations: 146.3 kB / 468.5 MB, free: 84.44 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001517/0.2692, allocations: 1.255 MB / 469.7 MB, free: 84.03 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.2692, allocations: 3.156 kB / 469.7 MB, free: 84.03 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002538/0.2695, allocations: 207.1 kB / 469.9 MB, free: 83.96 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008439/0.2703, allocations: 197.6 kB / 470.1 MB, free: 83.87 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004602/0.2749, allocations: 4.393 MB / 474.5 MB, free: 81.46 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005579/0.2755, allocations: 0.7688 MB / 475.3 MB, free: 81.18 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001035/0.2765, allocations: 0.8022 MB / 476.1 MB, free: 81.11 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001607/0.2767, allocations: 109.6 kB / 476.2 MB, free: 81.1 MB / 410.7 MB Notification: Performance of SimCode: time 1.222e-06/0.2767, allocations: 4 kB / 476.2 MB, free: 81.09 MB / 410.7 MB Notification: Performance of Templates: time 0.02058/0.2972, allocations: 11.51 MB / 487.7 MB, free: 79.78 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Sensors.CutTorque2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/MultiBody/Sensors/CutTorque2/CutTorque2.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.7282083691097796]