Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001031/0.001031, allocations: 203.4 kB / 16.79 MB, free: 4.914 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.257/1.257, allocations: 226.5 MB / 244.1 MB, free: 8.23 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008176/0.0008175, allocations: 106.4 kB / 296.1 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3346/0.3346, allocations: 44.81 MB / 393 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000263/0.000263, allocations: 8 kB / 465.9 MB, free: 12.71 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2677, allocations: 62.95 MB / 0.5165 GB, free: 36.96 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1197/0.3874, allocations: 107.8 MB / 0.6217 GB, free: 13.55 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002195/0.3877, allocations: 83.95 kB / 0.6218 GB, free: 13.47 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5106/0.8983, allocations: 129.3 MB / 0.7481 GB, free: 90.62 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.8984, allocations: 0 / 0.7481 GB, free: 90.62 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0002837/0.8986, allocations: 118 kB / 0.7482 GB, free: 90.61 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.01829/0.9169, allocations: 6.383 MB / 0.7544 GB, free: 86.36 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.917, allocations: 10.62 kB / 0.7544 GB, free: 86.36 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02198/0.939, allocations: 5.521 MB / 0.7598 GB, free: 83.64 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01561/0.9546, allocations: 6.219 MB / 0.7659 GB, free: 77.43 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005352/0.9552, allocations: 435.5 kB / 0.7663 GB, free: 77 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00374/0.959, allocations: 0.5664 MB / 0.7669 GB, free: 76.44 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03176/0.9908, allocations: 15.11 MB / 0.7816 GB, free: 60.61 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004382/0.9913, allocations: 55.62 kB / 0.7817 GB, free: 60.55 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002597/0.9939, allocations: 263.8 kB / 0.7819 GB, free: 60.29 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002345/0.9962, allocations: 1.652 MB / 0.7835 GB, free: 58.64 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02599/1.022, allocations: 14.58 MB / 0.7978 GB, free: 44.04 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07568/1.098, allocations: 55.34 MB / 0.8518 GB, free: 3.512 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01796/1.116, allocations: 7.953 MB / 0.8596 GB, free: 11.33 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006491/1.122, allocations: 4.73 MB / 0.8642 GB, free: 6.59 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002067/1.125, allocations: 2.212 MB / 0.8664 GB, free: 3.988 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.78e-05/1.125, allocations: 69.08 kB / 0.8664 GB, free: 3.91 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=367): time 9.177e-06/1.125, allocations: 0 / 0.8664 GB, free: 3.91 MB / 0.5105 GB Notification: Performance of matching and sorting (n=419): time 0.3164/1.441, allocations: 38.54 MB / 0.9041 GB, free: 129.2 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.797e-05/1.441, allocations: 115.8 kB / 0.9042 GB, free: 129.1 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007431/1.449, allocations: 4.285 MB / 0.9084 GB, free: 128.7 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.00114/1.45, allocations: 82.77 kB / 0.9084 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.002586/1.452, allocations: 3.832 MB / 0.9122 GB, free: 126.6 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.002092/1.455, allocations: 1.486 MB / 0.9136 GB, free: 125.7 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006654/1.455, allocations: 150.5 kB / 0.9138 GB, free: 125.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0004404/1.456, allocations: 0.6382 MB / 0.9144 GB, free: 125.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006122/1.462, allocations: 3.882 MB / 0.9182 GB, free: 124.3 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01016/1.472, allocations: 7.654 MB / 0.9257 GB, free: 118.1 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01409/1.486, allocations: 12.57 MB / 0.9379 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001295/1.486, allocations: 35.75 kB / 0.938 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1011) (initialization): time 0.026/1.512, allocations: 14.03 MB / 0.9517 GB, free: 105.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001109/1.512, allocations: 59 kB / 0.9517 GB, free: 105.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001505/1.513, allocations: 127.6 kB / 0.9519 GB, free: 105.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006771/1.519, allocations: 2.615 MB / 0.9544 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006887/1.526, allocations: 1.927 MB / 0.9563 GB, free: 105.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01587/1.542, allocations: 13.63 MB / 0.9696 GB, free: 98.74 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006258/1.548, allocations: 481.4 kB / 0.9701 GB, free: 98.62 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001596/1.55, allocations: 428 kB / 0.9705 GB, free: 98.56 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.006494/1.557, allocations: 2.866 MB / 0.9733 GB, free: 97.02 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001719/1.558, allocations: 468.5 kB / 0.9737 GB, free: 96.55 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01713/1.576, allocations: 10.42 MB / 0.9839 GB, free: 88.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.416e-05/1.576, allocations: 63.58 kB / 0.984 GB, free: 88.25 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.015e-05/1.576, allocations: 19.94 kB / 0.984 GB, free: 88.23 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-05/1.576, allocations: 19.55 kB / 0.984 GB, free: 88.23 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03912/1.615, allocations: 20.97 MB / 1.004 GB, free: 71.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.067e-05/1.615, allocations: 16.03 kB / 1.004 GB, free: 71.14 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005647/1.621, allocations: 0.7854 MB / 1.005 GB, free: 70.55 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01208/1.633, allocations: 2.404 MB / 1.008 GB, free: 69 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001235/1.634, allocations: 82.77 kB / 1.008 GB, free: 68.92 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02165/1.656, allocations: 12.4 MB / 1.02 GB, free: 57.46 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.688e-06/1.656, allocations: 15.94 kB / 1.02 GB, free: 57.45 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02307/1.679, allocations: 14.86 MB / 1.034 GB, free: 42.31 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001381/1.68, allocations: 0.4989 MB / 1.035 GB, free: 41.79 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00151/1.682, allocations: 77.33 kB / 1.035 GB, free: 41.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003239/1.685, allocations: 296.7 kB / 1.035 GB, free: 41.43 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008389/1.686, allocations: 266 kB / 1.035 GB, free: 41.16 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003133/1.686, allocations: 113.7 kB / 1.036 GB, free: 41.05 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003995/1.69, allocations: 2.659 MB / 1.038 GB, free: 38.39 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.51e-07/1.69, allocations: 0 / 1.038 GB, free: 38.39 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007776/1.698, allocations: 1.636 MB / 1.04 GB, free: 36.77 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.001045/1.699, allocations: 253.8 kB / 1.04 GB, free: 36.52 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01451/1.714, allocations: 9.693 MB / 1.049 GB, free: 26.81 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.647e-05/1.714, allocations: 0 / 1.049 GB, free: 26.81 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.00668/1.72, allocations: 4.25 MB / 1.054 GB, free: 22.54 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0115/1.732, allocations: 0.6919 MB / 1.054 GB, free: 21.87 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02505/1.757, allocations: 18.84 MB / 1.073 GB, free: 2.883 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005621/1.763, allocations: 4.556 MB / 1.077 GB, free: 14.3 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002286/1.765, allocations: 399.3 kB / 1.077 GB, free: 13.91 MB / 0.5417 GB Notification: Performance of SimCode: time 7.41e-07/1.765, allocations: 0 / 1.077 GB, free: 13.91 MB / 0.5417 GB Notification: Performance of Templates: time 0.4146/2.18, allocations: 140.2 MB / 1.214 GB, free: 57.93 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches