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.001661/0.001661, allocations: 109.6 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001971/0.001971, allocations: 208 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.527/1.527, allocations: 227.4 MB / 247.5 MB, free: 10.57 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2289/0.2289, allocations: 46.12 MB / 344.8 MB, free: 11.54 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002227/0.002228, allocations: 84.34 kB / 418.3 MB, free: 19.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1345/0.1368, allocations: 62.45 MB / 480.8 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.02335/0.1602, allocations: 18.14 MB / 498.9 MB, free: 2.996 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01311/0.1733, allocations: 5.298 MB / 0.4924 GB, free: 13.68 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0043/0.1777, allocations: 111.7 kB / 0.4925 GB, free: 13.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006785/0.1845, allocations: 3.048 MB / 0.4955 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007542/0.1921, allocations: 2.541 MB / 0.4979 GB, free: 7.965 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00306/0.1952, allocations: 1.018 MB / 0.4989 GB, free: 6.945 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.272/0.4672, allocations: 7.651 MB / 0.5064 GB, free: 14.02 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007024/0.4743, allocations: 4.17 MB / 0.5105 GB, free: 13.65 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005356/0.4797, allocations: 2.243 MB / 0.5127 GB, free: 13.53 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005972/0.4857, allocations: 3.227 MB / 0.5158 GB, free: 13.19 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002194/0.4879, allocations: 454.9 kB / 0.5163 GB, free: 13.19 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004336/0.4922, allocations: 1.295 MB / 0.5175 GB, free: 13.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004225/0.4965, allocations: 2.798 MB / 0.5203 GB, free: 12.9 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006437/0.503, allocations: 3.182 MB / 0.5234 GB, free: 11.15 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01229/0.5153, allocations: 9.591 MB / 0.5327 GB, free: 6.965 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.275e-06/0.5153, allocations: 0 / 0.5327 GB, free: 6.965 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5153, allocations: 3.312 kB / 0.5327 GB, free: 6.965 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004114/0.5158, allocations: 0 / 0.5327 GB, free: 6.965 MB / 382.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.01955/0.5353, allocations: 7.202 MB / 0.5398 GB, free: 2.273 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.121e-05/0.5354, allocations: 10.06 kB / 0.5398 GB, free: 2.273 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01526/0.5506, allocations: 3.836 MB / 0.5435 GB, free: 332 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009501/0.5602, allocations: 3.936 MB / 0.5474 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003624/0.5606, allocations: 328.4 kB / 0.5477 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002096/0.5627, allocations: 428.7 kB / 0.5481 GB, free: 12.96 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03189/0.5946, allocations: 15.59 MB / 0.5633 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002073/0.5949, allocations: 66.2 kB / 0.5634 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008329/0.5957, allocations: 204 kB / 0.5636 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006974/0.6027, allocations: 3.377 MB / 0.5669 GB, free: 9.355 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03328/0.636, allocations: 14.82 MB / 0.5813 GB, free: 10.7 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09314/0.7292, allocations: 55.27 MB / 0.6353 GB, free: 3.008 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02045/0.7497, allocations: 8.204 MB / 0.6433 GB, free: 10.58 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007791/0.7575, allocations: 4.842 MB / 0.6481 GB, free: 5.73 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002709/0.7602, allocations: 2.207 MB / 0.6502 GB, free: 3.156 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.594e-05/0.7603, allocations: 65.08 kB / 0.6503 GB, free: 3.082 MB / 494.1 MB Notification: Performance of pre-optimization done (n=367): time 7.434e-06/0.7604, allocations: 3.844 kB / 0.6503 GB, free: 3.082 MB / 494.1 MB Notification: Performance of matching and sorting (n=419): time 0.1189/0.8792, allocations: 40.16 MB / 0.6895 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/0.8794, allocations: 116 kB / 0.6896 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007172/0.8866, allocations: 4.289 MB / 0.6938 GB, free: 6.535 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.00109/0.8877, allocations: 89.06 kB / 0.6939 GB, free: 6.445 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.003474/0.8912, allocations: 3.778 MB / 0.6976 GB, free: 2.66 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.002615/0.8938, allocations: 1.492 MB / 0.699 GB, free: 1.18 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002949/0.8968, allocations: 1.574 MB / 0.7006 GB, free: 15.6 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001295/0.8969, allocations: 305.1 kB / 0.7009 GB, free: 15.3 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006998/0.9039, allocations: 4.079 MB / 0.7048 GB, free: 11.21 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01137/0.9153, allocations: 7.845 MB / 0.7125 GB, free: 1.621 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2467/1.162, allocations: 12.88 MB / 0.7251 GB, free: 179.1 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001133/1.162, allocations: 35.75 kB / 0.7251 GB, free: 179.1 MB / 0.545 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.03054/1.193, allocations: 14.73 MB / 0.7395 GB, free: 174.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001876/1.193, allocations: 65.62 kB / 0.7396 GB, free: 174.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002852/1.193, allocations: 129.2 kB / 0.7397 GB, free: 174.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008473/1.202, allocations: 2.928 MB / 0.7425 GB, free: 174 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0066/1.208, allocations: 1.813 MB / 0.7443 GB, free: 173.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01981/1.228, allocations: 15.96 MB / 0.7599 GB, free: 165.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006961/1.235, allocations: 0.4952 MB / 0.7604 GB, free: 165.5 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001819/1.237, allocations: 430.8 kB / 0.7608 GB, free: 165.1 MB / 0.545 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.007038/1.244, allocations: 2.872 MB / 0.7636 GB, free: 162.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001632/1.246, allocations: 455.3 kB / 0.764 GB, free: 162.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02059/1.266, allocations: 10.93 MB / 0.7747 GB, free: 152.8 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001018/1.267, allocations: 60.86 kB / 0.7748 GB, free: 152.7 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-05/1.267, allocations: 12 kB / 0.7748 GB, free: 152.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.083e-05/1.267, allocations: 15.94 kB / 0.7748 GB, free: 152.7 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04057/1.307, allocations: 21.69 MB / 0.796 GB, free: 130.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.521e-05/1.307, allocations: 8.969 kB / 0.796 GB, free: 130.9 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003471/1.311, allocations: 0.6825 MB / 0.7966 GB, free: 130.2 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00761/1.319, allocations: 2.755 MB / 0.7993 GB, free: 127.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009624/1.32, allocations: 77.73 kB / 0.7994 GB, free: 127.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01579/1.335, allocations: 14.56 MB / 0.8136 GB, free: 112.6 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.628e-06/1.335, allocations: 19.88 kB / 0.8136 GB, free: 112.6 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02315/1.359, allocations: 15.56 MB / 0.8288 GB, free: 96.83 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001406/1.36, allocations: 0.4947 MB / 0.8293 GB, free: 96.32 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001527/1.362, allocations: 81.17 kB / 0.8294 GB, free: 96.24 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003102/1.365, allocations: 312.5 kB / 0.8297 GB, free: 95.93 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008014/1.365, allocations: 263.6 kB / 0.83 GB, free: 95.68 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002912/1.366, allocations: 112.5 kB / 0.8301 GB, free: 95.57 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003941/1.37, allocations: 2.685 MB / 0.8327 GB, free: 92.88 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.3e-07/1.37, allocations: 1.125 kB / 0.8327 GB, free: 92.88 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007117/1.377, allocations: 1.654 MB / 0.8343 GB, free: 91.23 MB / 0.545 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.000799/1.378, allocations: 238.5 kB / 0.8345 GB, free: 91 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.03082/1.409, allocations: 19.96 MB / 0.854 GB, free: 71.04 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.032e-05/1.409, allocations: 4 kB / 0.854 GB, free: 71.03 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007168/1.416, allocations: 4.379 MB / 0.8583 GB, free: 66.62 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006848/1.423, allocations: 0.7204 MB / 0.859 GB, free: 65.92 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03846/1.461, allocations: 16.38 MB / 0.875 GB, free: 49.36 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009106/1.47, allocations: 4.531 MB / 0.8794 GB, free: 44.78 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003038/1.473, allocations: 403.3 kB / 0.8798 GB, free: 44.38 MB / 0.545 GB Notification: Performance of SimCode: time 1.472e-06/1.473, allocations: 1.203 kB / 0.8798 GB, free: 44.38 MB / 0.545 GB Notification: Performance of Templates: time 0.3994/1.873, allocations: 141.2 MB / 1.018 GB, free: 98.84 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