Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.0007386/0.0007387, allocations: 92.77 kB / 17.31 MB, free: 6.531 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.0008328/0.0008328, allocations: 179.7 kB / 18.21 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.11/1.11, allocations: 223.3 MB / 242.3 MB, free: 14.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002047/0.0002046, allocations: 16.97 kB / 302.1 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06863/0.06885, allocations: 50.41 MB / 352.5 MB, free: 3.461 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01353/0.08239, allocations: 17.43 MB / 369.9 MB, free: 1.953 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1338/0.2162, allocations: 5.037 MB / 375 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001932/0.2181, allocations: 78.28 kB / 375 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006679/0.2188, allocations: 277.1 kB / 375.3 MB, free: 8.793 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002393/0.2212, allocations: 1.261 MB / 376.6 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009697/0.2222, allocations: 0.5022 MB / 377.1 MB, free: 8.703 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003436/0.2256, allocations: 3.559 MB / 380.6 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002071/0.2277, allocations: 1.72 MB / 382.4 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001081/0.2288, allocations: 0.6891 MB / 383.1 MB, free: 8.137 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001494/0.2303, allocations: 1.174 MB / 384.2 MB, free: 7.957 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003098/0.2306, allocations: 82.56 kB / 384.3 MB, free: 7.957 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001369/0.232, allocations: 0.8988 MB / 385.2 MB, free: 7.844 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008196/0.2329, allocations: 1.012 MB / 386.2 MB, free: 7.309 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008397/0.2337, allocations: 1.211 MB / 387.4 MB, free: 6.395 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002073/0.2358, allocations: 3.073 MB / 390.5 MB, free: 4.527 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.2358, allocations: 0 / 390.5 MB, free: 4.527 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2358, allocations: 0 / 390.5 MB, free: 4.527 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.975e-05/0.2358, allocations: 0 / 390.5 MB, free: 4.527 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.003021/0.2389, allocations: 2.497 MB / 393 MB, free: 2.711 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.876e-05/0.2389, allocations: 8.25 kB / 393 MB, free: 2.711 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004437/0.2433, allocations: 1.62 MB / 394.6 MB, free: 1.879 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001501/0.2448, allocations: 1.387 MB / 396 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.229e-05/0.2449, allocations: 125.4 kB / 396.1 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002667/0.2452, allocations: 166.4 kB / 396.3 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006858/0.2521, allocations: 6.55 MB / 402.8 MB, free: 11.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.156e-05/0.2521, allocations: 23.81 kB / 402.9 MB, free: 11.63 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002083/0.2523, allocations: 87.12 kB / 403 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002123/0.2545, allocations: 1.464 MB / 404.4 MB, free: 10.12 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007752/0.2622, allocations: 5.85 MB / 410.3 MB, free: 4.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02062/0.2829, allocations: 25.75 MB / 436 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004662/0.2875, allocations: 2.576 MB / 438.6 MB, free: 7.148 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001273/0.2888, allocations: 1.222 MB / 439.8 MB, free: 5.918 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005524/0.2944, allocations: 4.805 MB / 444.6 MB, free: 1.035 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.517e-05/0.2944, allocations: 50.42 kB / 444.7 MB, free: 0.9766 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 2.334e-06/0.2944, allocations: 4 kB / 444.7 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of matching and sorting (n=105): time 0.01971/0.3141, allocations: 9.745 MB / 454.4 MB, free: 7.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.493e-05/0.3142, allocations: 137 kB / 454.6 MB, free: 6.926 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002709/0.3169, allocations: 2.706 MB / 457.3 MB, free: 4.199 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.411e-05/0.317, allocations: 44.28 kB / 457.3 MB, free: 4.152 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001093/0.3181, allocations: 2.052 MB / 459.4 MB, free: 2.102 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002932/0.3184, allocations: 430 kB / 459.8 MB, free: 1.688 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003578/0.3187, allocations: 354.8 kB / 460.1 MB, free: 1.332 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.025e-05/0.3188, allocations: 305.1 kB / 460.4 MB, free: 1.031 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001763/0.3206, allocations: 1.445 MB / 461.9 MB, free: 15.58 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003105/0.3237, allocations: 4.073 MB / 465.9 MB, free: 10.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005174/0.3289, allocations: 5.952 MB / 471.9 MB, free: 2.914 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-05/0.3289, allocations: 28 kB / 471.9 MB, free: 2.887 MB / 382.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.008269/0.3372, allocations: 6.033 MB / 478 MB, free: 12.84 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.582e-05/0.3373, allocations: 44 kB / 478 MB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.521e-05/0.3373, allocations: 92 kB / 478.1 MB, free: 12.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002022/0.3394, allocations: 0.8206 MB / 478.9 MB, free: 11.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002301/0.3417, allocations: 0.9513 MB / 479.9 MB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00476/0.3464, allocations: 4.34 MB / 484.2 MB, free: 6.469 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002/0.3485, allocations: 247.5 kB / 484.4 MB, free: 6.227 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002612/0.3487, allocations: 263.9 kB / 484.7 MB, free: 5.969 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.001548/0.3503, allocations: 1.368 MB / 486.1 MB, free: 4.59 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002663/0.3506, allocations: 221.1 kB / 486.3 MB, free: 4.371 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00381/0.3544, allocations: 2.13 MB / 488.4 MB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.878e-05/0.3544, allocations: 16 kB / 488.4 MB, free: 2.203 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.3544, allocations: 0 / 488.4 MB, free: 2.203 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.3544, allocations: 7.984 kB / 488.4 MB, free: 2.195 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00726/0.3617, allocations: 5.093 MB / 493.5 MB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.3617, allocations: 3.938 kB / 493.5 MB, free: 13.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000649/0.3624, allocations: 155.8 kB / 493.7 MB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001866/0.3642, allocations: 0.6873 MB / 494.4 MB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.524e-05/0.3643, allocations: 16 kB / 494.4 MB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004219/0.3685, allocations: 3.897 MB / 498.3 MB, free: 8.148 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3686, allocations: 4 kB / 498.3 MB, free: 8.145 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005298/0.3739, allocations: 4.053 MB / 0.4906 GB, free: 4.062 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002824/0.3741, allocations: 294 kB / 0.4909 GB, free: 3.754 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001972/0.3744, allocations: 22.11 kB / 0.4909 GB, free: 3.734 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008264/0.3752, allocations: 67.89 kB / 0.4909 GB, free: 3.668 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/0.3753, allocations: 56.36 kB / 0.491 GB, free: 3.613 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-05/0.3754, allocations: 28 kB / 0.491 GB, free: 3.586 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001841/0.3773, allocations: 1.697 MB / 0.4927 GB, free: 1.879 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.983e-06/0.3773, allocations: 0 / 0.4927 GB, free: 1.879 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002301/0.3796, allocations: 0.6746 MB / 0.4933 GB, free: 1.207 MB / 414.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.0003382/0.3799, allocations: 203.3 kB / 0.4935 GB, free: 1.004 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003881/0.3838, allocations: 3.492 MB / 0.4969 GB, free: 13.52 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3838, allocations: 3.938 kB / 0.4969 GB, free: 13.51 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001139/0.385, allocations: 1.036 MB / 0.498 GB, free: 12.46 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001538/0.3865, allocations: 247.2 kB / 0.4982 GB, free: 12.22 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00735/0.3939, allocations: 7.206 MB / 0.5052 GB, free: 4.961 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001816/0.3957, allocations: 2.233 MB / 0.5074 GB, free: 2.695 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004495/0.3962, allocations: 195.4 kB / 0.5076 GB, free: 2.504 MB / 430.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3962, allocations: 0 / 0.5076 GB, free: 2.504 MB / 430.1 MB Notification: Performance of Templates: time 0.1623/0.5585, allocations: 47.79 MB / 0.5543 GB, free: 136.4 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches