Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.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.Revolute,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute") translateModel(ModelicaTest.MultiBody.Joints.Revolute,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00113/0.001131, allocations: 118.8 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001447/0.001447, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2158/0.2158, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 76.06 kB / 481.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3526/0.3539, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01398/0.3679, allocations: 12.28 MB / 0.543 GB, free: 3.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009059/0.377, allocations: 3.934 MB / 0.5468 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001969/0.379, allocations: 61.34 kB / 0.5469 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002709/0.3818, allocations: 1.319 MB / 0.5482 GB, free: 32 kB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004071/0.3859, allocations: 1.714 MB / 0.5498 GB, free: 14.37 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001122/0.387, allocations: 499 kB / 0.5503 GB, free: 13.88 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004394/0.3914, allocations: 3.615 MB / 0.5538 GB, free: 10.27 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002089/0.3935, allocations: 2.013 MB / 0.5558 GB, free: 8.223 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001267/0.3948, allocations: 1.195 MB / 0.557 GB, free: 7.023 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00184/0.3967, allocations: 1.709 MB / 0.5587 GB, free: 5.309 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003971/0.3971, allocations: 236 kB / 0.5589 GB, free: 5.078 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00164/0.3987, allocations: 0.94 MB / 0.5598 GB, free: 4.137 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001232/0.4, allocations: 1.57 MB / 0.5613 GB, free: 2.562 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001554/0.4015, allocations: 1.875 MB / 0.5632 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00554/0.4071, allocations: 6.171 MB / 0.5692 GB, free: 10.48 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.854e-06/0.4071, allocations: 0 / 0.5692 GB, free: 10.48 MB / 430.1 MB Notification: Performance of FrontEnd: time 4.007e-06/0.4071, allocations: 0 / 0.5692 GB, free: 10.48 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001362/0.4073, allocations: 7.922 kB / 0.5692 GB, free: 10.48 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: 1528 * Number of variables: 1528 Notification: Performance of Generate backend data structure: time 0.008056/0.4153, allocations: 4.128 MB / 0.5732 GB, free: 6.281 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.4154, allocations: 8.031 kB / 0.5732 GB, free: 6.273 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01018/0.4256, allocations: 3.068 MB / 0.5762 GB, free: 3.195 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003523/0.4291, allocations: 1.869 MB / 0.5781 GB, free: 1.277 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001256/0.4293, allocations: 193 kB / 0.5782 GB, free: 1.086 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004901/0.4298, allocations: 251.9 kB / 0.5785 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01362/0.4434, allocations: 10.48 MB / 0.5887 GB, free: 5.922 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.849e-05/0.4435, allocations: 27.7 kB / 0.5887 GB, free: 5.895 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003328/0.4438, allocations: 115.8 kB / 0.5889 GB, free: 5.781 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004042/0.4479, allocations: 2.557 MB / 0.5913 GB, free: 3.219 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01686/0.4647, allocations: 9.922 MB / 0.601 GB, free: 9.285 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0442/0.509, allocations: 34.26 MB / 0.6345 GB, free: 6.188 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008909/0.5179, allocations: 5.187 MB / 0.6396 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002779/0.5207, allocations: 2.294 MB / 0.6418 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002104/0.5228, allocations: 1.88 MB / 0.6436 GB, free: 12.27 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.18e-05/0.5229, allocations: 56.56 kB / 0.6437 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=229): time 4.038e-06/0.5229, allocations: 0 / 0.6437 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of matching and sorting (n=235): time 0.03033/0.5532, allocations: 13.99 MB / 0.6574 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.81e-05/0.5533, allocations: 77.33 kB / 0.6574 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003225/0.5565, allocations: 2.631 MB / 0.66 GB, free: 11.42 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0002002/0.5568, allocations: 53.7 kB / 0.66 GB, free: 11.36 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001686/0.5584, allocations: 2.632 MB / 0.6626 GB, free: 8.688 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008962/0.5594, allocations: 0.8518 MB / 0.6635 GB, free: 7.824 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001329/0.5607, allocations: 1.036 MB / 0.6645 GB, free: 6.777 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001553/0.5609, allocations: 301.1 kB / 0.6647 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003073/0.5639, allocations: 2.208 MB / 0.6669 GB, free: 4.266 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004744/0.5687, allocations: 5.071 MB / 0.6719 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00832/0.577, allocations: 7.969 MB / 0.6796 GB, free: 4.418 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-05/0.5771, allocations: 28 kB / 0.6797 GB, free: 4.391 MB / 0.5294 GB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01199/0.5891, allocations: 7.88 MB / 0.6874 GB, free: 12.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.369e-05/0.5892, allocations: 52.06 kB / 0.6874 GB, free: 12.45 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.711e-05/0.5893, allocations: 100 kB / 0.6875 GB, free: 12.35 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002167/0.5915, allocations: 0.7927 MB / 0.6883 GB, free: 11.55 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003924/0.5954, allocations: 1.189 MB / 0.6894 GB, free: 10.36 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005775/0.6012, allocations: 4.533 MB / 0.6939 GB, free: 5.691 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00353/0.6048, allocations: 287.8 kB / 0.6941 GB, free: 5.41 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000731/0.6055, allocations: 300 kB / 0.6944 GB, free: 5.117 MB / 0.545 GB 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.003564/0.6091, allocations: 2.024 MB / 0.6964 GB, free: 3.086 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005138/0.6096, allocations: 264.6 kB / 0.6967 GB, free: 2.824 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007864/0.6175, allocations: 4.721 MB / 0.7013 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.371e-05/0.6176, allocations: 43.98 kB / 0.7013 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.722e-05/0.6176, allocations: 7.938 kB / 0.7013 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.585e-05/0.6176, allocations: 7.969 kB / 0.7013 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01665/0.6343, allocations: 10.5 MB / 0.7116 GB, free: 3.352 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.477e-05/0.6343, allocations: 4 kB / 0.7116 GB, free: 3.348 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001495/0.6358, allocations: 359.4 kB / 0.7119 GB, free: 2.996 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002026/0.6378, allocations: 0.6599 MB / 0.7126 GB, free: 2.332 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001475/0.638, allocations: 39.98 kB / 0.7126 GB, free: 2.293 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2415/0.8795, allocations: 3.899 MB / 0.7164 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.224e-05/0.8796, allocations: 11.53 kB / 0.7164 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009369/0.8889, allocations: 7.139 MB / 0.7234 GB, free: 160.1 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006004/0.8896, allocations: 311.5 kB / 0.7237 GB, free: 160 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003188/0.8899, allocations: 47.94 kB / 0.7237 GB, free: 160 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/0.891, allocations: 142.5 kB / 0.7239 GB, free: 159.9 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003022/0.8913, allocations: 128.8 kB / 0.724 GB, free: 159.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001547/0.8915, allocations: 69.58 kB / 0.7241 GB, free: 159.9 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001918/0.8934, allocations: 1.614 MB / 0.7256 GB, free: 159.3 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7.11e-07/0.8934, allocations: 3.469 kB / 0.7256 GB, free: 159.3 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003492/0.8969, allocations: 0.9149 MB / 0.7265 GB, free: 159.2 MB / 0.5606 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.000443/0.8973, allocations: 176 kB / 0.7267 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006327/0.9037, allocations: 5.387 MB / 0.732 GB, free: 157.4 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.415e-06/0.9037, allocations: 3.906 kB / 0.732 GB, free: 157.4 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001972/0.9057, allocations: 2.021 MB / 0.7339 GB, free: 156.6 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00159/0.9073, allocations: 367 kB / 0.7343 GB, free: 156.4 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01326/0.9206, allocations: 9.318 MB / 0.7434 GB, free: 149.7 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002625/0.9232, allocations: 3.165 MB / 0.7465 GB, free: 147.2 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.003262/0.9265, allocations: 1.961 MB / 0.7484 GB, free: 145.3 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005612/0.9271, allocations: 199.4 kB / 0.7486 GB, free: 145.2 MB / 0.5606 GB Notification: Performance of SimCode: time 6.22e-07/0.9271, allocations: 7.938 kB / 0.7486 GB, free: 145.1 MB / 0.5606 GB Notification: Performance of Templates: time 0.04294/0.97, allocations: 28.36 MB / 0.7763 GB, free: 117 MB / 0.5606 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Joints.Revolute.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Joints.Revolute.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches