Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001049/0.001049, allocations: 90.98 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001148/0.001148, allocations: 201.9 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 227.7 MB / 247.5 MB, free: 9.688 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002316/0.0002316, allocations: 4 kB / 308.4 MB, free: 0.6172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08817/0.08842, allocations: 51.53 MB / 359.9 MB, free: 13.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.1791/0.2675, allocations: 17.31 MB / 377.2 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009293/0.2769, allocations: 5.04 MB / 382.3 MB, free: 8.207 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002839/0.2797, allocations: 76.66 kB / 382.3 MB, free: 8.191 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000939/0.2807, allocations: 279.2 kB / 382.6 MB, free: 8.129 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003577/0.2843, allocations: 1.242 MB / 383.9 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001374/0.2857, allocations: 0.494 MB / 384.3 MB, free: 7.734 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004761/0.2905, allocations: 3.587 MB / 387.9 MB, free: 6.875 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002674/0.2932, allocations: 1.745 MB / 389.7 MB, free: 6.238 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001277/0.2945, allocations: 0.6721 MB / 390.4 MB, free: 6.023 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001501/0.296, allocations: 1.168 MB / 391.5 MB, free: 5.539 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000287/0.2963, allocations: 81.62 kB / 391.6 MB, free: 5.539 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001696/0.298, allocations: 0.885 MB / 392.5 MB, free: 5.129 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008641/0.2988, allocations: 0.9909 MB / 393.5 MB, free: 4.605 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009841/0.2998, allocations: 1.201 MB / 394.7 MB, free: 3.688 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002773/0.3026, allocations: 3.039 MB / 397.7 MB, free: 1.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3026, allocations: 0 / 397.7 MB, free: 1.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3027, allocations: 0 / 397.7 MB, free: 1.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.661e-05/0.3027, allocations: 1.281 kB / 397.7 MB, free: 1.84 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 951 * Number of variables: 951 Notification: Performance of Generate backend data structure: time 0.004416/0.3071, allocations: 2.485 MB / 400.2 MB, free: 36 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.3072, allocations: 10.97 kB / 400.2 MB, free: 36 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005421/0.3126, allocations: 1.612 MB / 401.8 MB, free: 15.2 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00243/0.3151, allocations: 1.357 MB / 403.2 MB, free: 14.31 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.872e-05/0.3152, allocations: 124.6 kB / 403.3 MB, free: 14.28 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003555/0.3155, allocations: 164.8 kB / 403.5 MB, free: 14.24 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01047/0.326, allocations: 6.549 MB / 410 MB, free: 7.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.693e-05/0.3261, allocations: 27.72 kB / 410 MB, free: 7.453 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002728/0.3264, allocations: 82.02 kB / 410.1 MB, free: 7.398 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002577/0.329, allocations: 1.47 MB / 411.6 MB, free: 5.938 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01108/0.3401, allocations: 5.848 MB / 417.4 MB, free: 92 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03009/0.3702, allocations: 25.75 MB / 443.2 MB, free: 5.695 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005655/0.3759, allocations: 2.576 MB / 445.8 MB, free: 2.969 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00159/0.3775, allocations: 1.227 MB / 447 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007931/0.3855, allocations: 4.799 MB / 451.8 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.3856, allocations: 42.55 kB / 451.8 MB, free: 12.81 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 3.787e-06/0.3856, allocations: 0 / 451.8 MB, free: 12.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=105): time 0.02486/0.4104, allocations: 9.743 MB / 461.6 MB, free: 2.926 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.04e-05/0.4106, allocations: 141 kB / 461.7 MB, free: 2.758 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004145/0.4147, allocations: 2.713 MB / 464.4 MB, free: 24 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001663/0.4149, allocations: 33.7 kB / 464.5 MB, free: 15.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001552/0.4165, allocations: 2.04 MB / 466.5 MB, free: 13.95 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005632/0.417, allocations: 435.3 kB / 466.9 MB, free: 13.53 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005404/0.4176, allocations: 350.8 kB / 467.3 MB, free: 13.18 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.4177, allocations: 305.1 kB / 467.6 MB, free: 12.88 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002375/0.4201, allocations: 1.452 MB / 469 MB, free: 11.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004003/0.4241, allocations: 4.069 MB / 473.1 MB, free: 6.016 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006951/0.4311, allocations: 5.961 MB / 479.1 MB, free: 14.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.605e-05/0.4312, allocations: 24 kB / 479.1 MB, free: 14.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01169/0.4429, allocations: 6.024 MB / 485.1 MB, free: 8.691 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.052e-05/0.443, allocations: 50.5 kB / 485.1 MB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001324/0.4432, allocations: 99.94 kB / 485.2 MB, free: 8.547 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00243/0.4456, allocations: 0.8242 MB / 486.1 MB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00297/0.4486, allocations: 0.9435 MB / 487 MB, free: 6.773 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005721/0.4543, allocations: 4.344 MB / 491.4 MB, free: 2.301 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003051/0.4574, allocations: 250.8 kB / 491.6 MB, free: 2.059 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005903/0.458, allocations: 260 kB / 491.9 MB, free: 1.805 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 425 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (502): * Single equations (assignments): 498 * Array equations: 3 * 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 {(2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002431/0.4605, allocations: 1.365 MB / 493.2 MB, free: 440 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000452/0.4609, allocations: 225.2 kB / 493.4 MB, free: 212 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004486/0.4654, allocations: 2.134 MB / 495.6 MB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.447e-05/0.4655, allocations: 12 kB / 495.6 MB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/0.4655, allocations: 4 kB / 495.6 MB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/0.4655, allocations: 7.922 kB / 495.6 MB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009512/0.475, allocations: 5.073 MB / 0.4889 GB, free: 8.891 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.648e-06/0.475, allocations: 3.938 kB / 0.4889 GB, free: 8.887 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007752/0.4758, allocations: 155.8 kB / 0.4891 GB, free: 8.734 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002188/0.478, allocations: 0.6873 MB / 0.4898 GB, free: 8.043 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001296/0.4782, allocations: 15.98 kB / 0.4898 GB, free: 8.027 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005067/0.4833, allocations: 3.9 MB / 0.4936 GB, free: 3.996 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.011e-06/0.4833, allocations: 7.938 kB / 0.4936 GB, free: 3.988 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006833/0.4901, allocations: 4.062 MB / 0.4976 GB, free: 15.9 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007099/0.4909, allocations: 286.1 kB / 0.4978 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004336/0.4913, allocations: 12 kB / 0.4978 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/0.4925, allocations: 75.89 kB / 0.4979 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001958/0.4927, allocations: 52.3 kB / 0.498 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.767e-05/0.4928, allocations: 38.95 kB / 0.498 GB, free: 15.43 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003172/0.496, allocations: 1.685 MB / 0.4996 GB, free: 13.73 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.496, allocations: 4.062 kB / 0.4997 GB, free: 13.73 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00401/0.5, allocations: 0.6601 MB / 0.5003 GB, free: 13.07 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.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 (74): * Single equations (assignments): 70 * Array equations: 3 * 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.0006263/0.5007, allocations: 200.5 kB / 0.5005 GB, free: 12.87 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005915/0.5066, allocations: 3.478 MB / 0.5039 GB, free: 9.398 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/0.5066, allocations: 0 / 0.5039 GB, free: 9.398 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001462/0.5081, allocations: 1.04 MB / 0.5049 GB, free: 8.348 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002249/0.5104, allocations: 252.8 kB / 0.5051 GB, free: 8.102 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01099/0.5214, allocations: 7.198 MB / 0.5122 GB, free: 0.8516 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002619/0.524, allocations: 2.229 MB / 0.5143 GB, free: 14.59 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007302/0.5248, allocations: 191.4 kB / 0.5145 GB, free: 14.41 MB / 446.1 MB Notification: Performance of SimCode: time 7.31e-07/0.5248, allocations: 0 / 0.5145 GB, free: 14.41 MB / 446.1 MB Notification: Performance of Templates: time 0.2436/0.7684, allocations: 47.7 MB / 0.5611 GB, free: 128.4 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches