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.0007378/0.0007378, allocations: 90.75 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001246/0.001246, allocations: 198.7 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.7 MB / 246.8 MB, free: 9.766 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000234/0.0002341, allocations: 4 kB / 307.7 MB, free: 0.5898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09089/0.09115, allocations: 51.54 MB / 359.3 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.1953/0.2865, allocations: 17.31 MB / 376.6 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01037/0.2969, allocations: 5.04 MB / 381.6 MB, free: 8.203 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002498/0.2995, allocations: 72.75 kB / 381.7 MB, free: 8.191 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007964/0.3003, allocations: 281 kB / 382 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003137/0.3034, allocations: 1.236 MB / 383.2 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001225/0.3046, allocations: 0.4993 MB / 383.7 MB, free: 7.727 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004539/0.3092, allocations: 3.579 MB / 387.3 MB, free: 6.875 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002449/0.3117, allocations: 1.742 MB / 389 MB, free: 6.238 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001128/0.3128, allocations: 0.6773 MB / 389.7 MB, free: 6.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001391/0.3142, allocations: 1.164 MB / 390.9 MB, free: 5.531 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002124/0.3144, allocations: 82.62 kB / 391 MB, free: 5.531 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001627/0.3161, allocations: 0.8922 MB / 391.8 MB, free: 5.113 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008143/0.3169, allocations: 0.9913 MB / 392.8 MB, free: 4.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008914/0.3178, allocations: 1.192 MB / 394 MB, free: 3.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0034/0.3212, allocations: 3.806 MB / 397.8 MB, free: 1.266 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.3212, allocations: 0 / 397.8 MB, free: 1.266 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3212, allocations: 0 / 397.8 MB, free: 1.266 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.475e-05/0.3213, allocations: 1.062 kB / 397.8 MB, free: 1.266 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.004458/0.3258, allocations: 2.484 MB / 400.3 MB, free: 15.46 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.004e-05/0.3258, allocations: 10.59 kB / 400.3 MB, free: 15.46 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005705/0.3315, allocations: 1.616 MB / 401.9 MB, free: 14.63 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003021/0.3346, allocations: 1.354 MB / 403.3 MB, free: 13.74 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001107/0.3347, allocations: 126.9 kB / 403.4 MB, free: 13.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003815/0.3351, allocations: 164 kB / 403.6 MB, free: 13.67 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01013/0.3452, allocations: 6.548 MB / 410.1 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.239e-05/0.3453, allocations: 27.72 kB / 410.2 MB, free: 6.688 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002295/0.3455, allocations: 85.84 kB / 410.2 MB, free: 6.633 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002612/0.3482, allocations: 1.468 MB / 411.7 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01045/0.3586, allocations: 5.845 MB / 417.6 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02873/0.3874, allocations: 25.76 MB / 443.3 MB, free: 4.922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005903/0.3933, allocations: 2.58 MB / 445.9 MB, free: 2.191 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001691/0.395, allocations: 1.219 MB / 447.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007658/0.4027, allocations: 4.794 MB / 451.9 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.131e-05/0.4028, allocations: 46.48 kB / 452 MB, free: 12.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 3.697e-06/0.4028, allocations: 0 / 452 MB, free: 12.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=105): time 0.02466/0.4275, allocations: 9.74 MB / 461.7 MB, free: 2.156 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.067e-05/0.4276, allocations: 141 kB / 461.8 MB, free: 1.988 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004473/0.432, allocations: 2.706 MB / 464.5 MB, free: 15.26 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001245/0.4322, allocations: 41.7 kB / 464.6 MB, free: 15.21 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001664/0.4339, allocations: 2.048 MB / 466.6 MB, free: 13.17 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004926/0.4344, allocations: 427.4 kB / 467 MB, free: 12.76 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005499/0.4349, allocations: 354.8 kB / 467.4 MB, free: 12.4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.435, allocations: 305.1 kB / 467.7 MB, free: 12.1 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002411/0.4375, allocations: 1.449 MB / 469.1 MB, free: 10.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004353/0.4418, allocations: 4.069 MB / 473.2 MB, free: 5.246 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006773/0.4486, allocations: 5.96 MB / 479.2 MB, free: 13.98 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.329e-05/0.4487, allocations: 28 kB / 479.2 MB, free: 13.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01038/0.4591, allocations: 6.029 MB / 485.2 MB, free: 7.914 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.35e-05/0.4591, allocations: 44 kB / 485.3 MB, free: 7.871 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001179/0.4593, allocations: 95.94 kB / 485.4 MB, free: 7.777 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00236/0.4616, allocations: 0.8245 MB / 486.2 MB, free: 6.949 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002721/0.4644, allocations: 0.9474 MB / 487.1 MB, free: 6 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005626/0.47, allocations: 4.341 MB / 491.5 MB, free: 1.531 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002548/0.4726, allocations: 247.5 kB / 491.7 MB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00035/0.4729, allocations: 256 kB / 492 MB, free: 1.039 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.002056/0.475, allocations: 1.376 MB / 493.3 MB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004042/0.4754, allocations: 221.1 kB / 493.6 MB, free: 15.43 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004525/0.4799, allocations: 2.134 MB / 495.7 MB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.28e-05/0.48, allocations: 12 kB / 495.7 MB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.48, allocations: 4 kB / 495.7 MB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.48, allocations: 7.922 kB / 495.7 MB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01018/0.4902, allocations: 5.079 MB / 0.4891 GB, free: 8.113 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.19e-05/0.4902, allocations: 4 kB / 0.4891 GB, free: 8.109 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007698/0.491, allocations: 147.8 kB / 0.4892 GB, free: 7.965 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002145/0.4932, allocations: 0.6917 MB / 0.4899 GB, free: 7.27 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001063/0.4933, allocations: 26.73 kB / 0.4899 GB, free: 7.246 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005021/0.4983, allocations: 3.893 MB / 0.4937 GB, free: 3.219 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.365e-06/0.4983, allocations: 0 / 0.4937 GB, free: 3.219 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006549/0.5049, allocations: 4.054 MB / 0.4977 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006874/0.5056, allocations: 290 kB / 0.4979 GB, free: 14.83 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000452/0.5061, allocations: 16 kB / 0.4979 GB, free: 14.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001146/0.5072, allocations: 74.47 kB / 0.498 GB, free: 14.75 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002029/0.5074, allocations: 52.36 kB / 0.4981 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.984e-05/0.5075, allocations: 35.98 kB / 0.4981 GB, free: 14.66 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003517/0.5111, allocations: 1.685 MB / 0.4997 GB, free: 12.96 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5111, allocations: 0 / 0.4997 GB, free: 12.96 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003736/0.5148, allocations: 0.6679 MB / 0.5004 GB, free: 12.3 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.0005098/0.5153, allocations: 199.6 kB / 0.5006 GB, free: 12.1 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005367/0.5207, allocations: 3.476 MB / 0.504 GB, free: 8.633 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.5207, allocations: 0 / 0.504 GB, free: 8.633 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001411/0.5221, allocations: 1.044 MB / 0.505 GB, free: 7.578 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002118/0.5243, allocations: 254.8 kB / 0.5052 GB, free: 7.332 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01033/0.5346, allocations: 6.924 MB / 0.512 GB, free: 372 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002681/0.5373, allocations: 2.233 MB / 0.5142 GB, free: 14.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003194/0.5405, allocations: 1.317 MB / 0.5155 GB, free: 12.78 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00053/0.5411, allocations: 167.4 kB / 0.5156 GB, free: 12.61 MB / 446.1 MB Notification: Performance of SimCode: time 8.71e-07/0.5411, allocations: 0 / 0.5156 GB, free: 12.61 MB / 446.1 MB Notification: Performance of Templates: time 0.2186/0.7597, allocations: 22.66 MB / 0.5378 GB, free: 138.8 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins/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