Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 221.5 MB / 230.7 MB, free: 7.547 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008406/0.0008406, allocations: 94.81 kB / 281.6 MB, free: 5.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2112/0.2112, allocations: 44.15 MB / 376.5 MB, free: 3.016 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.602e-05/1.604e-05, allocations: 4 kB / 444.6 MB, free: 15.21 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.134, allocations: 61.91 MB / 0.4947 GB, free: 1.23 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4684/0.6024, allocations: 106.2 MB / 0.5984 GB, free: 6.25 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002234/0.6027, allocations: 79.95 kB / 0.5985 GB, free: 6.172 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6444/1.247, allocations: 126.3 MB / 0.7218 GB, free: 110.9 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.954e-06/1.247, allocations: 0 / 0.7218 GB, free: 110.9 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0006433/1.248, allocations: 118.1 kB / 0.7219 GB, free: 110.9 MB / 0.4948 GB 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.02541/1.273, allocations: 6.152 MB / 0.728 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.899e-05/1.273, allocations: 15.33 kB / 0.728 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02811/1.301, allocations: 6.437 MB / 0.7343 GB, free: 108.1 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02245/1.324, allocations: 7.943 MB / 0.742 GB, free: 107.4 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004469/1.324, allocations: 184.6 kB / 0.7422 GB, free: 107.4 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003955/1.328, allocations: 342.4 kB / 0.7425 GB, free: 107.3 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02027/1.349, allocations: 10.43 MB / 0.7527 GB, free: 107.1 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03702/1.386, allocations: 13.55 MB / 0.7659 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005347/1.386, allocations: 61.12 kB / 0.766 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00331/1.39, allocations: 22.22 kB / 0.766 GB, free: 101.3 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002755/1.392, allocations: 1.66 MB / 0.7676 GB, free: 101.1 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08637/1.479, allocations: 52.56 MB / 0.819 GB, free: 57.52 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008343/1.487, allocations: 6.63 MB / 0.8254 GB, free: 50.65 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006003/1.493, allocations: 4.598 MB / 0.8299 GB, free: 46.05 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001916/1.495, allocations: 2.211 MB / 0.8321 GB, free: 43.47 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.264e-05/1.495, allocations: 69.05 kB / 0.8322 GB, free: 43.39 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=369): time 6.542e-06/1.495, allocations: 0 / 0.8322 GB, free: 43.39 MB / 0.4948 GB Notification: Performance of matching and sorting (n=431): time 0.07442/1.57, allocations: 35.59 MB / 0.8669 GB, free: 7.75 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.308e-05/1.57, allocations: 128.1 kB / 0.867 GB, free: 7.605 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005903/1.576, allocations: 3.445 MB / 0.8704 GB, free: 4.141 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001399/1.577, allocations: 25.7 kB / 0.8704 GB, free: 4.109 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002165/1.579, allocations: 3.918 MB / 0.8742 GB, free: 140 kB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002805/1.582, allocations: 1.483 MB / 0.8757 GB, free: 14.63 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004933/1.583, allocations: 4 kB / 0.8757 GB, free: 14.62 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000613/1.583, allocations: 0.6492 MB / 0.8763 GB, free: 13.97 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006741/1.59, allocations: 3.815 MB / 0.8801 GB, free: 10.15 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01059/1.601, allocations: 7.775 MB / 0.8876 GB, free: 432 kB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3564/1.957, allocations: 5.446 MB / 0.893 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001646/1.957, allocations: 39.72 kB / 0.893 GB, free: 110.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1065) (initialization): time 0.03588/1.993, allocations: 13.39 MB / 0.9061 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001149/1.993, allocations: 70.44 kB / 0.9062 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001834/1.994, allocations: 139 kB / 0.9063 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007039/2.001, allocations: 2.606 MB / 0.9088 GB, free: 109.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00813/2.009, allocations: 2.038 MB / 0.9108 GB, free: 109.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01568/2.025, allocations: 12.91 MB / 0.9234 GB, free: 107 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006833/2.031, allocations: 336.5 kB / 0.9237 GB, free: 107 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001763/2.033, allocations: 455.9 kB / 0.9242 GB, free: 107 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 630 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (968): * Single equations (assignments): 960 * 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.001421/2.035, allocations: 478.5 kB / 0.9246 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00101/2.036, allocations: 451.1 kB / 0.9251 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01678/2.052, allocations: 10.24 MB / 0.9351 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.281e-05/2.053, allocations: 63.94 kB / 0.9351 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.68e-05/2.053, allocations: 11.44 kB / 0.9351 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.177e-05/2.053, allocations: 17.2 kB / 0.9352 GB, free: 104.2 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03623/2.089, allocations: 19.67 MB / 0.9544 GB, free: 97.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.343e-05/2.089, allocations: 11.59 kB / 0.9544 GB, free: 97.87 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004498/2.094, allocations: 0.8058 MB / 0.9552 GB, free: 97.81 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006866/2.1, allocations: 2.382 MB / 0.9575 GB, free: 97.48 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001154/2.102, allocations: 26.44 kB / 0.9575 GB, free: 97.47 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01515/2.117, allocations: 11.69 MB / 0.9689 GB, free: 91.99 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.594e-05/2.117, allocations: 15.75 kB / 0.969 GB, free: 91.98 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02359/2.14, allocations: 16.12 MB / 0.9847 GB, free: 79.24 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001375/2.142, allocations: 476.9 kB / 0.9851 GB, free: 78.76 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001489/2.143, allocations: 19.14 kB / 0.9852 GB, free: 78.75 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003277/2.147, allocations: 241.6 kB / 0.9854 GB, free: 78.62 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008375/2.148, allocations: 269.8 kB / 0.9857 GB, free: 78.45 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002937/2.148, allocations: 126.4 kB / 0.9858 GB, free: 78.33 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003828/2.152, allocations: 2.315 MB / 0.988 GB, free: 76.32 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.7e-07/2.152, allocations: 0 / 0.988 GB, free: 76.32 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.009838/2.162, allocations: 1.445 MB / 0.9894 GB, free: 74.89 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 51 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (346): * Single equations (assignments): 338 * 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.001239/2.163, allocations: 189.8 kB / 0.9896 GB, free: 74.72 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01509/2.178, allocations: 9.45 MB / 0.9989 GB, free: 66.27 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.552e-05/2.178, allocations: 3.719 kB / 0.9989 GB, free: 66.27 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.007064/2.185, allocations: 4.176 MB / 1.003 GB, free: 62.52 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004819/2.19, allocations: 0.4931 MB / 1.003 GB, free: 62.11 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02954/2.219, allocations: 13.14 MB / 1.016 GB, free: 50.41 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007963/2.227, allocations: 4.686 MB / 1.021 GB, free: 46.21 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.007573/2.235, allocations: 2.846 MB / 1.024 GB, free: 43.36 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001944/2.237, allocations: 347.3 kB / 1.024 GB, free: 43.02 MB / 0.5105 GB Notification: Performance of SimCode: time 9.22e-07/2.237, allocations: 0 / 1.024 GB, free: 43.02 MB / 0.5105 GB Notification: Performance of Templates: time 0.1032/2.34, allocations: 59.24 MB / 1.082 GB, free: 0.6172 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches