Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.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.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2") translateModel(ModelicaTest.MultiBody.Joints.Revolute2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|revolute1.phi|revolute2.phi|revolute2.w|revolute3.phi|revolute3.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001019/0.001019, allocations: 198.3 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.247/1.247, allocations: 227.2 MB / 245 MB, free: 5.871 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008043/0.0008042, allocations: 110.6 kB / 297.3 MB, free: 5.949 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2936/0.2936, allocations: 45.23 MB / 394.7 MB, free: 31.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002358/0.0002358, allocations: 8.219 kB / 468.4 MB, free: 7.699 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2969, allocations: 63.25 MB / 0.5192 GB, free: 37.62 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1347/0.4316, allocations: 107.8 MB / 0.6245 GB, free: 11.55 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000207/0.4319, allocations: 83.97 kB / 0.6246 GB, free: 11.47 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5486/0.9805, allocations: 133.8 MB / 0.7552 GB, free: 87.85 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.9806, allocations: 7.906 kB / 0.7552 GB, free: 87.84 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002303/0.9808, allocations: 120 kB / 0.7553 GB, free: 87.83 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2169 * Number of variables: 2169 Notification: Performance of Generate backend data structure: time 0.02149/1.002, allocations: 6.657 MB / 0.7618 GB, free: 81.43 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/1.002, allocations: 8.031 kB / 0.7619 GB, free: 81.42 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02518/1.028, allocations: 6.43 MB / 0.7681 GB, free: 74.97 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01739/1.045, allocations: 7.093 MB / 0.7751 GB, free: 67.82 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004151/1.045, allocations: 435.2 kB / 0.7755 GB, free: 67.39 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003448/1.049, allocations: 0.566 MB / 0.776 GB, free: 66.82 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03475/1.084, allocations: 15.24 MB / 0.7909 GB, free: 50.86 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004316/1.084, allocations: 63.39 kB / 0.791 GB, free: 50.8 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003178/1.087, allocations: 263.8 kB / 0.7912 GB, free: 50.54 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002498/1.09, allocations: 1.659 MB / 0.7928 GB, free: 48.88 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02835/1.118, allocations: 14.75 MB / 0.8073 GB, free: 34.11 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0827/1.201, allocations: 55.44 MB / 0.8614 GB, free: 9.488 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01823/1.219, allocations: 8.006 MB / 0.8692 GB, free: 1.25 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002137/1.221, allocations: 2.215 MB / 0.8714 GB, free: 14.64 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.664e-05/1.222, allocations: 65.11 kB / 0.8714 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=367): time 9.488e-06/1.222, allocations: 0 / 0.8714 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of matching and sorting (n=419): time 0.358/1.58, allocations: 39.45 MB / 0.91 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.501e-05/1.58, allocations: 115 kB / 0.9101 GB, free: 125 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006668/1.586, allocations: 3.806 MB / 0.9138 GB, free: 124.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001069/1.588, allocations: 83.23 kB / 0.9139 GB, free: 124.6 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002449/1.59, allocations: 3.833 MB / 0.9176 GB, free: 122.6 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001715/1.592, allocations: 1.489 MB / 0.9191 GB, free: 121.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004177/1.592, allocations: 149.4 kB / 0.9192 GB, free: 121.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004269/1.593, allocations: 0.638 MB / 0.9198 GB, free: 121.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005298/1.598, allocations: 3.88 MB / 0.9236 GB, free: 120.6 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006557/1.604, allocations: 7.627 MB / 0.9311 GB, free: 114.4 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006588/1.611, allocations: 5.409 MB / 0.9363 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.616e-05/1.611, allocations: 37.78 kB / 0.9364 GB, free: 112.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1011) (initialization): time 0.02313/1.634, allocations: 14.02 MB / 0.9501 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.586e-05/1.634, allocations: 60.19 kB / 0.9501 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001494/1.635, allocations: 128.6 kB / 0.9503 GB, free: 108.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006876/1.641, allocations: 2.639 MB / 0.9528 GB, free: 108.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007376/1.649, allocations: 1.926 MB / 0.9547 GB, free: 107.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01645/1.665, allocations: 14.07 MB / 0.9684 GB, free: 101.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007421/1.673, allocations: 483.7 kB / 0.9689 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001722/1.675, allocations: 423.6 kB / 0.9693 GB, free: 100.7 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 588 * Number of states: 0 () * Number of discrete variables: 50 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,axis.color[3],axis.color[2],axis.color[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 (914): * Single equations (assignments): 906 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006376/1.681, allocations: 2.879 MB / 0.9721 GB, free: 98.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001166/1.682, allocations: 466 kB / 0.9726 GB, free: 97.74 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01593/1.698, allocations: 10.42 MB / 0.9827 GB, free: 89.51 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.036e-05/1.698, allocations: 63.75 kB / 0.9828 GB, free: 89.45 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.585e-05/1.698, allocations: 12 kB / 0.9828 GB, free: 89.44 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-05/1.698, allocations: 17.95 kB / 0.9828 GB, free: 89.44 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0328/1.731, allocations: 20.97 MB / 1.003 GB, free: 72.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.95e-05/1.731, allocations: 12 kB / 1.003 GB, free: 72.39 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003208/1.734, allocations: 0.7878 MB / 1.004 GB, free: 71.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006296/1.741, allocations: 2.421 MB / 1.006 GB, free: 70.24 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003272/1.741, allocations: 80.97 kB / 1.007 GB, free: 70.17 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01342/1.754, allocations: 12.82 MB / 1.019 GB, free: 57.62 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.265e-06/1.754, allocations: 23.86 kB / 1.019 GB, free: 57.59 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01946/1.774, allocations: 16.21 MB / 1.035 GB, free: 40.68 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001661/1.776, allocations: 0.4913 MB / 1.035 GB, free: 40.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009169/1.776, allocations: 80.84 kB / 1.035 GB, free: 40.08 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002604/1.779, allocations: 289.1 kB / 1.036 GB, free: 39.8 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005944/1.78, allocations: 270 kB / 1.036 GB, free: 39.54 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002787/1.78, allocations: 109.2 kB / 1.036 GB, free: 39.43 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003553/1.784, allocations: 2.663 MB / 1.039 GB, free: 36.77 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.31e-07/1.784, allocations: 0 / 1.039 GB, free: 36.77 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.006135/1.79, allocations: 1.641 MB / 1.04 GB, free: 35.13 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.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 (334): * Single equations (assignments): 326 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005758/1.79, allocations: 241.7 kB / 1.041 GB, free: 34.9 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01205/1.802, allocations: 9.697 MB / 1.05 GB, free: 25.19 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-05/1.802, allocations: 4 kB / 1.05 GB, free: 25.18 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.005216/1.808, allocations: 4.252 MB / 1.054 GB, free: 20.91 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004093/1.812, allocations: 0.6379 MB / 1.055 GB, free: 20.29 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02504/1.837, allocations: 18.12 MB / 1.072 GB, free: 2.043 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005476/1.842, allocations: 4.674 MB / 1.077 GB, free: 13.35 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.006929/1.849, allocations: 2.726 MB / 1.08 GB, free: 10.63 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001409/1.851, allocations: 343.4 kB / 1.08 GB, free: 10.29 MB / 0.5417 GB Notification: Performance of SimCode: time 1.102e-06/1.851, allocations: 0 / 1.08 GB, free: 10.29 MB / 0.5417 GB Notification: Performance of Templates: time 0.3558/2.206, allocations: 64.95 MB / 1.143 GB, free: 123.1 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches