Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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 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) 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_4.0.0_ModelicaTest.MultiBody.Joints.Revolute") translateModel(ModelicaTest.MultiBody.Joints.Revolute,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_4.0.0_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.0009682/0.0009685, allocations: 100.5 kB / 17 MB, free: 6.844 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.001212/0.001212, allocations: 186.2 kB / 17.89 MB, free: 6.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.496/1.496, allocations: 223.2 MB / 241.9 MB, free: 304 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.251/0.251, allocations: 44.25 MB / 337.3 MB, free: 2.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002752/0.0002752, allocations: 11.94 kB / 409.7 MB, free: 27.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1113, allocations: 61.92 MB / 471.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.02579/0.1371, allocations: 26.8 MB / 498.4 MB, free: 2.824 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01485/0.152, allocations: 6.412 MB / 0.493 GB, free: 12.39 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004872/0.1569, allocations: 123.7 kB / 0.4931 GB, free: 12.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004538/0.1615, allocations: 1.279 MB / 0.4943 GB, free: 10.99 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01151/0.1731, allocations: 3.997 MB / 0.4982 GB, free: 6.977 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001659/0.1747, allocations: 415.3 kB / 0.4986 GB, free: 6.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004789/0.1796, allocations: 3.847 MB / 0.5024 GB, free: 2.715 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003012/0.1826, allocations: 2.245 MB / 0.5046 GB, free: 432 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2546/0.4372, allocations: 1.018 MB / 0.5056 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004101/0.4413, allocations: 1.667 MB / 0.5072 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007299/0.4421, allocations: 132.1 kB / 0.5073 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002947/0.445, allocations: 0.7628 MB / 0.5081 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004413/0.4495, allocations: 1.464 MB / 0.5095 GB, free: 12.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00225/0.4518, allocations: 0.7418 MB / 0.5102 GB, free: 12.7 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008733/0.4605, allocations: 4.714 MB / 0.5148 GB, free: 12.39 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.4606, allocations: 1.375 kB / 0.5148 GB, free: 12.39 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.4606, allocations: 0.8125 kB / 0.5148 GB, free: 12.39 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002187/0.4608, allocations: 0 / 0.5148 GB, free: 12.39 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.007221/0.468, allocations: 3.455 MB / 0.5182 GB, free: 10.69 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.4681, allocations: 8.781 kB / 0.5182 GB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009937/0.478, allocations: 3.167 MB / 0.5213 GB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004664/0.4827, allocations: 1.855 MB / 0.5231 GB, free: 9.957 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001868/0.4829, allocations: 194.6 kB / 0.5233 GB, free: 9.945 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007116/0.4836, allocations: 249.8 kB / 0.5236 GB, free: 9.941 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01645/0.5001, allocations: 10.47 MB / 0.5338 GB, free: 7.332 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.168e-05/0.5002, allocations: 26.69 kB / 0.5338 GB, free: 7.328 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003959/0.5006, allocations: 116.2 kB / 0.5339 GB, free: 7.328 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003745/0.5044, allocations: 2.56 MB / 0.5364 GB, free: 6.738 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02397/0.5284, allocations: 9.88 MB / 0.5461 GB, free: 1.402 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05993/0.5884, allocations: 34.46 MB / 0.5797 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01194/0.6004, allocations: 5.181 MB / 0.5848 GB, free: 11.54 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003861/0.6043, allocations: 2.289 MB / 0.587 GB, free: 9.25 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001785/0.6061, allocations: 1.878 MB / 0.5888 GB, free: 7.047 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001026/0.6062, allocations: 52.56 kB / 0.5889 GB, free: 6.988 MB / 430.1 MB Notification: Performance of pre-optimization done (n=229): time 9.077e-06/0.6063, allocations: 0 / 0.5889 GB, free: 6.988 MB / 430.1 MB Notification: Performance of matching and sorting (n=235): time 0.03136/0.6376, allocations: 13.93 MB / 0.6025 GB, free: 9.031 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.779e-05/0.6377, allocations: 69.41 kB / 0.6026 GB, free: 8.953 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003427/0.6411, allocations: 2.615 MB / 0.6051 GB, free: 6.32 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001502/0.6413, allocations: 53.7 kB / 0.6052 GB, free: 6.262 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001629/0.6429, allocations: 2.642 MB / 0.6078 GB, free: 3.629 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007646/0.6437, allocations: 0.8488 MB / 0.6086 GB, free: 2.789 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002463/0.644, allocations: 104 kB / 0.6087 GB, free: 2.688 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003191/0.6443, allocations: 0.5292 MB / 0.6092 GB, free: 2.152 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00309/0.6474, allocations: 2.187 MB / 0.6113 GB, free: 15.96 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004911/0.6523, allocations: 5.05 MB / 0.6163 GB, free: 9.551 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00461/0.6569, allocations: 3.31 MB / 0.6195 GB, free: 6.332 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.142e-05/0.657, allocations: 28 kB / 0.6195 GB, free: 6.305 MB / 462.1 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01284/0.6698, allocations: 7.843 MB / 0.6272 GB, free: 15.05 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.415e-05/0.67, allocations: 48.19 kB / 0.6272 GB, free: 15 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001039/0.6701, allocations: 104 kB / 0.6273 GB, free: 14.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002028/0.6721, allocations: 0.8045 MB / 0.6281 GB, free: 14.09 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003806/0.6759, allocations: 1.183 MB / 0.6293 GB, free: 12.92 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005368/0.6813, allocations: 4.198 MB / 0.6334 GB, free: 8.59 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003341/0.6847, allocations: 291.8 kB / 0.6336 GB, free: 8.305 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006602/0.6854, allocations: 303.1 kB / 0.6339 GB, free: 8.012 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 454 * Number of states: 0 () * Number of discrete variables: 29 (axis.arrowLine.twoHeadedArrow,axis.headAtOrigin,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 (635): * Single equations (assignments): 628 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004083/0.6895, allocations: 2.024 MB / 0.6359 GB, free: 5.977 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000483/0.69, allocations: 260.5 kB / 0.6362 GB, free: 5.719 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008131/0.6981, allocations: 4.712 MB / 0.6408 GB, free: 0.9844 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.429e-05/0.6982, allocations: 43.98 kB / 0.6408 GB, free: 0.9414 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.097e-06/0.6982, allocations: 4 kB / 0.6408 GB, free: 0.9375 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.92e-05/0.6982, allocations: 9.719 kB / 0.6408 GB, free: 0.9297 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01987/0.7181, allocations: 10.52 MB / 0.6511 GB, free: 6.309 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-05/0.7181, allocations: 4.094 kB / 0.6511 GB, free: 6.305 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001587/0.7197, allocations: 367.3 kB / 0.6514 GB, free: 5.945 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001916/0.7217, allocations: 0.6644 MB / 0.6521 GB, free: 5.277 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002599/0.722, allocations: 45.62 kB / 0.6521 GB, free: 5.234 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004915/0.7269, allocations: 3.647 MB / 0.6557 GB, free: 1.449 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-05/0.7269, allocations: 16 kB / 0.6557 GB, free: 1.434 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01152/0.7384, allocations: 7.104 MB / 0.6626 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001007/0.7395, allocations: 317.6 kB / 0.6629 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007898/0.7403, allocations: 39.98 kB / 0.663 GB, free: 9.848 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001734/0.7421, allocations: 147.4 kB / 0.6631 GB, free: 9.707 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003647/0.7424, allocations: 129 kB / 0.6633 GB, free: 9.582 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000205/0.7427, allocations: 67.98 kB / 0.6633 GB, free: 9.516 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003954/0.7466, allocations: 1.595 MB / 0.6649 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of sort global known variables: time 5.61e-07/0.7466, allocations: 0 / 0.6649 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005744/0.7524, allocations: 0.9256 MB / 0.6658 GB, free: 6.988 MB / 0.4981 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006766/0.7531, allocations: 179.5 kB / 0.6659 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0093/0.7624, allocations: 5.326 MB / 0.6712 GB, free: 1.492 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.185e-05/0.7625, allocations: 288 / 0.6712 GB, free: 1.492 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.003062/0.7655, allocations: 2.014 MB / 0.6731 GB, free: 15.47 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003727/0.7693, allocations: 361 kB / 0.6735 GB, free: 15.12 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01999/0.7893, allocations: 11.12 MB / 0.6843 GB, free: 3.891 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004549/0.7939, allocations: 3.164 MB / 0.6874 GB, free: 0.6992 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.005076/0.799, allocations: 1.961 MB / 0.6893 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001028/0.8, allocations: 199.4 kB / 0.6895 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of SimCode: time 1.403e-06/0.8001, allocations: 0 / 0.6895 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of Templates: time 0.3117/1.112, allocations: 28.62 MB / 0.7175 GB, free: 155.3 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute/Revolute.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Joints.Revolute.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches