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.0008548/0.0008549, allocations: 97.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009492/0.0009492, allocations: 206 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.495/1.495, allocations: 227.7 MB / 246.8 MB, free: 11.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2218/0.2218, allocations: 46.2 MB / 345.2 MB, free: 11.4 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002961/0.0002961, allocations: 8 kB / 419.5 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1556/0.1559, allocations: 63.55 MB / 483.1 MB, free: 4.152 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.3589/0.5148, allocations: 61.51 MB / 0.5318 GB, free: 9.121 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03315/0.548, allocations: 12.53 MB / 0.5441 GB, free: 1.949 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01701/0.5651, allocations: 272.8 kB / 0.5443 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003002/0.5681, allocations: 0.6142 MB / 0.5449 GB, free: 1.672 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008893/0.577, allocations: 2.403 MB / 0.5473 GB, free: 356 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002892/0.58, allocations: 0.9418 MB / 0.5482 GB, free: 15.74 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01611/0.5961, allocations: 10.36 MB / 0.5583 GB, free: 9.758 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009575/0.6057, allocations: 5.384 MB / 0.5636 GB, free: 4.312 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004235/0.61, allocations: 1.735 MB / 0.5653 GB, free: 2.57 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005359/0.6154, allocations: 3.115 MB / 0.5683 GB, free: 15.45 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001312/0.6167, allocations: 216 kB / 0.5685 GB, free: 15.23 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00347/0.6202, allocations: 1.127 MB / 0.5696 GB, free: 14.11 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003471/0.6237, allocations: 2.567 MB / 0.5721 GB, free: 11.53 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005751/0.6295, allocations: 2.897 MB / 0.5749 GB, free: 8.609 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01399/0.6435, allocations: 9.218 MB / 0.5839 GB, free: 15.36 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.528e-06/0.6436, allocations: 7.938 kB / 0.584 GB, free: 15.35 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.897e-06/0.6436, allocations: 0 / 0.584 GB, free: 15.35 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0003834/0.644, allocations: 0 / 0.584 GB, free: 15.35 MB / 430.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.01755/0.6615, allocations: 5.936 MB / 0.5897 GB, free: 9.34 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.979e-05/0.6616, allocations: 8.875 kB / 0.5898 GB, free: 9.332 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01696/0.6786, allocations: 3.947 MB / 0.5936 GB, free: 5.371 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009803/0.6884, allocations: 3.936 MB / 0.5975 GB, free: 1.375 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000344/0.6888, allocations: 316.4 kB / 0.5978 GB, free: 1.062 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001855/0.6907, allocations: 439.9 kB / 0.5982 GB, free: 0.6328 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03375/0.7244, allocations: 15.63 MB / 0.6134 GB, free: 276 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002755/0.7248, allocations: 59.5 kB / 0.6135 GB, free: 216 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008201/0.7256, allocations: 199.8 kB / 0.6137 GB, free: 16 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006643/0.7323, allocations: 3.376 MB / 0.617 GB, free: 12.63 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03381/0.7661, allocations: 14.85 MB / 0.6315 GB, free: 13.76 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08774/0.8539, allocations: 55.23 MB / 0.6854 GB, free: 5.336 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0191/0.873, allocations: 8.219 MB / 0.6935 GB, free: 12.89 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007436/0.8805, allocations: 4.837 MB / 0.6982 GB, free: 8.047 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002423/0.883, allocations: 2.2 MB / 0.7003 GB, free: 5.457 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.958e-05/0.8831, allocations: 65.08 kB / 0.7004 GB, free: 5.383 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=367): time 7.193e-06/0.8831, allocations: 4 kB / 0.7004 GB, free: 5.379 MB / 0.5294 GB Notification: Performance of matching and sorting (n=419): time 0.4176/1.301, allocations: 40.15 MB / 0.7396 GB, free: 171.4 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.562e-05/1.301, allocations: 118.4 kB / 0.7397 GB, free: 171.3 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005144/1.306, allocations: 4.282 MB / 0.7439 GB, free: 167.1 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007979/1.307, allocations: 85.7 kB / 0.744 GB, free: 167 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001826/1.309, allocations: 3.786 MB / 0.7477 GB, free: 163.2 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001524/1.31, allocations: 1.492 MB / 0.7491 GB, free: 161.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007683/1.311, allocations: 0.6835 MB / 0.7498 GB, free: 161.1 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.095e-05/1.311, allocations: 301.1 kB / 0.7501 GB, free: 160.8 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004643/1.316, allocations: 4.076 MB / 0.7541 GB, free: 156.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006199/1.322, allocations: 7.845 MB / 0.7617 GB, free: 147.1 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0124/1.334, allocations: 12.88 MB / 0.7743 GB, free: 132.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.707e-05/1.334, allocations: 40 kB / 0.7744 GB, free: 132.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1039) (initialization): time 0.02276/1.357, allocations: 14.72 MB / 0.7887 GB, free: 117.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.178e-05/1.357, allocations: 63.94 kB / 0.7888 GB, free: 117.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001036/1.357, allocations: 128 kB / 0.7889 GB, free: 117.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007389/1.365, allocations: 2.936 MB / 0.7918 GB, free: 114.5 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005962/1.371, allocations: 1.809 MB / 0.7935 GB, free: 112.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01678/1.388, allocations: 14.86 MB / 0.8081 GB, free: 97.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00588/1.393, allocations: 0.4996 MB / 0.8085 GB, free: 97.07 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001004/1.395, allocations: 431.9 kB / 0.809 GB, free: 96.65 MB / 0.5294 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.004596/1.399, allocations: 2.872 MB / 0.8118 GB, free: 93.77 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008161/1.4, allocations: 453.4 kB / 0.8122 GB, free: 93.33 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01717/1.417, allocations: 10.94 MB / 0.8229 GB, free: 82.34 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.526e-05/1.417, allocations: 60 kB / 0.8229 GB, free: 82.28 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.003e-05/1.417, allocations: 8 kB / 0.8229 GB, free: 82.27 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.262e-05/1.417, allocations: 19.92 kB / 0.823 GB, free: 82.25 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03664/1.454, allocations: 21.7 MB / 0.8442 GB, free: 60.32 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.158e-05/1.454, allocations: 8.938 kB / 0.8442 GB, free: 60.32 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003292/1.457, allocations: 0.6825 MB / 0.8448 GB, free: 59.63 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007563/1.465, allocations: 2.734 MB / 0.8475 GB, free: 56.89 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006856/1.466, allocations: 83.92 kB / 0.8476 GB, free: 56.81 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0157/1.481, allocations: 13.6 MB / 0.8609 GB, free: 42.94 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.461e-05/1.481, allocations: 16.31 kB / 0.8609 GB, free: 42.93 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02345/1.505, allocations: 15.56 MB / 0.8761 GB, free: 27.1 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001301/1.506, allocations: 0.4991 MB / 0.8766 GB, free: 26.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001286/1.508, allocations: 79.81 kB / 0.8766 GB, free: 26.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003079/1.511, allocations: 323.5 kB / 0.8769 GB, free: 26.18 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007765/1.511, allocations: 262 kB / 0.8772 GB, free: 25.93 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000282/1.512, allocations: 112 kB / 0.8773 GB, free: 25.82 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003359/1.515, allocations: 2.681 MB / 0.8799 GB, free: 23.13 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.71e-07/1.515, allocations: 4 kB / 0.8799 GB, free: 23.13 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007269/1.522, allocations: 1.656 MB / 0.8815 GB, free: 21.48 MB / 0.5294 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.001055/1.523, allocations: 227.8 kB / 0.8817 GB, free: 21.25 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01408/1.537, allocations: 10.03 MB / 0.8915 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.227e-05/1.538, allocations: 4 kB / 0.8916 GB, free: 11.19 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.006438/1.544, allocations: 4.372 MB / 0.8958 GB, free: 6.797 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01129/1.555, allocations: 0.6859 MB / 0.8965 GB, free: 6.113 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3037/1.859, allocations: 19.02 MB / 0.9151 GB, free: 176.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01039/1.87, allocations: 4.542 MB / 0.9195 GB, free: 175.9 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008794/1.878, allocations: 2.723 MB / 0.9222 GB, free: 175.9 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002111/1.881, allocations: 349 kB / 0.9225 GB, free: 175.9 MB / 0.545 GB Notification: Performance of SimCode: time 1.162e-06/1.881, allocations: 0 / 0.9225 GB, free: 175.9 MB / 0.545 GB Notification: Performance of Templates: time 0.1152/1.996, allocations: 67.79 MB / 0.9887 GB, free: 124.6 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute2/Revolute2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches