Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute.conf.json 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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Joints.Revolute,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute") translateModel(ModelicaTest.MultiBody.Joints.Revolute,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001812/0.001812, allocations: 112.3 kB / 16.41 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001957/0.001957, allocations: 185.1 kB / 17.34 MB, free: 5.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.434/1.434, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2505/0.2505, allocations: 43.52 MB / 314.1 MB, free: 476 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 67.89 kB / 441.8 MB, free: 5.672 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1064, allocations: 57.8 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01293/0.1194, allocations: 12.67 MB / 0.5003 GB, free: 15.07 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.007862/0.1273, allocations: 3.965 MB / 0.5041 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001647/0.129, allocations: 63.88 kB / 0.5042 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00277/0.1318, allocations: 1.327 MB / 0.5055 GB, free: 9.699 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004471/0.1363, allocations: 1.825 MB / 0.5073 GB, free: 7.867 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001303/0.1376, allocations: 491 kB / 0.5077 GB, free: 7.387 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.004442/0.1421, allocations: 3.676 MB / 0.5113 GB, free: 3.703 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002673/0.1448, allocations: 2.044 MB / 0.5133 GB, free: 1.617 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001902/0.1467, allocations: 1.234 MB / 0.5145 GB, free: 388 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002379/0.1491, allocations: 1.744 MB / 0.5162 GB, free: 14.62 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006485/0.1498, allocations: 236 kB / 0.5165 GB, free: 14.39 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00184/0.1516, allocations: 0.9477 MB / 0.5174 GB, free: 13.45 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001518/0.1531, allocations: 1.624 MB / 0.519 GB, free: 11.82 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001957/0.1551, allocations: 1.948 MB / 0.5209 GB, free: 9.859 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005966/0.1611, allocations: 6.363 MB / 0.5271 GB, free: 3.473 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1611, allocations: 4 kB / 0.5271 GB, free: 3.469 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1611, allocations: 0 / 0.5271 GB, free: 3.469 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001081/0.1612, allocations: 0 / 0.5271 GB, free: 3.469 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1571 * Number of variables: 1571 Notification: Performance of Generate backend data structure: time 0.2194/0.3807, allocations: 4.232 MB / 0.5312 GB, free: 37.45 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.483e-05/0.3807, allocations: 13.95 kB / 0.5312 GB, free: 37.45 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01096/0.3917, allocations: 3.073 MB / 0.5342 GB, free: 37.18 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003747/0.3955, allocations: 1.962 MB / 0.5362 GB, free: 36.57 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000135/0.3956, allocations: 195.5 kB / 0.5363 GB, free: 36.56 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005916/0.3962, allocations: 261.9 kB / 0.5366 GB, free: 36.55 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01614/0.4124, allocations: 10.69 MB / 0.547 GB, free: 32.67 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.803e-05/0.4125, allocations: 27.3 kB / 0.5471 GB, free: 32.66 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003682/0.4129, allocations: 126.8 kB / 0.5472 GB, free: 32.57 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004233/0.4171, allocations: 2.646 MB / 0.5498 GB, free: 31.95 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01647/0.4336, allocations: 10.03 MB / 0.5596 GB, free: 25.02 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0444/0.478, allocations: 35.08 MB / 0.5938 GB, free: 5.125 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009725/0.4878, allocations: 5.184 MB / 0.5989 GB, free: 15.72 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003018/0.4909, allocations: 2.299 MB / 0.6011 GB, free: 13.42 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001734/0.4926, allocations: 1.876 MB / 0.603 GB, free: 11.21 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.418e-05/0.4927, allocations: 52.56 kB / 0.603 GB, free: 11.15 MB / 446.1 MB Notification: Performance of pre-optimization done (n=229): time 6.031e-06/0.4927, allocations: 0 / 0.603 GB, free: 11.15 MB / 446.1 MB Notification: Performance of matching and sorting (n=235): time 0.03453/0.5272, allocations: 14.04 MB / 0.6167 GB, free: 13.05 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.07e-05/0.5273, allocations: 69.41 kB / 0.6168 GB, free: 12.97 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005057/0.5324, allocations: 2.672 MB / 0.6194 GB, free: 10.28 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004287/0.5329, allocations: 57.7 kB / 0.6195 GB, free: 10.22 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002098/0.535, allocations: 2.697 MB / 0.6221 GB, free: 7.48 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001242/0.5362, allocations: 0.8595 MB / 0.6229 GB, free: 6.609 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002163/0.5384, allocations: 1.056 MB / 0.624 GB, free: 5.543 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.5385, allocations: 309.1 kB / 0.6243 GB, free: 5.238 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003757/0.5423, allocations: 2.216 MB / 0.6264 GB, free: 3.016 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00623/0.5485, allocations: 5.13 MB / 0.6314 GB, free: 12.45 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00974/0.5583, allocations: 8.062 MB / 0.6393 GB, free: 2.965 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.098e-05/0.5584, allocations: 32 kB / 0.6393 GB, free: 2.934 MB / 478.1 MB Notification: Performance of matching and sorting (n=704) (initialization): time 0.01451/0.5729, allocations: 7.953 MB / 0.6471 GB, free: 10.97 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001325/0.5731, allocations: 48 kB / 0.6471 GB, free: 10.92 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002146/0.5733, allocations: 104.6 kB / 0.6472 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002405/0.5758, allocations: 0.7928 MB / 0.648 GB, free: 10.03 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00421/0.58, allocations: 1.205 MB / 0.6492 GB, free: 8.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006679/0.5867, allocations: 4.515 MB / 0.6536 GB, free: 4.172 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004607/0.5913, allocations: 291.8 kB / 0.6539 GB, free: 3.887 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001449/0.5928, allocations: 315.5 kB / 0.6542 GB, free: 3.582 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 463 * Number of states: 0 () * Number of discrete variables: 27 (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 (644): * Single equations (assignments): 637 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004757/0.5976, allocations: 2.059 MB / 0.6562 GB, free: 1.504 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000774/0.5984, allocations: 264.5 kB / 0.6564 GB, free: 1.242 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009468/0.6079, allocations: 4.728 MB / 0.6611 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.481e-05/0.608, allocations: 40 kB / 0.6611 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.928e-05/0.608, allocations: 7.125 kB / 0.6611 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.901e-05/0.6081, allocations: 11.95 kB / 0.6611 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01795/0.626, allocations: 10.6 MB / 0.6715 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.378e-05/0.6261, allocations: 11.94 kB / 0.6715 GB, free: 1.664 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001536/0.6276, allocations: 359.4 kB / 0.6718 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00205/0.6297, allocations: 0.6567 MB / 0.6725 GB, free: 0.6523 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001777/0.6298, allocations: 36 kB / 0.6725 GB, free: 0.6172 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004986/0.6348, allocations: 3.915 MB / 0.6763 GB, free: 12.56 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/0.6349, allocations: 8.094 kB / 0.6763 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01056/0.6454, allocations: 7.136 MB / 0.6833 GB, free: 5.301 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001362/0.6468, allocations: 0.6576 MB / 0.6839 GB, free: 4.621 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004093/0.6473, allocations: 39.98 kB / 0.684 GB, free: 4.582 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001231/0.6485, allocations: 143.8 kB / 0.6841 GB, free: 4.441 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003273/0.6488, allocations: 133 kB / 0.6842 GB, free: 4.309 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001709/0.649, allocations: 67.97 kB / 0.6843 GB, free: 4.242 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.002641/0.6517, allocations: 1.64 MB / 0.6859 GB, free: 2.594 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6517, allocations: 4 kB / 0.6859 GB, free: 2.59 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004085/0.6558, allocations: 0.944 MB / 0.6868 GB, free: 1.648 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 2 (revolute.phi,revolute.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 (178): * Single equations (assignments): 171 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004183/0.6562, allocations: 181.3 kB / 0.687 GB, free: 1.465 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007767/0.664, allocations: 5.421 MB / 0.6923 GB, free: 12.06 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/0.664, allocations: 0 / 0.6923 GB, free: 12.06 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002592/0.6666, allocations: 2.016 MB / 0.6943 GB, free: 10.03 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001836/0.6684, allocations: 359.6 kB / 0.6946 GB, free: 9.684 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0144/0.6828, allocations: 9.494 MB / 0.7039 GB, free: 76 kB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003454/0.6863, allocations: 3.228 MB / 0.707 GB, free: 12.81 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004035/0.6904, allocations: 1.965 MB / 0.709 GB, free: 10.84 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006468/0.6911, allocations: 203.4 kB / 0.7092 GB, free: 10.64 MB / 0.545 GB Notification: Performance of SimCode: time 1.483e-06/0.6911, allocations: 4 kB / 0.7092 GB, free: 10.63 MB / 0.545 GB Notification: Performance of Templates: time 0.05429/0.7454, allocations: 28.87 MB / 0.7373 GB, free: 13.77 MB / 0.5762 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Joints/Revolute/Revolute.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Joints.Revolute.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches