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/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_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/Complex trunk/package.mo): time 0.001703/0.001702, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 226.7 MB / 245.5 MB, free: 6.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001025/0.001025, allocations: 105.3 kB / 296.7 MB, free: 6.441 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.4268/0.4268, allocations: 44.83 MB / 392.7 MB, free: 34.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 67.89 kB / 465.5 MB, free: 12.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.407/0.4082, allocations: 62.01 MB / 0.5152 GB, free: 37.71 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.05479/0.463, allocations: 63.56 MB / 0.5772 GB, free: 8.215 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03769/0.5008, allocations: 12.78 MB / 0.5897 GB, free: 13 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0191/0.5199, allocations: 279.2 kB / 0.59 GB, free: 12.73 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007251/0.5272, allocations: 3 MB / 0.5929 GB, free: 9.723 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008304/0.5356, allocations: 2.417 MB / 0.5953 GB, free: 7.297 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003215/0.5389, allocations: 0.9323 MB / 0.5962 GB, free: 6.363 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.01429/0.5532, allocations: 10.44 MB / 0.6064 GB, free: 11.9 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007374/0.5606, allocations: 4.05 MB / 0.6103 GB, free: 7.797 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004577/0.5653, allocations: 2.001 MB / 0.6123 GB, free: 5.789 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005928/0.5712, allocations: 3.419 MB / 0.6156 GB, free: 2.359 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001985/0.5733, allocations: 316 kB / 0.6159 GB, free: 2.051 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004094/0.5774, allocations: 1.213 MB / 0.6171 GB, free: 0.8359 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004454/0.5819, allocations: 2.731 MB / 0.6198 GB, free: 14.1 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.008002/0.5899, allocations: 3.071 MB / 0.6228 GB, free: 11.01 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01443/0.6044, allocations: 9.524 MB / 0.6321 GB, free: 1.453 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.6044, allocations: 4 kB / 0.6321 GB, free: 1.449 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.6044, allocations: 0 / 0.6321 GB, free: 1.449 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004308/0.6049, allocations: 0 / 0.6321 GB, free: 1.449 MB / 442.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.02254/0.6274, allocations: 7.235 MB / 0.6391 GB, free: 10.13 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.6275, allocations: 16.02 kB / 0.6392 GB, free: 10.11 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01666/0.6441, allocations: 3.83 MB / 0.6429 GB, free: 6.27 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01152/0.6557, allocations: 3.952 MB / 0.6468 GB, free: 2.258 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004194/0.6562, allocations: 320.4 kB / 0.6471 GB, free: 1.941 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002893/0.6591, allocations: 435.7 kB / 0.6475 GB, free: 1.516 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03588/0.695, allocations: 15.58 MB / 0.6627 GB, free: 1.203 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002664/0.6953, allocations: 63.42 kB / 0.6628 GB, free: 1.141 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00138/0.6967, allocations: 195.8 kB / 0.6629 GB, free: 0.9492 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006339/0.703, allocations: 3.38 MB / 0.6662 GB, free: 13.57 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.372/1.075, allocations: 14.81 MB / 0.6807 GB, free: 124.7 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1238/1.199, allocations: 55.29 MB / 0.7347 GB, free: 92.07 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03061/1.23, allocations: 8.203 MB / 0.7427 GB, free: 87.55 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01056/1.24, allocations: 4.837 MB / 0.7474 GB, free: 85.08 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002967/1.243, allocations: 2.201 MB / 0.7496 GB, free: 82.9 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.154e-05/1.243, allocations: 68.3 kB / 0.7496 GB, free: 82.83 MB / 490.7 MB Notification: Performance of pre-optimization done (n=367): time 1.03e-05/1.243, allocations: 0 / 0.7496 GB, free: 82.83 MB / 490.7 MB Notification: Performance of matching and sorting (n=419): time 0.1551/1.399, allocations: 40.17 MB / 0.7889 GB, free: 42.96 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.915e-05/1.399, allocations: 114.8 kB / 0.789 GB, free: 42.83 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005626/1.404, allocations: 4.295 MB / 0.7932 GB, free: 38.52 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008549/1.405, allocations: 89.22 kB / 0.7933 GB, free: 38.43 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001853/1.407, allocations: 3.787 MB / 0.797 GB, free: 34.62 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001901/1.409, allocations: 1.491 MB / 0.7984 GB, free: 33.11 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003378/1.412, allocations: 1.564 MB / 0.7999 GB, free: 31.53 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 3.904e-05/1.412, allocations: 301.1 kB / 0.8002 GB, free: 31.23 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005059/1.418, allocations: 4.079 MB / 0.8042 GB, free: 27.15 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006496/1.424, allocations: 7.849 MB / 0.8119 GB, free: 17.48 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01289/1.437, allocations: 12.88 MB / 0.8245 GB, free: 2.789 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001268/1.437, allocations: 36 kB / 0.8245 GB, free: 2.754 MB / 490.7 MB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.029/1.466, allocations: 14.74 MB / 0.8389 GB, free: 3.969 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001532/1.466, allocations: 64.25 kB / 0.8389 GB, free: 3.906 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000204/1.467, allocations: 128 kB / 0.8391 GB, free: 3.781 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008529/1.475, allocations: 2.929 MB / 0.8419 GB, free: 0.8438 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006691/1.482, allocations: 1.801 MB / 0.8437 GB, free: 15.04 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02121/1.503, allocations: 14.87 MB / 0.8582 GB, free: 15.9 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006403/1.509, allocations: 0.4995 MB / 0.8587 GB, free: 15.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001604/1.511, allocations: 431.9 kB / 0.8591 GB, free: 14.98 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 (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.006558/1.518, allocations: 2.872 MB / 0.8619 GB, free: 12.09 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001721/1.519, allocations: 458.1 kB / 0.8624 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02418/1.544, allocations: 10.94 MB / 0.873 GB, free: 0.6445 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.41e-05/1.544, allocations: 63.98 kB / 0.8731 GB, free: 0.582 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.482e-05/1.544, allocations: 8.094 kB / 0.8731 GB, free: 0.5742 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000119/1.544, allocations: 23.88 kB / 0.8731 GB, free: 0.5508 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3386/1.882, allocations: 21.68 MB / 0.8943 GB, free: 175.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.49e-05/1.883, allocations: 11.78 kB / 0.8943 GB, free: 175.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003512/1.886, allocations: 0.6807 MB / 0.895 GB, free: 175.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008138/1.894, allocations: 2.736 MB / 0.8976 GB, free: 175.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00106/1.895, allocations: 78.91 kB / 0.8977 GB, free: 175.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01831/1.914, allocations: 13.58 MB / 0.911 GB, free: 169.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.601e-05/1.914, allocations: 17.56 kB / 0.911 GB, free: 169.6 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1497/2.063, allocations: 86.45 MB / 0.9954 GB, free: 103.8 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001333/2.065, allocations: 499.1 kB / 0.9959 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00169/2.066, allocations: 78.27 kB / 0.996 GB, free: 103.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003673/2.07, allocations: 315.7 kB / 0.9963 GB, free: 102.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001209/2.071, allocations: 268.1 kB / 0.9965 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003884/2.072, allocations: 120 kB / 0.9966 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003229/2.075, allocations: 2.689 MB / 0.9993 GB, free: 99.88 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.81e-07/2.075, allocations: 0 / 0.9993 GB, free: 99.88 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.007769/2.083, allocations: 2.168 MB / 1.001 GB, free: 97.71 MB / 0.5417 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.0008519/2.084, allocations: 237.7 kB / 1.002 GB, free: 97.49 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0135/2.097, allocations: 10.02 MB / 1.011 GB, free: 87.47 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.496e-05/2.097, allocations: 4 kB / 1.011 GB, free: 87.47 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.006042/2.103, allocations: 4.383 MB / 1.016 GB, free: 83.06 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0041/2.107, allocations: 0.6764 MB / 1.016 GB, free: 82.39 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02815/2.136, allocations: 21.99 MB / 1.038 GB, free: 60.2 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006316/2.142, allocations: 4.692 MB / 1.042 GB, free: 55.46 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.006466/2.148, allocations: 2.762 MB / 1.045 GB, free: 52.69 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001814/2.15, allocations: 355.4 kB / 1.045 GB, free: 52.34 MB / 0.5417 GB Notification: Performance of SimCode: time 1.072e-06/2.15, allocations: 0 / 1.045 GB, free: 52.34 MB / 0.5417 GB Notification: Performance of Templates: time 0.4255/2.576, allocations: 90.74 MB / 1.134 GB, free: 151.6 MB / 0.5417 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches