Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.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.Forces.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque") translateModel(ModelicaTest.MultiBody.Forces.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008898/0.0008898, allocations: 97.05 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001143/0.001143, allocations: 201.8 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.8 MB / 246.8 MB, free: 11.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2004/0.2004, allocations: 46.19 MB / 345.2 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002577/0.0002577, allocations: 15.92 kB / 419.5 MB, free: 19.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1047, allocations: 63.55 MB / 483.1 MB, free: 4.168 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque): time 0.275/0.3798, allocations: 79.48 MB / 0.5494 GB, free: 13.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03452/0.4143, allocations: 15.58 MB / 0.5646 GB, free: 1.949 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01439/0.4288, allocations: 357.8 kB / 0.5649 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002149/0.4309, allocations: 0.5929 MB / 0.5655 GB, free: 1.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006983/0.4379, allocations: 2.345 MB / 0.5678 GB, free: 15.77 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002161/0.4401, allocations: 0.8756 MB / 0.5687 GB, free: 15.04 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01358/0.4537, allocations: 9.995 MB / 0.5784 GB, free: 5.035 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01193/0.4657, allocations: 8.059 MB / 0.5863 GB, free: 12.87 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003025/0.4688, allocations: 1.727 MB / 0.588 GB, free: 11.13 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003837/0.4726, allocations: 2.955 MB / 0.5909 GB, free: 8.168 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006766/0.4733, allocations: 208 kB / 0.5911 GB, free: 7.965 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002254/0.4756, allocations: 1.154 MB / 0.5922 GB, free: 6.809 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002481/0.4781, allocations: 2.633 MB / 0.5948 GB, free: 4.168 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003049/0.4811, allocations: 2.947 MB / 0.5976 GB, free: 1.195 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00925/0.4904, allocations: 9.615 MB / 0.607 GB, free: 7.547 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.4904, allocations: 0 / 0.607 GB, free: 7.547 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4904, allocations: 0 / 0.607 GB, free: 7.547 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002344/0.4907, allocations: 4 kB / 0.607 GB, free: 7.543 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2161 * Number of variables: 2161 Notification: Performance of Generate backend data structure: time 0.0129/0.5036, allocations: 6.083 MB / 0.613 GB, free: 1.379 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.5036, allocations: 12.88 kB / 0.613 GB, free: 1.367 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.013/0.5167, allocations: 2.777 MB / 0.6157 GB, free: 14.57 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008999/0.5257, allocations: 4.183 MB / 0.6198 GB, free: 10.31 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002986/0.526, allocations: 357.8 kB / 0.6201 GB, free: 9.957 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001325/0.5274, allocations: 487.5 kB / 0.6206 GB, free: 9.48 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02762/0.555, allocations: 14.26 MB / 0.6345 GB, free: 10.2 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000183/0.5552, allocations: 67.45 kB / 0.6346 GB, free: 10.13 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005718/0.5558, allocations: 227.8 kB / 0.6348 GB, free: 9.91 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004803/0.5606, allocations: 2.695 MB / 0.6374 GB, free: 7.211 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02403/0.5846, allocations: 12.06 MB / 0.6492 GB, free: 11.12 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07593/0.6606, allocations: 57.6 MB / 0.7055 GB, free: 52 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2412/0.9019, allocations: 6.284 MB / 0.7116 GB, free: 179.8 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004748/0.9067, allocations: 3.709 MB / 0.7152 GB, free: 178.3 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01347/0.9202, allocations: 8.526 MB / 0.7235 GB, free: 174.5 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.557e-05/0.9203, allocations: 61.97 kB / 0.7236 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=236): time 5.611e-06/0.9203, allocations: 0 / 0.7236 GB, free: 174.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=278): time 0.07139/0.9917, allocations: 30.28 MB / 0.7532 GB, free: 156.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.794e-05/0.9918, allocations: 239.6 kB / 0.7534 GB, free: 156 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009345/1.001, allocations: 6.685 MB / 0.7599 GB, free: 149.3 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000791/1.002, allocations: 73.23 kB / 0.76 GB, free: 149.2 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002118/1.004, allocations: 4.414 MB / 0.7643 GB, free: 144.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001139/1.005, allocations: 1.059 MB / 0.7653 GB, free: 143.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008077/1.006, allocations: 0.7596 MB / 0.7661 GB, free: 143 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.944e-05/1.006, allocations: 305.1 kB / 0.7664 GB, free: 142.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004235/1.01, allocations: 3.574 MB / 0.7699 GB, free: 139.1 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006066/1.016, allocations: 8.637 MB / 0.7783 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01192/1.028, allocations: 13.14 MB / 0.7911 GB, free: 112.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001383/1.029, allocations: 48 kB / 0.7912 GB, free: 112.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1140) (initialization): time 0.0223/1.051, allocations: 14 MB / 0.8049 GB, free: 98.42 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001005/1.051, allocations: 84.25 kB / 0.8049 GB, free: 98.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000168/1.051, allocations: 176 kB / 0.8051 GB, free: 98.17 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005276/1.056, allocations: 2.281 MB / 0.8073 GB, free: 95.88 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006777/1.063, allocations: 2.004 MB / 0.8093 GB, free: 93.87 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01431/1.078, allocations: 13.43 MB / 0.8224 GB, free: 80.19 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006652/1.084, allocations: 0.5004 MB / 0.8229 GB, free: 79.69 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001199/1.086, allocations: 0.5167 MB / 0.8234 GB, free: 79.17 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 808 * Number of states: 0 () * Number of discrete variables: 67 (torque2.torqueArrow.twoHeadedArrow,torque2.torqueArrow.headAtOrigin,torque1.torqueArrow.twoHeadedArrow,torque1.torqueArrow.headAtOrigin,fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (1058): * Single equations (assignments): 1051 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,23,100.0%), (2,23,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004615/1.09, allocations: 2.99 MB / 0.8263 GB, free: 76.17 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001041/1.091, allocations: 0.5514 MB / 0.8269 GB, free: 75.61 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01129/1.103, allocations: 7.083 MB / 0.8338 GB, free: 68.51 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.904e-05/1.103, allocations: 32.47 kB / 0.8338 GB, free: 68.48 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.456e-05/1.103, allocations: 8 kB / 0.8338 GB, free: 68.47 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.224e-05/1.103, allocations: 19.94 kB / 0.8338 GB, free: 68.45 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02259/1.125, allocations: 14.9 MB / 0.8484 GB, free: 53.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.051e-05/1.125, allocations: 4 kB / 0.8484 GB, free: 53.49 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002237/1.128, allocations: 459.3 kB / 0.8488 GB, free: 53.04 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004887/1.132, allocations: 2.034 MB / 0.8508 GB, free: 51 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003725/1.133, allocations: 51.98 kB / 0.8509 GB, free: 50.95 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01373/1.147, allocations: 12.69 MB / 0.8632 GB, free: 38 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/1.147, allocations: 11.94 kB / 0.8633 GB, free: 37.99 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01477/1.161, allocations: 11.22 MB / 0.8742 GB, free: 26.62 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00165/1.163, allocations: 0.6381 MB / 0.8748 GB, free: 25.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008287/1.164, allocations: 56.7 kB / 0.8749 GB, free: 25.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002339/1.166, allocations: 191.7 kB / 0.8751 GB, free: 25.71 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005/1.167, allocations: 174.2 kB / 0.8752 GB, free: 25.55 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001958/1.167, allocations: 76.69 kB / 0.8753 GB, free: 25.47 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.006923/1.174, allocations: 4.288 MB / 0.8795 GB, free: 21.2 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.32e-07/1.174, allocations: 0 / 0.8795 GB, free: 21.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006678/1.181, allocations: 1.58 MB / 0.881 GB, free: 19.62 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.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 (220): * Single equations (assignments): 215 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(4,18,75.0%), (4,18,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004762/1.181, allocations: 195.3 kB / 0.8812 GB, free: 19.43 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01028/1.191, allocations: 8.664 MB / 0.8897 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/1.191, allocations: 4 kB / 0.8897 GB, free: 10.77 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004711/1.196, allocations: 3.413 MB / 0.893 GB, free: 7.328 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007741/1.204, allocations: 0.6833 MB / 0.8937 GB, free: 6.648 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2585/1.462, allocations: 17.84 MB / 0.9111 GB, free: 172.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007535/1.47, allocations: 4.539 MB / 0.9156 GB, free: 171.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008288/1.478, allocations: 2.766 MB / 0.9183 GB, free: 171.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001784/1.48, allocations: 385 kB / 0.9186 GB, free: 171.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.573e-06/1.48, allocations: 1.031 kB / 0.9186 GB, free: 171.9 MB / 0.545 GB Notification: Performance of Templates: time 0.1026/1.583, allocations: 63.41 MB / 0.9805 GB, free: 127.7 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Torque/Torque.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Torque.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches