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/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.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/ModelicaServices trunk/package.mo): time 0.0007728/0.0007727, allocations: 97.91 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009244/0.0009245, allocations: 201.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 227.7 MB / 247.5 MB, free: 9.469 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1956/0.1956, allocations: 46.19 MB / 345.9 MB, free: 11.12 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000434/0.000434, allocations: 8 kB / 420.2 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.1572, allocations: 63.56 MB / 483.7 MB, free: 4.098 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.3246/0.4818, allocations: 61.51 MB / 0.5325 GB, free: 9.043 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02924/0.5111, allocations: 12.53 MB / 0.5447 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01251/0.5236, allocations: 273 kB / 0.545 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00217/0.5258, allocations: 0.6153 MB / 0.5456 GB, free: 1.617 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006169/0.532, allocations: 2.401 MB / 0.5479 GB, free: 300 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00219/0.5342, allocations: 0.9428 MB / 0.5488 GB, free: 15.68 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01151/0.5457, allocations: 10.36 MB / 0.5589 GB, free: 9.703 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008429/0.5542, allocations: 5.38 MB / 0.5642 GB, free: 4.266 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003228/0.5575, allocations: 1.731 MB / 0.5659 GB, free: 2.527 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004457/0.562, allocations: 3.119 MB / 0.5689 GB, free: 15.4 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000843/0.5628, allocations: 216 kB / 0.5691 GB, free: 15.19 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002487/0.5653, allocations: 1.127 MB / 0.5702 GB, free: 14.06 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00259/0.5679, allocations: 2.567 MB / 0.5727 GB, free: 11.48 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003574/0.5715, allocations: 2.893 MB / 0.5756 GB, free: 8.566 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00815/0.5797, allocations: 7.556 MB / 0.583 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.5797, allocations: 0 / 0.583 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.5797, allocations: 0 / 0.583 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002627/0.58, allocations: 0 / 0.583 GB, free: 0.9922 MB / 414.1 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.01333/0.5933, allocations: 5.941 MB / 0.5888 GB, free: 10.97 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.5934, allocations: 12.88 kB / 0.5888 GB, free: 10.96 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0158/0.6092, allocations: 3.935 MB / 0.5926 GB, free: 7.012 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008082/0.6173, allocations: 3.952 MB / 0.5965 GB, free: 3 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003434/0.6177, allocations: 316.4 kB / 0.5968 GB, free: 2.688 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001741/0.6195, allocations: 436 kB / 0.5972 GB, free: 2.262 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0292/0.6487, allocations: 15.63 MB / 0.6124 GB, free: 1.898 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002292/0.6489, allocations: 59.48 kB / 0.6125 GB, free: 1.84 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009957/0.6499, allocations: 195.8 kB / 0.6127 GB, free: 1.648 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006536/0.6565, allocations: 3.384 MB / 0.616 GB, free: 14.25 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02982/0.6863, allocations: 14.86 MB / 0.6305 GB, free: 15.38 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08006/0.7664, allocations: 55.23 MB / 0.6844 GB, free: 6.957 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01827/0.7847, allocations: 8.208 MB / 0.6925 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006737/0.7915, allocations: 4.833 MB / 0.6972 GB, free: 9.68 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002107/0.7937, allocations: 2.208 MB / 0.6993 GB, free: 7.082 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.674e-05/0.7937, allocations: 69.02 kB / 0.6994 GB, free: 7.004 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=367): time 6.883e-06/0.7938, allocations: 0 / 0.6994 GB, free: 7.004 MB / 0.5294 GB Notification: Performance of matching and sorting (n=419): time 0.3456/1.139, allocations: 40.15 MB / 0.7386 GB, free: 171.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.614e-05/1.139, allocations: 120.3 kB / 0.7387 GB, free: 171.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004956/1.144, allocations: 4.285 MB / 0.7429 GB, free: 168.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008425/1.145, allocations: 82.64 kB / 0.743 GB, free: 168.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001713/1.147, allocations: 3.788 MB / 0.7467 GB, free: 164.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001584/1.149, allocations: 1.491 MB / 0.7481 GB, free: 163.4 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008725/1.15, allocations: 0.6844 MB / 0.7488 GB, free: 162.7 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 6.077e-05/1.15, allocations: 305 kB / 0.7491 GB, free: 162.4 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004912/1.155, allocations: 4.076 MB / 0.7531 GB, free: 158.3 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006289/1.161, allocations: 7.84 MB / 0.7607 GB, free: 148.7 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01246/1.173, allocations: 12.89 MB / 0.7733 GB, free: 134 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.007e-05/1.173, allocations: 36 kB / 0.7734 GB, free: 134 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02451/1.198, allocations: 14.73 MB / 0.7877 GB, free: 119.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.357e-05/1.198, allocations: 63.94 kB / 0.7878 GB, free: 119.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001149/1.198, allocations: 128 kB / 0.7879 GB, free: 119 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007881/1.206, allocations: 2.928 MB / 0.7908 GB, free: 116.1 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006089/1.212, allocations: 1.809 MB / 0.7926 GB, free: 114.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01658/1.229, allocations: 14.87 MB / 0.8071 GB, free: 99.17 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006073/1.235, allocations: 0.4969 MB / 0.8076 GB, free: 98.67 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001082/1.236, allocations: 434.5 kB / 0.808 GB, free: 98.25 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * Number of states: 0 () * Number of discrete variables: 50 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,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.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 (942): * Single equations (assignments): 934 * Array equations: 6 * 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 {(6,32,69.4%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004488/1.241, allocations: 2.875 MB / 0.8108 GB, free: 95.37 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008635/1.241, allocations: 450.2 kB / 0.8112 GB, free: 94.92 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01783/1.259, allocations: 10.93 MB / 0.8219 GB, free: 83.93 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.72e-05/1.259, allocations: 61.08 kB / 0.8219 GB, free: 83.88 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.848e-05/1.259, allocations: 16 kB / 0.822 GB, free: 83.86 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.767e-05/1.259, allocations: 17.5 kB / 0.822 GB, free: 83.84 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03265/1.292, allocations: 21.7 MB / 0.8432 GB, free: 61.92 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.022e-05/1.292, allocations: 8 kB / 0.8432 GB, free: 61.91 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00314/1.295, allocations: 0.6825 MB / 0.8438 GB, free: 61.23 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007593/1.303, allocations: 2.733 MB / 0.8465 GB, free: 58.48 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008802/1.304, allocations: 87.75 kB / 0.8466 GB, free: 58.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01496/1.319, allocations: 13.59 MB / 0.8599 GB, free: 44.54 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.158e-06/1.319, allocations: 15.94 kB / 0.8599 GB, free: 44.53 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02135/1.34, allocations: 15.56 MB / 0.8751 GB, free: 28.7 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001116/1.341, allocations: 0.4952 MB / 0.8756 GB, free: 28.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009417/1.342, allocations: 75.98 kB / 0.8756 GB, free: 28.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002838/1.345, allocations: 322 kB / 0.8759 GB, free: 27.79 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006849/1.346, allocations: 262 kB / 0.8762 GB, free: 27.53 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002742/1.346, allocations: 116.4 kB / 0.8763 GB, free: 27.42 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003113/1.349, allocations: 2.681 MB / 0.8789 GB, free: 24.73 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/1.349, allocations: 0 / 0.8789 GB, free: 24.73 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005678/1.355, allocations: 1.659 MB / 0.8805 GB, free: 23.08 MB / 0.5294 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 (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 {(1,9,100.0%), (6,29,69.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006632/1.356, allocations: 232.6 kB / 0.8808 GB, free: 22.85 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01269/1.368, allocations: 10.04 MB / 0.8906 GB, free: 12.79 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.205e-05/1.368, allocations: 0 / 0.8906 GB, free: 12.79 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005501/1.374, allocations: 4.367 MB / 0.8948 GB, free: 8.395 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01042/1.384, allocations: 0.6808 MB / 0.8955 GB, free: 7.719 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2559/1.64, allocations: 19.58 MB / 0.9146 GB, free: 176.5 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007663/1.648, allocations: 4.523 MB / 0.919 GB, free: 175.6 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002431/1.65, allocations: 404.4 kB / 0.9194 GB, free: 175.6 MB / 0.545 GB Notification: Performance of SimCode: time 9.52e-07/1.65, allocations: 0 / 0.9194 GB, free: 175.6 MB / 0.545 GB Notification: Performance of Templates: time 0.1635/1.814, allocations: 140.1 MB / 1.056 GB, free: 56.64 MB / 0.545 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches