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.001182/0.001181, allocations: 103.1 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001278/0.001278, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.432/1.432, allocations: 227.4 MB / 246.3 MB, free: 10.84 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2264/0.2264, allocations: 46.11 MB / 343.6 MB, free: 11.81 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002098/0.002098, allocations: 69.55 kB / 416.8 MB, free: 20.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.137, allocations: 62.45 MB / 479.3 MB, free: 5.738 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute): time 0.03274/0.1697, allocations: 29.54 MB / 0.4969 GB, free: 8.07 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01586/0.1856, allocations: 6.769 MB / 0.5035 GB, free: 1.281 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004924/0.1906, allocations: 123.7 kB / 0.5036 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2481/0.4388, allocations: 1.265 MB / 0.5049 GB, free: 10.54 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005435/0.4444, allocations: 1.606 MB / 0.5064 GB, free: 10.53 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001473/0.4458, allocations: 460.4 kB / 0.5069 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007828/0.4537, allocations: 5.027 MB / 0.5118 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003875/0.4576, allocations: 1.971 MB / 0.5137 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0025/0.4601, allocations: 1.035 MB / 0.5147 GB, free: 10.33 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003299/0.4634, allocations: 1.797 MB / 0.5165 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009984/0.4644, allocations: 166.8 kB / 0.5166 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002506/0.467, allocations: 0.9331 MB / 0.5175 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002243/0.4692, allocations: 1.522 MB / 0.519 GB, free: 9.934 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003774/0.473, allocations: 1.818 MB / 0.5208 GB, free: 9.199 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006614/0.4796, allocations: 5.835 MB / 0.5265 GB, free: 6.598 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.4797, allocations: 4 kB / 0.5265 GB, free: 6.594 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.4797, allocations: 0 / 0.5265 GB, free: 6.594 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002066/0.4799, allocations: 0 / 0.5265 GB, free: 6.594 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.008482/0.4884, allocations: 4.129 MB / 0.5305 GB, free: 3.785 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.4884, allocations: 14.5 kB / 0.5306 GB, free: 3.781 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009986/0.4984, allocations: 3.072 MB / 0.5336 GB, free: 2.191 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00467/0.5031, allocations: 1.856 MB / 0.5354 GB, free: 1.148 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000176/0.5033, allocations: 188.8 kB / 0.5356 GB, free: 1.102 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001067/0.5044, allocations: 243.9 kB / 0.5358 GB, free: 1.059 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01731/0.5217, allocations: 10.49 MB / 0.546 GB, free: 8.434 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-05/0.5219, allocations: 27.44 kB / 0.5461 GB, free: 8.418 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003826/0.5223, allocations: 116 kB / 0.5462 GB, free: 8.348 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004265/0.5265, allocations: 2.558 MB / 0.5487 GB, free: 5.816 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02103/0.5476, allocations: 9.925 MB / 0.5584 GB, free: 11.99 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05172/0.5993, allocations: 34.47 MB / 0.592 GB, free: 9.211 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0106/0.61, allocations: 5.18 MB / 0.5971 GB, free: 3.809 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003455/0.6135, allocations: 2.296 MB / 0.5993 GB, free: 1.516 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001725/0.6152, allocations: 1.875 MB / 0.6011 GB, free: 15.32 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.397e-05/0.6153, allocations: 56.55 kB / 0.6012 GB, free: 15.25 MB / 462.1 MB Notification: Performance of pre-optimization done (n=229): time 5.61e-06/0.6153, allocations: 0 / 0.6012 GB, free: 15.25 MB / 462.1 MB Notification: Performance of matching and sorting (n=235): time 0.0338/0.6491, allocations: 13.97 MB / 0.6148 GB, free: 1.25 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.341e-05/0.6492, allocations: 77.41 kB / 0.6149 GB, free: 1.16 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004383/0.6536, allocations: 2.636 MB / 0.6175 GB, free: 14.51 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003626/0.654, allocations: 55.73 kB / 0.6176 GB, free: 14.45 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001985/0.6559, allocations: 2.635 MB / 0.6201 GB, free: 11.81 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00102/0.657, allocations: 0.8417 MB / 0.6209 GB, free: 10.98 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00178/0.6588, allocations: 1.045 MB / 0.622 GB, free: 9.926 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.6589, allocations: 301.1 kB / 0.6223 GB, free: 9.629 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00344/0.6623, allocations: 2.208 MB / 0.6244 GB, free: 7.414 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005327/0.6677, allocations: 5.069 MB / 0.6294 GB, free: 0.9883 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009686/0.6774, allocations: 7.976 MB / 0.6371 GB, free: 7.883 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001038/0.6775, allocations: 32 kB / 0.6372 GB, free: 7.852 MB / 494.1 MB Notification: Performance of matching and sorting (n=695) (initialization): time 0.01697/0.6945, allocations: 7.883 MB / 0.6449 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001519/0.6947, allocations: 48 kB / 0.6449 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002107/0.6949, allocations: 100 kB / 0.645 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002466/0.6974, allocations: 0.7889 MB / 0.6458 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004359/0.7018, allocations: 1.185 MB / 0.6469 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005706/0.7075, allocations: 4.218 MB / 0.6511 GB, free: 9.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003294/0.7108, allocations: 291.8 kB / 0.6513 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008285/0.7117, allocations: 302.7 kB / 0.6516 GB, free: 8.902 MB / 0.4981 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.004193/0.7159, allocations: 2.012 MB / 0.6536 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006427/0.7165, allocations: 268.6 kB / 0.6539 GB, free: 6.609 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008431/0.725, allocations: 4.725 MB / 0.6585 GB, free: 1.855 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.207e-05/0.725, allocations: 47.92 kB / 0.6585 GB, free: 1.809 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-05/0.7251, allocations: 4 kB / 0.6585 GB, free: 1.805 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.871e-05/0.7251, allocations: 11.97 kB / 0.6585 GB, free: 1.793 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01905/0.7442, allocations: 10.54 MB / 0.6688 GB, free: 7.137 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-05/0.7442, allocations: 4.125 kB / 0.6688 GB, free: 7.133 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001568/0.7458, allocations: 367.4 kB / 0.6692 GB, free: 6.773 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00211/0.7479, allocations: 0.6522 MB / 0.6698 GB, free: 6.117 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002433/0.7482, allocations: 39.36 kB / 0.6699 GB, free: 6.082 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00515/0.7533, allocations: 3.658 MB / 0.6734 GB, free: 2.285 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.327e-05/0.7534, allocations: 11.94 kB / 0.6734 GB, free: 2.273 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0125/0.7659, allocations: 7.134 MB / 0.6804 GB, free: 11.04 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001037/0.7669, allocations: 305.7 kB / 0.6807 GB, free: 10.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000806/0.7678, allocations: 40 kB / 0.6807 GB, free: 10.68 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001612/0.7694, allocations: 143.8 kB / 0.6809 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004861/0.7699, allocations: 135.7 kB / 0.681 GB, free: 10.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002432/0.7702, allocations: 63.98 kB / 0.6811 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004353/0.7745, allocations: 1.619 MB / 0.6826 GB, free: 8.711 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.02e-07/0.7746, allocations: 3.938 kB / 0.6826 GB, free: 8.707 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.007418/0.782, allocations: 0.9128 MB / 0.6835 GB, free: 7.797 MB / 0.5294 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.001124/0.7832, allocations: 177 kB / 0.6837 GB, free: 7.617 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008999/0.7922, allocations: 5.352 MB / 0.6889 GB, free: 2.277 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/0.7922, allocations: 0 / 0.6889 GB, free: 2.277 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.002819/0.795, allocations: 2.027 MB / 0.6909 GB, free: 248 kB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002329/0.7974, allocations: 350.2 kB / 0.6912 GB, free: 15.9 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01832/0.8157, allocations: 11.44 MB / 0.7024 GB, free: 4.359 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004883/0.8206, allocations: 3.16 MB / 0.7055 GB, free: 1.168 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.2294/1.05, allocations: 1.955 MB / 0.7074 GB, free: 193 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009995/1.051, allocations: 203.8 kB / 0.7076 GB, free: 193 MB / 0.545 GB Notification: Performance of SimCode: time 1.102e-06/1.051, allocations: 0 / 0.7076 GB, free: 193 MB / 0.545 GB Notification: Performance of Templates: time 0.05974/1.111, allocations: 29.67 MB / 0.7366 GB, free: 186 MB / 0.545 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