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.001014/0.001014, allocations: 117.7 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001217/0.001217, allocations: 204.6 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.603/1.603, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2486/0.2486, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001802/0.001802, allocations: 79.86 kB / 481.3 MB, free: 4.059 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4219/0.4237, allocations: 62.43 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02126/0.445, allocations: 18.15 MB / 0.5487 GB, free: 15.36 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01504/0.4601, allocations: 5.295 MB / 0.5539 GB, free: 10.22 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005647/0.4658, allocations: 107.7 kB / 0.554 GB, free: 10.11 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006566/0.4724, allocations: 3.048 MB / 0.557 GB, free: 7.055 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008018/0.4805, allocations: 2.537 MB / 0.5595 GB, free: 4.508 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002928/0.4835, allocations: 1.026 MB / 0.5605 GB, free: 3.48 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.01304/0.4965, allocations: 7.671 MB / 0.5679 GB, free: 11.8 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006569/0.5032, allocations: 4.171 MB / 0.572 GB, free: 7.578 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005336/0.5085, allocations: 2.262 MB / 0.5742 GB, free: 5.309 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005579/0.5141, allocations: 3.224 MB / 0.5774 GB, free: 2.074 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001856/0.516, allocations: 452 kB / 0.5778 GB, free: 1.633 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003401/0.5194, allocations: 1.295 MB / 0.5791 GB, free: 344 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003324/0.5228, allocations: 2.821 MB / 0.5818 GB, free: 13.51 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005546/0.5283, allocations: 3.173 MB / 0.5849 GB, free: 10.32 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01238/0.5407, allocations: 9.944 MB / 0.5946 GB, free: 348 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.847e-06/0.5408, allocations: 3.938 kB / 0.5946 GB, free: 344 kB / 446.1 MB Notification: Performance of FrontEnd: time 3.497e-06/0.5408, allocations: 4 kB / 0.5946 GB, free: 340 kB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0003415/0.5411, allocations: 0 / 0.5946 GB, free: 340 kB / 446.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.01887/0.56, allocations: 7.197 MB / 0.6017 GB, free: 9.051 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.905e-05/0.5601, allocations: 8.031 kB / 0.6017 GB, free: 9.043 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01564/0.5757, allocations: 3.834 MB / 0.6054 GB, free: 5.195 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009785/0.5856, allocations: 4.014 MB / 0.6093 GB, free: 1.121 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002641/0.5859, allocations: 320.4 kB / 0.6096 GB, free: 0.8047 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00183/0.5877, allocations: 439.7 kB / 0.6101 GB, free: 384 kB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02821/0.6159, allocations: 15.59 MB / 0.6253 GB, free: 56 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001659/0.6161, allocations: 59.53 kB / 0.6253 GB, free: 15.99 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005795/0.6167, allocations: 199.8 kB / 0.6255 GB, free: 15.8 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006019/0.6228, allocations: 3.376 MB / 0.6288 GB, free: 12.42 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03035/0.6531, allocations: 14.81 MB / 0.6433 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08646/0.7396, allocations: 54.99 MB / 0.697 GB, free: 5.41 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01815/0.7578, allocations: 8.194 MB / 0.705 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007086/0.7649, allocations: 4.843 MB / 0.7097 GB, free: 8.129 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002192/0.7672, allocations: 2.211 MB / 0.7119 GB, free: 5.527 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.2e-05/0.7672, allocations: 65.08 kB / 0.712 GB, free: 5.453 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 6.953e-06/0.7672, allocations: 0 / 0.712 GB, free: 5.453 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.4611/1.228, allocations: 40.15 MB / 0.7512 GB, free: 147.5 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.335e-05/1.228, allocations: 116 kB / 0.7513 GB, free: 147.4 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006788/1.235, allocations: 4.279 MB / 0.7555 GB, free: 143.1 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.000902/1.236, allocations: 87.45 kB / 0.7555 GB, free: 143 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001857/1.238, allocations: 3.792 MB / 0.7592 GB, free: 139.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002015/1.24, allocations: 1.493 MB / 0.7607 GB, free: 137.7 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003656/1.244, allocations: 1.572 MB / 0.7622 GB, free: 136.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.892e-05/1.244, allocations: 304.5 kB / 0.7625 GB, free: 135.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005262/1.249, allocations: 4.076 MB / 0.7665 GB, free: 131.7 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006881/1.256, allocations: 7.842 MB / 0.7742 GB, free: 122.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01289/1.269, allocations: 12.89 MB / 0.7867 GB, free: 107.4 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001376/1.269, allocations: 36 kB / 0.7868 GB, free: 107.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02601/1.295, allocations: 14.74 MB / 0.8012 GB, free: 92.61 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001293/1.295, allocations: 60 kB / 0.8012 GB, free: 92.55 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001896/1.295, allocations: 128 kB / 0.8013 GB, free: 92.43 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00771/1.303, allocations: 2.929 MB / 0.8042 GB, free: 89.49 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006717/1.31, allocations: 1.813 MB / 0.806 GB, free: 87.68 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01863/1.329, allocations: 15.95 MB / 0.8216 GB, free: 71.45 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00731/1.336, allocations: 0.4918 MB / 0.822 GB, free: 70.96 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001927/1.338, allocations: 435 kB / 0.8224 GB, free: 70.54 MB / 0.5606 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.006606/1.345, allocations: 2.877 MB / 0.8253 GB, free: 67.64 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00179/1.346, allocations: 454.2 kB / 0.8257 GB, free: 67.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01978/1.366, allocations: 10.93 MB / 0.8364 GB, free: 56.21 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.984e-05/1.366, allocations: 63.98 kB / 0.8364 GB, free: 56.15 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.61e-05/1.366, allocations: 8 kB / 0.8364 GB, free: 56.14 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.869e-05/1.366, allocations: 19.94 kB / 0.8365 GB, free: 56.12 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04245/1.409, allocations: 21.59 MB / 0.8575 GB, free: 34.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.234e-05/1.409, allocations: 12.97 kB / 0.8575 GB, free: 34.35 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003402/1.412, allocations: 0.6786 MB / 0.8582 GB, free: 33.67 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007587/1.42, allocations: 2.736 MB / 0.8609 GB, free: 30.93 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007998/1.421, allocations: 79.38 kB / 0.861 GB, free: 30.85 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01621/1.437, allocations: 14.54 MB / 0.8752 GB, free: 16.02 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.488e-06/1.437, allocations: 19.88 kB / 0.8752 GB, free: 16 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02394/1.461, allocations: 15.56 MB / 0.8904 GB, free: 172 kB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001877/1.463, allocations: 0.4954 MB / 0.8909 GB, free: 15.64 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001763/1.465, allocations: 79.98 kB / 0.8909 GB, free: 15.57 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004158/1.469, allocations: 315.2 kB / 0.8912 GB, free: 15.26 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001387/1.47, allocations: 262 kB / 0.8915 GB, free: 15 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007993/1.471, allocations: 120.1 kB / 0.8916 GB, free: 14.89 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006232/1.477, allocations: 2.681 MB / 0.8942 GB, free: 12.2 MB / 0.5763 GB Notification: Performance of sort global known variables: time 3.31e-07/1.477, allocations: 3.938 kB / 0.8942 GB, free: 12.2 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.009118/1.486, allocations: 1.662 MB / 0.8958 GB, free: 10.54 MB / 0.5763 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.001202/1.488, allocations: 224.3 kB / 0.8961 GB, free: 10.32 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.0186/1.506, allocations: 10.1 MB / 0.9059 GB, free: 220 kB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.755e-05/1.506, allocations: 0 / 0.9059 GB, free: 220 kB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.007915/1.514, allocations: 4.371 MB / 0.9102 GB, free: 11.81 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006056/1.52, allocations: 0.7213 MB / 0.9109 GB, free: 11.1 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03489/1.555, allocations: 15.64 MB / 0.9262 GB, free: 11.28 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009301/1.565, allocations: 4.539 MB / 0.9306 GB, free: 6.691 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.008147/1.573, allocations: 2.723 MB / 0.9333 GB, free: 3.961 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002503/1.575, allocations: 343.4 kB / 0.9336 GB, free: 3.625 MB / 0.6075 GB Notification: Performance of SimCode: time 1.613e-06/1.575, allocations: 0 / 0.9336 GB, free: 3.625 MB / 0.6075 GB Notification: Performance of Templates: time 0.4963/2.072, allocations: 69.23 MB / 1.001 GB, free: 176.5 MB / 0.6231 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches