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.001571/0.001571, allocations: 105.4 kB / 18.4 MB, free: 4.695 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.001813/0.001813, allocations: 192 kB / 19.34 MB, free: 3.766 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.341/1.341, allocations: 222.9 MB / 243 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2324/0.2324, allocations: 44.19 MB / 337.4 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 70.86 kB / 409.9 MB, free: 26.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1055, allocations: 60.83 MB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01227/0.1178, allocations: 12.31 MB / 483 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007438/0.1253, allocations: 3.933 MB / 487 MB, free: 13.33 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001457/0.1268, allocations: 63.88 kB / 487 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002403/0.1292, allocations: 1.315 MB / 488.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003449/0.1327, allocations: 1.755 MB / 490.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.1338, allocations: 487 kB / 490.6 MB, free: 9.707 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003943/0.1377, allocations: 3.592 MB / 494.2 MB, free: 6.109 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002258/0.14, allocations: 2.028 MB / 496.2 MB, free: 4.039 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001742/0.1417, allocations: 1.199 MB / 497.4 MB, free: 2.836 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001859/0.1436, allocations: 1.717 MB / 499.1 MB, free: 1.113 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003974/0.144, allocations: 236 kB / 499.3 MB, free: 0.8828 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001642/0.1457, allocations: 0.9517 MB / 0.4886 GB, free: 15.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001446/0.1471, allocations: 1.593 MB / 0.4901 GB, free: 14.33 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001849/0.149, allocations: 1.898 MB / 0.492 GB, free: 12.42 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005745/0.1548, allocations: 6.239 MB / 0.4981 GB, free: 6.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.1548, allocations: 0 / 0.4981 GB, free: 6.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.494e-06/0.1548, allocations: 0 / 0.4981 GB, free: 6.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001698/0.155, allocations: 0 / 0.4981 GB, free: 6.16 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.009269/0.1643, allocations: 4.154 MB / 0.5021 GB, free: 1.941 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.63e-05/0.1643, allocations: 8.031 kB / 0.5021 GB, free: 1.934 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2509/0.4153, allocations: 3.075 MB / 0.5051 GB, free: 46.49 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004877/0.4202, allocations: 1.903 MB / 0.507 GB, free: 45.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001482/0.4204, allocations: 192.7 kB / 0.5072 GB, free: 45.88 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007811/0.4212, allocations: 249.3 kB / 0.5074 GB, free: 45.83 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01868/0.4399, allocations: 10.49 MB / 0.5176 GB, free: 41.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.178e-05/0.44, allocations: 23.36 kB / 0.5177 GB, free: 41.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003748/0.4404, allocations: 119.4 kB / 0.5178 GB, free: 41.62 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004125/0.4445, allocations: 2.555 MB / 0.5203 GB, free: 41.19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01795/0.4625, allocations: 9.924 MB / 0.53 GB, free: 33.38 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03821/0.5007, allocations: 34.27 MB / 0.5634 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009556/0.5103, allocations: 5.187 MB / 0.5685 GB, free: 8.965 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003127/0.5135, allocations: 2.3 MB / 0.5707 GB, free: 6.668 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001721/0.5152, allocations: 1.88 MB / 0.5726 GB, free: 4.453 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.184e-05/0.5153, allocations: 55.28 kB / 0.5726 GB, free: 4.395 MB / 398.1 MB Notification: Performance of pre-optimization done (n=229): time 4.739e-06/0.5153, allocations: 0 / 0.5726 GB, free: 4.395 MB / 398.1 MB Notification: Performance of matching and sorting (n=235): time 0.03466/0.55, allocations: 13.98 MB / 0.5863 GB, free: 6.355 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.575e-05/0.5501, allocations: 69.41 kB / 0.5863 GB, free: 6.277 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004165/0.5543, allocations: 2.643 MB / 0.5889 GB, free: 3.613 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002549/0.5545, allocations: 49.7 kB / 0.589 GB, free: 3.559 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00183/0.5564, allocations: 2.632 MB / 0.5915 GB, free: 0.8867 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008911/0.5573, allocations: 0.8518 MB / 0.5924 GB, free: 24 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001782/0.5591, allocations: 1.04 MB / 0.5934 GB, free: 14.97 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.737e-05/0.5592, allocations: 309.1 kB / 0.5937 GB, free: 14.67 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003277/0.5625, allocations: 2.208 MB / 0.5958 GB, free: 12.45 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005238/0.5677, allocations: 5.067 MB / 0.6008 GB, free: 5.977 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009338/0.5771, allocations: 7.981 MB / 0.6086 GB, free: 12.59 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.03e-05/0.5772, allocations: 28 kB / 0.6086 GB, free: 12.57 MB / 446.1 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01468/0.5919, allocations: 7.879 MB / 0.6163 GB, free: 4.668 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001083/0.592, allocations: 48 kB / 0.6164 GB, free: 4.621 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000162/0.5922, allocations: 100 kB / 0.6165 GB, free: 4.523 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002239/0.5945, allocations: 0.7928 MB / 0.6172 GB, free: 3.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004104/0.5986, allocations: 1.185 MB / 0.6184 GB, free: 2.543 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006117/0.6047, allocations: 4.528 MB / 0.6228 GB, free: 13.89 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004004/0.6087, allocations: 291.8 kB / 0.6231 GB, free: 13.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008644/0.6096, allocations: 304.8 kB / 0.6234 GB, free: 13.3 MB / 462.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 (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.003851/0.6135, allocations: 2.02 MB / 0.6253 GB, free: 11.27 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006594/0.6142, allocations: 256.6 kB / 0.6256 GB, free: 11.02 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008225/0.6224, allocations: 4.717 MB / 0.6302 GB, free: 6.273 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.066e-05/0.6225, allocations: 51.97 kB / 0.6302 GB, free: 6.223 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-05/0.6225, allocations: 4 kB / 0.6303 GB, free: 6.219 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-05/0.6225, allocations: 7.969 kB / 0.6303 GB, free: 6.211 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01872/0.6413, allocations: 10.5 MB / 0.6405 GB, free: 11.55 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.9e-05/0.6413, allocations: 8 kB / 0.6405 GB, free: 11.54 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001466/0.6428, allocations: 355.6 kB / 0.6409 GB, free: 11.19 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001944/0.6447, allocations: 0.6642 MB / 0.6415 GB, free: 10.52 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001978/0.6449, allocations: 43.98 kB / 0.6416 GB, free: 10.48 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005096/0.6501, allocations: 3.898 MB / 0.6454 GB, free: 6.441 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.318e-06/0.6501, allocations: 11.94 kB / 0.6454 GB, free: 6.43 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01085/0.6609, allocations: 7.143 MB / 0.6523 GB, free: 15.17 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009589/0.6619, allocations: 313.6 kB / 0.6526 GB, free: 14.84 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006884/0.6626, allocations: 36 kB / 0.6527 GB, free: 14.81 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001447/0.6641, allocations: 147.8 kB / 0.6528 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004185/0.6645, allocations: 137.1 kB / 0.653 GB, free: 14.53 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001811/0.6647, allocations: 63.94 kB / 0.653 GB, free: 14.47 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003188/0.6679, allocations: 1.623 MB / 0.6546 GB, free: 12.84 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6679, allocations: 3.938 kB / 0.6546 GB, free: 12.83 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004816/0.6727, allocations: 0.9283 MB / 0.6555 GB, free: 11.91 MB / 494.1 MB 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.0005749/0.6733, allocations: 180.2 kB / 0.6557 GB, free: 11.72 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.00831/0.6817, allocations: 5.387 MB / 0.6609 GB, free: 6.348 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/0.6817, allocations: 0 / 0.6609 GB, free: 6.348 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002579/0.6843, allocations: 2.027 MB / 0.6629 GB, free: 4.316 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002194/0.6865, allocations: 359 kB / 0.6633 GB, free: 3.969 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01541/0.7019, allocations: 9.327 MB / 0.6724 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005318/0.7073, allocations: 3.175 MB / 0.6755 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.006762/0.7141, allocations: 1.957 MB / 0.6774 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00124/0.7153, allocations: 207.4 kB / 0.6776 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of SimCode: time 1.433e-06/0.7153, allocations: 0 / 0.6776 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of Templates: time 0.2884/1.004, allocations: 27.02 MB / 0.704 GB, free: 171.2 MB / 0.5137 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/Revolute/Revolute.csv","/var/lib/jenkins1/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