Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.conf.json 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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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_cpp_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_cpp_ModelicaTest.MultiBody.Joints.Revolute2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00173/0.00173, allocations: 199.5 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 226.5 MB / 243.4 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007273/0.0007271, allocations: 92.92 kB / 295.5 MB, free: 6.879 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3333/0.3333, allocations: 44.83 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000344/0.000344, allocations: 8 kB / 465.3 MB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3876/0.3879, allocations: 62.96 MB / 0.5159 GB, free: 36.97 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.04136/0.4293, allocations: 57.62 MB / 0.5721 GB, free: 11.83 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.0322/0.4616, allocations: 12.16 MB / 0.584 GB, free: 2.824 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01656/0.4782, allocations: 271.3 kB / 0.5843 GB, free: 2.559 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01029/0.4885, allocations: 2.875 MB / 0.5871 GB, free: 352 kB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02699/0.5155, allocations: 8.611 MB / 0.5955 GB, free: 7.703 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005709/0.5213, allocations: 0.9518 MB / 0.5964 GB, free: 6.75 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.04365/0.565, allocations: 35.84 MB / 0.6314 GB, free: 2.863 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009717/0.5747, allocations: 5.212 MB / 0.6365 GB, free: 13.59 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004871/0.5797, allocations: 1.876 MB / 0.6383 GB, free: 11.7 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00505/0.5847, allocations: 3.081 MB / 0.6414 GB, free: 8.609 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001663/0.5864, allocations: 216 kB / 0.6416 GB, free: 8.398 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003418/0.5899, allocations: 1.123 MB / 0.6427 GB, free: 7.273 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00378/0.5937, allocations: 2.548 MB / 0.6451 GB, free: 4.719 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005167/0.5989, allocations: 2.747 MB / 0.6478 GB, free: 1.949 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009498/0.6084, allocations: 7.618 MB / 0.6553 GB, free: 10.31 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/0.6084, allocations: 0 / 0.6553 GB, free: 10.31 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.6085, allocations: 0 / 0.6553 GB, free: 10.31 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0004066/0.6089, allocations: 0 / 0.6553 GB, free: 10.31 MB / 474.7 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.01542/0.6243, allocations: 5.972 MB / 0.6611 GB, free: 4.262 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.6244, allocations: 8.031 kB / 0.6611 GB, free: 4.254 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01511/0.6395, allocations: 3.943 MB / 0.665 GB, free: 304 kB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00913/0.6487, allocations: 3.952 MB / 0.6688 GB, free: 12.29 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00036/0.6491, allocations: 320.4 kB / 0.6691 GB, free: 11.97 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002066/0.6512, allocations: 431.7 kB / 0.6695 GB, free: 11.55 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3041/0.9552, allocations: 15.59 MB / 0.6848 GB, free: 128.6 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003232/0.9556, allocations: 58.62 kB / 0.6848 GB, free: 128.6 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001047/0.9567, allocations: 200.4 kB / 0.685 GB, free: 128.5 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005293/0.962, allocations: 3.375 MB / 0.6883 GB, free: 128 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03328/0.9953, allocations: 14.79 MB / 0.7027 GB, free: 123.6 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08238/1.078, allocations: 55.25 MB / 0.7567 GB, free: 80.44 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01605/1.094, allocations: 8.186 MB / 0.7647 GB, free: 72.03 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00564/1.1, allocations: 4.827 MB / 0.7694 GB, free: 67.19 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001502/1.101, allocations: 2.206 MB / 0.7716 GB, free: 64.62 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.97e-05/1.101, allocations: 65.08 kB / 0.7716 GB, free: 64.54 MB / 490.7 MB Notification: Performance of pre-optimization done (n=367): time 8.476e-06/1.101, allocations: 4 kB / 0.7716 GB, free: 64.54 MB / 490.7 MB Notification: Performance of matching and sorting (n=419): time 0.1001/1.201, allocations: 40.11 MB / 0.8108 GB, free: 24.41 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.114e-05/1.201, allocations: 124 kB / 0.8109 GB, free: 24.27 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006513/1.208, allocations: 4.26 MB / 0.8151 GB, free: 19.99 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009805/1.209, allocations: 81.7 kB / 0.8152 GB, free: 19.9 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002112/1.211, allocations: 3.793 MB / 0.8189 GB, free: 16.08 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001997/1.213, allocations: 1.491 MB / 0.8203 GB, free: 14.57 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001131/1.214, allocations: 156 kB / 0.8205 GB, free: 14.41 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005133/1.215, allocations: 0.6448 MB / 0.8211 GB, free: 13.76 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005453/1.22, allocations: 4.044 MB / 0.825 GB, free: 9.711 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007043/1.227, allocations: 7.818 MB / 0.8327 GB, free: 80 kB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01663/1.244, allocations: 12.83 MB / 0.8452 GB, free: 1.426 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001296/1.244, allocations: 36 kB / 0.8452 GB, free: 1.391 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.03208/1.276, allocations: 14.66 MB / 0.8596 GB, free: 2.684 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002348/1.276, allocations: 63.12 kB / 0.8596 GB, free: 2.625 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002842/1.277, allocations: 128 kB / 0.8597 GB, free: 2.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009025/1.286, allocations: 2.943 MB / 0.8626 GB, free: 15.55 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006933/1.293, allocations: 1.809 MB / 0.8644 GB, free: 13.73 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3192/1.612, allocations: 14.8 MB / 0.8788 GB, free: 156.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0067/1.619, allocations: 0.503 MB / 0.8793 GB, free: 156.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00178/1.621, allocations: 432 kB / 0.8797 GB, free: 156.6 MB / 0.5261 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 (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.006074/1.627, allocations: 2.87 MB / 0.8825 GB, free: 156.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009533/1.628, allocations: 459.8 kB / 0.883 GB, free: 156.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01776/1.645, allocations: 10.91 MB / 0.8936 GB, free: 153.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001111/1.646, allocations: 65.31 kB / 0.8937 GB, free: 153.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.739e-05/1.646, allocations: 9.75 kB / 0.8937 GB, free: 153.3 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.78e-05/1.646, allocations: 20.52 kB / 0.8937 GB, free: 153.3 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04738/1.693, allocations: 21.66 MB / 0.9149 GB, free: 146.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.982e-05/1.693, allocations: 10.56 kB / 0.9149 GB, free: 146.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003586/1.697, allocations: 0.679 MB / 0.9155 GB, free: 146.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007699/1.705, allocations: 2.737 MB / 0.9182 GB, free: 145.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001159/1.706, allocations: 82.12 kB / 0.9183 GB, free: 145.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01597/1.722, allocations: 13.58 MB / 0.9316 GB, free: 139.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.336e-06/1.722, allocations: 15.38 kB / 0.9316 GB, free: 139.6 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02279/1.745, allocations: 15.52 MB / 0.9467 GB, free: 125.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001481/1.746, allocations: 0.4915 MB / 0.9472 GB, free: 125.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001422/1.748, allocations: 77.16 kB / 0.9473 GB, free: 125.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003002/1.751, allocations: 319.2 kB / 0.9476 GB, free: 125.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008388/1.751, allocations: 263.7 kB / 0.9478 GB, free: 124.9 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000289/1.752, allocations: 113.1 kB / 0.948 GB, free: 124.8 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.003998/1.756, allocations: 2.653 MB / 0.9505 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.41e-07/1.756, allocations: 0 / 0.9505 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008426/1.764, allocations: 1.679 MB / 0.9522 GB, free: 120.5 MB / 0.5261 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 (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.001117/1.765, allocations: 231.3 kB / 0.9524 GB, free: 120.3 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01494/1.78, allocations: 10.01 MB / 0.9622 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-05/1.78, allocations: 4 kB / 0.9622 GB, free: 110.3 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.006717/1.787, allocations: 4.352 MB / 0.9664 GB, free: 105.9 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01083/1.798, allocations: 0.678 MB / 0.9671 GB, free: 105.3 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02556/1.824, allocations: 18.97 MB / 0.9856 GB, free: 86.24 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005019/1.829, allocations: 4.525 MB / 0.99 GB, free: 81.67 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002267/1.831, allocations: 403.3 kB / 0.9904 GB, free: 81.28 MB / 0.5261 GB Notification: Performance of SimCode: time 1.142e-06/1.831, allocations: 0 / 0.9904 GB, free: 81.28 MB / 0.5261 GB Notification: Performance of Templates: time 0.4374/2.268, allocations: 140.6 MB / 1.128 GB, free: 151.7 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2 --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_trunk_cpp_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches