Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001154, allocations: 112.5 kB / 18.36 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 184.5 kB / 19.29 MB, free: 3.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.394/1.394, allocations: 205.1 MB / 225.2 MB, free: 12.26 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 55.92 kB / 329.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09079/0.09206, allocations: 46.62 MB / 375.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.2071/0.2992, allocations: 7.673 MB / 383.4 MB, free: 9.289 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006494/0.3058, allocations: 3.296 MB / 386.7 MB, free: 7.797 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001475/0.3073, allocations: 38.94 kB / 386.8 MB, free: 7.789 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00235/0.3097, allocations: 1.027 MB / 387.8 MB, free: 7.316 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003975/0.3137, allocations: 1.34 MB / 389.1 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00157/0.3153, allocations: 0.5388 MB / 389.7 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004325/0.3196, allocations: 2.606 MB / 392.3 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002222/0.3219, allocations: 1.391 MB / 393.7 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001941/0.3238, allocations: 0.8381 MB / 394.5 MB, free: 4.734 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002164/0.326, allocations: 1.153 MB / 395.7 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005204/0.3265, allocations: 147.4 kB / 395.8 MB, free: 4.305 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002294/0.3288, allocations: 0.8932 MB / 396.7 MB, free: 4.086 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001219/0.3301, allocations: 1.054 MB / 397.8 MB, free: 3.723 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001608/0.3317, allocations: 1.258 MB / 399 MB, free: 2.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005485/0.3372, allocations: 4.124 MB / 403.1 MB, free: 224 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.3372, allocations: 1.031 kB / 403.1 MB, free: 224 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.265e-06/0.3372, allocations: 0 / 403.1 MB, free: 224 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001478/0.3374, allocations: 4 kB / 403.2 MB, free: 220 kB / 318.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.008625/0.346, allocations: 3.001 MB / 406.2 MB, free: 14.06 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.3461, allocations: 9.906 kB / 406.2 MB, free: 14.06 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006046/0.3521, allocations: 1.575 MB / 407.7 MB, free: 13.23 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003764/0.356, allocations: 1.462 MB / 409.2 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001358/0.3561, allocations: 135.2 kB / 409.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006105/0.3567, allocations: 155.2 kB / 409.5 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01138/0.3681, allocations: 6.536 MB / 416 MB, free: 6.715 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.418e-05/0.3683, allocations: 27.72 kB / 416 MB, free: 6.688 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002943/0.3686, allocations: 83.89 kB / 416.1 MB, free: 6.605 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002566/0.3711, allocations: 1.468 MB / 417.6 MB, free: 5.137 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01094/0.3821, allocations: 5.83 MB / 423.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03084/0.413, allocations: 25.67 MB / 449.1 MB, free: 4.863 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005582/0.4186, allocations: 2.541 MB / 451.6 MB, free: 2.172 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001583/0.4202, allocations: 1.215 MB / 452.9 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007515/0.4278, allocations: 4.808 MB / 457.7 MB, free: 12.04 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.152e-05/0.4278, allocations: 38.56 kB / 457.7 MB, free: 11.99 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 4.348e-06/0.4279, allocations: 0 / 457.7 MB, free: 11.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02434/0.4522, allocations: 9.824 MB / 467.5 MB, free: 2.023 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.056e-05/0.4523, allocations: 141 kB / 467.7 MB, free: 1.855 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00371/0.456, allocations: 2.718 MB / 470.4 MB, free: 15.12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002688/0.4563, allocations: 41.7 kB / 470.4 MB, free: 15.07 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001379/0.4577, allocations: 2.044 MB / 472.5 MB, free: 13 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006027/0.4583, allocations: 434.6 kB / 472.9 MB, free: 12.57 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001104/0.4594, allocations: 0.8334 MB / 473.7 MB, free: 11.72 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.4596, allocations: 305.1 kB / 474 MB, free: 11.42 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002277/0.4618, allocations: 1.441 MB / 475.5 MB, free: 9.969 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003875/0.4657, allocations: 4.077 MB / 479.5 MB, free: 4.562 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006695/0.4725, allocations: 5.961 MB / 485.5 MB, free: 13.29 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.818e-05/0.4726, allocations: 28 kB / 485.5 MB, free: 13.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.0122/0.4848, allocations: 6.025 MB / 491.6 MB, free: 7.23 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.948e-05/0.4849, allocations: 47.94 kB / 491.6 MB, free: 7.184 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001191/0.485, allocations: 96.88 kB / 491.7 MB, free: 7.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002485/0.4875, allocations: 0.8162 MB / 492.5 MB, free: 6.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003442/0.491, allocations: 0.9474 MB / 493.5 MB, free: 5.32 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006491/0.4975, allocations: 4.668 MB / 498.1 MB, free: 0.5117 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003658/0.5012, allocations: 243.6 kB / 498.4 MB, free: 280 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005897/0.5018, allocations: 256 kB / 498.6 MB, free: 24 kB / 414.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.002432/0.5043, allocations: 1.38 MB / 500 MB, free: 14.63 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004838/0.5048, allocations: 228.9 kB / 0.4885 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004267/0.509, allocations: 2.134 MB / 0.4906 GB, free: 12.25 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.123e-05/0.5091, allocations: 15.98 kB / 0.4906 GB, free: 12.24 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.999e-06/0.5091, allocations: 4 kB / 0.4906 GB, free: 12.23 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/0.5091, allocations: 3.984 kB / 0.4906 GB, free: 12.23 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009218/0.5184, allocations: 5.058 MB / 0.4955 GB, free: 7.094 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-05/0.5184, allocations: 3.938 kB / 0.4955 GB, free: 7.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008002/0.5192, allocations: 163.8 kB / 0.4957 GB, free: 6.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002066/0.5213, allocations: 0.6796 MB / 0.4964 GB, free: 6.246 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001164/0.5214, allocations: 20 kB / 0.4964 GB, free: 6.227 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005128/0.5266, allocations: 4.149 MB / 0.5004 GB, free: 1.938 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.5266, allocations: 4 kB / 0.5004 GB, free: 1.934 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006236/0.5328, allocations: 4.055 MB / 0.5044 GB, free: 13.85 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/0.534, allocations: 454 kB / 0.5048 GB, free: 13.39 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003054/0.5343, allocations: 19.98 kB / 0.5048 GB, free: 13.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009499/0.5353, allocations: 75.95 kB / 0.5049 GB, free: 13.29 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001888/0.5355, allocations: 52.3 kB / 0.505 GB, free: 13.24 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.293e-05/0.5356, allocations: 36 kB / 0.505 GB, free: 13.21 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002626/0.5382, allocations: 1.697 MB / 0.5067 GB, free: 11.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5382, allocations: 0 / 0.5067 GB, free: 11.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003712/0.542, allocations: 0.6757 MB / 0.5073 GB, free: 10.82 MB / 446.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.0005286/0.5425, allocations: 195.7 kB / 0.5075 GB, free: 10.62 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005494/0.548, allocations: 3.496 MB / 0.5109 GB, free: 7.125 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.024e-06/0.548, allocations: 0 / 0.5109 GB, free: 7.125 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001394/0.5494, allocations: 1.036 MB / 0.5119 GB, free: 6.078 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001833/0.5513, allocations: 262.3 kB / 0.5122 GB, free: 5.824 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009508/0.5608, allocations: 5.909 MB / 0.518 GB, free: 15.86 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002084/0.5629, allocations: 2.241 MB / 0.5201 GB, free: 13.59 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006718/0.5636, allocations: 195.4 kB / 0.5203 GB, free: 13.4 MB / 462.1 MB Notification: Performance of SimCode: time 9.71e-07/0.5636, allocations: 0 / 0.5203 GB, free: 13.4 MB / 462.1 MB Notification: Performance of Templates: time 0.279/0.8427, allocations: 48.32 MB / 0.5675 GB, free: 149.2 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches