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.001743/0.001743, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002419/0.002419, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.4 MB / 246.9 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2138/0.2138, allocations: 46.12 MB / 344.3 MB, free: 11.44 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 79.88 kB / 481.4 MB, free: 3.984 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.322/0.3235, allocations: 62.44 MB / 0.5311 GB, free: 13.57 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.01359/0.3371, allocations: 12.28 MB / 0.5431 GB, free: 3.938 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.01009/0.3473, allocations: 3.932 MB / 0.5469 GB, free: 0.9023 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002241/0.3495, allocations: 61.72 kB / 0.547 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002843/0.3524, allocations: 1.32 MB / 0.5482 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004069/0.3565, allocations: 1.717 MB / 0.5499 GB, free: 14.29 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001299/0.3578, allocations: 0.4912 MB / 0.5504 GB, free: 13.8 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.004528/0.3624, allocations: 3.612 MB / 0.5539 GB, free: 10.18 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002566/0.365, allocations: 1.997 MB / 0.5559 GB, free: 8.152 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001571/0.3665, allocations: 1.191 MB / 0.557 GB, free: 6.957 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002101/0.3687, allocations: 1.709 MB / 0.5587 GB, free: 5.242 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004865/0.3692, allocations: 236 kB / 0.5589 GB, free: 5.012 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001976/0.3711, allocations: 0.94 MB / 0.5599 GB, free: 4.07 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001348/0.3725, allocations: 1.57 MB / 0.5614 GB, free: 2.496 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001699/0.3742, allocations: 1.875 MB / 0.5632 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007482/0.3817, allocations: 6.209 MB / 0.5693 GB, free: 10.38 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.3817, allocations: 0 / 0.5693 GB, free: 10.38 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.3818, allocations: 0 / 0.5693 GB, free: 10.38 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0001735/0.3819, allocations: 0 / 0.5693 GB, free: 10.38 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.008726/0.3907, allocations: 4.246 MB / 0.5734 GB, free: 6.055 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.3907, allocations: 8.031 kB / 0.5734 GB, free: 6.047 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01014/0.4009, allocations: 3.102 MB / 0.5765 GB, free: 2.938 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003379/0.4043, allocations: 1.869 MB / 0.5783 GB, free: 1.02 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001335/0.4044, allocations: 197 kB / 0.5785 GB, free: 0.8242 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004793/0.4049, allocations: 244 kB / 0.5787 GB, free: 0.5859 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01713/0.4221, allocations: 10.48 MB / 0.5889 GB, free: 5.672 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001554/0.4223, allocations: 27.77 kB / 0.589 GB, free: 5.645 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001155/0.4234, allocations: 115.8 kB / 0.5891 GB, free: 5.531 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004618/0.4281, allocations: 2.553 MB / 0.5916 GB, free: 2.973 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02081/0.4489, allocations: 9.927 MB / 0.6013 GB, free: 9.031 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05507/0.504, allocations: 34.34 MB / 0.6348 GB, free: 5.867 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009323/0.5134, allocations: 5.183 MB / 0.6399 GB, free: 468 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003419/0.5169, allocations: 2.295 MB / 0.6421 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001815/0.5187, allocations: 1.88 MB / 0.6439 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.546e-05/0.5188, allocations: 48.56 kB / 0.644 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=229): time 6.472e-06/0.5188, allocations: 3.984 kB / 0.644 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of matching and sorting (n=235): time 0.03323/0.552, allocations: 14.06 MB / 0.6577 GB, free: 13.78 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/0.5521, allocations: 77.28 kB / 0.6578 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004363/0.5565, allocations: 2.635 MB / 0.6604 GB, free: 11.04 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.0003487/0.5569, allocations: 53.7 kB / 0.6604 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.002348/0.5592, allocations: 2.741 MB / 0.6631 GB, free: 8.207 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.001488/0.5608, allocations: 0.8874 MB / 0.664 GB, free: 7.312 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002498/0.5633, allocations: 1.045 MB / 0.665 GB, free: 6.258 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001005/0.5634, allocations: 301.1 kB / 0.6653 GB, free: 5.961 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003611/0.567, allocations: 2.216 MB / 0.6674 GB, free: 3.738 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005554/0.5726, allocations: 5.063 MB / 0.6724 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01117/0.5838, allocations: 7.973 MB / 0.6802 GB, free: 3.895 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001261/0.5839, allocations: 28 kB / 0.6802 GB, free: 3.867 MB / 0.5294 GB Notification: Performance of matching and sorting (n=695) (initialization): time 0.0151/0.5991, allocations: 7.893 MB / 0.6879 GB, free: 11.96 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001068/0.5992, allocations: 50.03 kB / 0.688 GB, free: 11.91 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001859/0.5994, allocations: 100 kB / 0.688 GB, free: 11.82 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002325/0.6017, allocations: 0.8009 MB / 0.6888 GB, free: 11.01 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004024/0.6058, allocations: 1.189 MB / 0.69 GB, free: 9.82 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006205/0.612, allocations: 4.524 MB / 0.6944 GB, free: 5.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003651/0.6157, allocations: 287.8 kB / 0.6947 GB, free: 4.879 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001029/0.6167, allocations: 304 kB / 0.695 GB, free: 4.582 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.004298/0.621, allocations: 2.028 MB / 0.697 GB, free: 2.547 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007309/0.6218, allocations: 274.2 kB / 0.6972 GB, free: 2.277 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009153/0.6309, allocations: 4.717 MB / 0.7018 GB, free: 13.53 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.308e-05/0.631, allocations: 51.89 kB / 0.7019 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.105e-05/0.6311, allocations: 7.938 kB / 0.7019 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.359e-05/0.6311, allocations: 7.969 kB / 0.7019 GB, free: 13.46 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02165/0.6528, allocations: 10.5 MB / 0.7121 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.097e-05/0.6528, allocations: 4 kB / 0.7121 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001638/0.6545, allocations: 363.4 kB / 0.7125 GB, free: 2.438 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002076/0.6566, allocations: 0.6604 MB / 0.7131 GB, free: 1.773 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002225/0.6568, allocations: 39.98 kB / 0.7132 GB, free: 1.734 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2689/0.9257, allocations: 3.896 MB / 0.717 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.124e-05/0.9257, allocations: 12.44 kB / 0.717 GB, free: 162.1 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009206/0.9349, allocations: 7.147 MB / 0.724 GB, free: 159.9 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006741/0.9356, allocations: 329.8 kB / 0.7243 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003202/0.936, allocations: 42.55 kB / 0.7243 GB, free: 159.8 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001086/0.9371, allocations: 147.2 kB / 0.7245 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003082/0.9374, allocations: 133.3 kB / 0.7246 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001474/0.9375, allocations: 61.34 kB / 0.7247 GB, free: 159.7 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002008/0.9395, allocations: 1.618 MB / 0.7262 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9396, allocations: 0 / 0.7262 GB, free: 159.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.003162/0.9427, allocations: 0.9099 MB / 0.7271 GB, free: 159 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.000375/0.9431, allocations: 183.2 kB / 0.7273 GB, free: 158.9 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.005878/0.949, allocations: 5.397 MB / 0.7326 GB, free: 157.1 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 8.516e-06/0.949, allocations: 0 / 0.7326 GB, free: 157.1 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001931/0.951, allocations: 2.018 MB / 0.7345 GB, free: 156.4 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001571/0.9525, allocations: 369.5 kB / 0.7349 GB, free: 156.2 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/0.9627, allocations: 9.455 MB / 0.7441 GB, free: 149 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00225/0.9649, allocations: 3.168 MB / 0.7472 GB, free: 146.4 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.002946/0.9679, allocations: 1.957 MB / 0.7491 GB, free: 144.4 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005445/0.9684, allocations: 207.4 kB / 0.7493 GB, free: 144.2 MB / 0.5606 GB Notification: Performance of SimCode: time 6.71e-07/0.9685, allocations: 0 / 0.7493 GB, free: 144.2 MB / 0.5606 GB Notification: Performance of Templates: time 0.0391/1.008, allocations: 28.63 MB / 0.7773 GB, free: 115.8 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