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.001329/0.001329, allocations: 111.7 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001352/0.001353, allocations: 209.9 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.243/1.243, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1911/0.1911, allocations: 46.1 MB / 345 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 83.81 kB / 482 MB, free: 4.039 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2808, allocations: 62.43 MB / 0.5317 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.01652/0.2973, allocations: 18.14 MB / 0.5494 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01048/0.3078, allocations: 5.3 MB / 0.5546 GB, free: 10.18 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002918/0.3108, allocations: 107.7 kB / 0.5547 GB, free: 10.08 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005154/0.316, allocations: 3.044 MB / 0.5576 GB, free: 7.023 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005661/0.3217, allocations: 2.606 MB / 0.5602 GB, free: 4.41 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00191/0.3236, allocations: 1.03 MB / 0.5612 GB, free: 3.379 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.008142/0.3318, allocations: 7.664 MB / 0.5687 GB, free: 11.7 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004205/0.336, allocations: 4.175 MB / 0.5727 GB, free: 7.477 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002913/0.3389, allocations: 2.258 MB / 0.575 GB, free: 5.211 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003581/0.3425, allocations: 3.232 MB / 0.5781 GB, free: 1.969 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008583/0.3434, allocations: 452 kB / 0.5785 GB, free: 1.527 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002125/0.3455, allocations: 1.295 MB / 0.5798 GB, free: 236 kB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002172/0.3477, allocations: 2.805 MB / 0.5825 GB, free: 13.42 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002993/0.3507, allocations: 3.184 MB / 0.5857 GB, free: 10.21 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00887/0.3596, allocations: 9.948 MB / 0.5954 GB, free: 240 kB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.3596, allocations: 3.938 kB / 0.5954 GB, free: 236 kB / 446.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.3596, allocations: 0 / 0.5954 GB, free: 236 kB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0002379/0.3599, allocations: 4 kB / 0.5954 GB, free: 232 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.01368/0.3736, allocations: 7.193 MB / 0.6024 GB, free: 8.949 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.3736, allocations: 8.031 kB / 0.6024 GB, free: 8.941 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01358/0.3872, allocations: 3.83 MB / 0.6061 GB, free: 5.098 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007523/0.3948, allocations: 4.018 MB / 0.6101 GB, free: 1.02 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002271/0.395, allocations: 320.4 kB / 0.6104 GB, free: 0.7031 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00138/0.3964, allocations: 443.7 kB / 0.6108 GB, free: 276 kB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02366/0.4201, allocations: 15.58 MB / 0.626 GB, free: 15.95 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001679/0.4203, allocations: 59.38 kB / 0.6261 GB, free: 15.9 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006759/0.421, allocations: 203.8 kB / 0.6263 GB, free: 15.7 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005505/0.4265, allocations: 3.376 MB / 0.6296 GB, free: 12.32 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02685/0.4534, allocations: 14.81 MB / 0.644 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07212/0.5255, allocations: 54.98 MB / 0.6977 GB, free: 5.312 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01734/0.5429, allocations: 8.209 MB / 0.7057 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00651/0.5494, allocations: 4.839 MB / 0.7105 GB, free: 8.02 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0019/0.5514, allocations: 2.208 MB / 0.7126 GB, free: 5.422 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.575e-05/0.5514, allocations: 65.08 kB / 0.7127 GB, free: 5.348 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=367): time 6.602e-06/0.5515, allocations: 0 / 0.7127 GB, free: 5.348 MB / 0.5606 GB Notification: Performance of matching and sorting (n=419): time 0.3373/0.8887, allocations: 40.15 MB / 0.7519 GB, free: 147.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.66e-05/0.8888, allocations: 116 kB / 0.752 GB, free: 147.2 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005368/0.8942, allocations: 4.29 MB / 0.7562 GB, free: 142.9 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0007816/0.895, allocations: 87.45 kB / 0.7563 GB, free: 142.8 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001565/0.8966, allocations: 3.788 MB / 0.76 GB, free: 139.1 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001523/0.8981, allocations: 1.494 MB / 0.7614 GB, free: 137.6 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002905/0.901, allocations: 1.568 MB / 0.763 GB, free: 136 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.968e-05/0.9011, allocations: 304.5 kB / 0.7633 GB, free: 135.7 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004632/0.9057, allocations: 4.072 MB / 0.7672 GB, free: 131.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005953/0.9117, allocations: 7.846 MB / 0.7749 GB, free: 122 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01147/0.9232, allocations: 12.88 MB / 0.7875 GB, free: 107.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-05/0.9233, allocations: 40 kB / 0.7875 GB, free: 107.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02352/0.9468, allocations: 14.74 MB / 0.8019 GB, free: 92.5 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001185/0.947, allocations: 60 kB / 0.802 GB, free: 92.44 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001516/0.9472, allocations: 128 kB / 0.8021 GB, free: 92.31 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007216/0.9544, allocations: 2.924 MB / 0.8049 GB, free: 89.38 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005731/0.9601, allocations: 1.809 MB / 0.8067 GB, free: 87.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0165/0.9767, allocations: 15.95 MB / 0.8223 GB, free: 71.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005368/0.9821, allocations: 0.4955 MB / 0.8228 GB, free: 70.84 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001248/0.9833, allocations: 435.9 kB / 0.8232 GB, free: 70.42 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.004476/0.9878, allocations: 2.869 MB / 0.826 GB, free: 67.54 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001053/0.9889, allocations: 458.2 kB / 0.8264 GB, free: 67.09 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01664/1.006, allocations: 10.93 MB / 0.8371 GB, free: 56.1 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.258e-05/1.006, allocations: 64 kB / 0.8372 GB, free: 56.04 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.559e-05/1.006, allocations: 12 kB / 0.8372 GB, free: 56.03 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.613e-05/1.006, allocations: 19.92 kB / 0.8372 GB, free: 56.01 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03319/1.039, allocations: 21.58 MB / 0.8583 GB, free: 34.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.981e-05/1.039, allocations: 12.19 kB / 0.8583 GB, free: 34.24 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003044/1.042, allocations: 0.6825 MB / 0.8589 GB, free: 33.56 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006663/1.049, allocations: 2.725 MB / 0.8616 GB, free: 30.82 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000707/1.049, allocations: 91.19 kB / 0.8617 GB, free: 30.74 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01481/1.064, allocations: 14.54 MB / 0.8759 GB, free: 15.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.887e-06/1.064, allocations: 20 kB / 0.8759 GB, free: 15.89 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02189/1.086, allocations: 15.57 MB / 0.8911 GB, free: 52 kB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00125/1.087, allocations: 0.4913 MB / 0.8916 GB, free: 15.54 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001381/1.089, allocations: 83.66 kB / 0.8917 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003265/1.092, allocations: 307.7 kB / 0.892 GB, free: 15.16 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001034/1.093, allocations: 265.9 kB / 0.8922 GB, free: 14.89 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000563/1.094, allocations: 116 kB / 0.8923 GB, free: 14.78 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.004595/1.098, allocations: 2.689 MB / 0.895 GB, free: 12.09 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.9e-07/1.098, allocations: 3.938 kB / 0.895 GB, free: 12.09 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.007418/1.106, allocations: 1.655 MB / 0.8966 GB, free: 10.44 MB / 0.5762 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.001052/1.107, allocations: 225.7 kB / 0.8968 GB, free: 10.21 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01573/1.123, allocations: 10.09 MB / 0.9066 GB, free: 116 kB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-05/1.123, allocations: 4.438 kB / 0.9067 GB, free: 112 kB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.006809/1.13, allocations: 4.37 MB / 0.9109 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004988/1.135, allocations: 0.7272 MB / 0.9116 GB, free: 11 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02936/1.164, allocations: 16.23 MB / 0.9275 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006797/1.171, allocations: 4.524 MB / 0.9319 GB, free: 6.016 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002302/1.173, allocations: 399.3 kB / 0.9323 GB, free: 5.625 MB / 0.6075 GB Notification: Performance of SimCode: time 9.12e-07/1.173, allocations: 3.938 kB / 0.9323 GB, free: 5.621 MB / 0.6075 GB Notification: Performance of Templates: time 0.3733/1.546, allocations: 142.1 MB / 1.071 GB, free: 101 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/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