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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001095/0.001095, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.151/1.151, allocations: 205.1 MB / 223.7 MB, free: 8.477 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008436/0.0008436, allocations: 108.8 kB / 271.2 MB, free: 8.43 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007443/0.0007443, allocations: 43.94 kB / 327.2 MB, free: 308 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1774/0.1782, allocations: 46.61 MB / 373.8 MB, free: 45.65 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.0122/0.1904, allocations: 18.15 MB / 392 MB, free: 31.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.007841/0.1983, allocations: 5.072 MB / 397 MB, free: 26.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002667/0.201, allocations: 75.81 kB / 397.1 MB, free: 26.14 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001548/0.2027, allocations: 1.001 MB / 398.1 MB, free: 25.13 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001962/0.2046, allocations: 1.25 MB / 399.4 MB, free: 23.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007634/0.2054, allocations: 0.499 MB / 399.9 MB, free: 23.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002066/0.2075, allocations: 3.595 MB / 403.5 MB, free: 19.78 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009649/0.2085, allocations: 1.367 MB / 404.8 MB, free: 18.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005097/0.209, allocations: 0.7431 MB / 405.6 MB, free: 17.65 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000838/0.2098, allocations: 1.246 MB / 406.8 MB, free: 16.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001592/0.21, allocations: 104 kB / 406.9 MB, free: 16.3 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001044/0.211, allocations: 0.9086 MB / 407.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005043/0.2116, allocations: 1.044 MB / 408.9 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006041/0.2122, allocations: 1.222 MB / 410.1 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002073/0.2143, allocations: 3.932 MB / 414 MB, free: 9.164 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2143, allocations: 0 / 414 MB, free: 9.164 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2143, allocations: 0 / 414 MB, free: 9.164 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.886e-05/0.2143, allocations: 0 / 414 MB, free: 9.164 MB / 298.7 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.003429/0.2178, allocations: 2.996 MB / 417 MB, free: 6.109 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.085e-05/0.2178, allocations: 8.031 kB / 417 MB, free: 6.102 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004302/0.2221, allocations: 1.573 MB / 418.6 MB, free: 4.523 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002371/0.2245, allocations: 1.446 MB / 420.1 MB, free: 3.031 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.199e-05/0.2246, allocations: 127 kB / 420.2 MB, free: 2.906 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002371/0.2248, allocations: 167.8 kB / 420.3 MB, free: 2.742 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007181/0.232, allocations: 6.526 MB / 426.9 MB, free: 11.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.473e-05/0.2321, allocations: 35.73 kB / 426.9 MB, free: 11.7 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000198/0.2323, allocations: 83.89 kB / 427 MB, free: 11.61 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00217/0.2344, allocations: 1.468 MB / 428.5 MB, free: 10.14 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0091/0.2436, allocations: 5.838 MB / 434.3 MB, free: 4.305 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02513/0.2687, allocations: 25.76 MB / 460.1 MB, free: 9.781 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004792/0.2736, allocations: 2.545 MB / 462.6 MB, free: 7.09 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001285/0.2749, allocations: 1.219 MB / 463.8 MB, free: 5.859 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006628/0.2815, allocations: 4.822 MB / 468.6 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.2815, allocations: 46.5 kB / 468.7 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of pre-optimization done (n=97): time 2.776e-06/0.2816, allocations: 0 / 468.7 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of matching and sorting (n=105): time 0.02073/0.3023, allocations: 9.798 MB / 478.5 MB, free: 6.938 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.748e-05/0.3024, allocations: 144.9 kB / 478.6 MB, free: 6.766 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002861/0.3052, allocations: 2.718 MB / 481.3 MB, free: 4.027 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.923e-05/0.3053, allocations: 41.7 kB / 481.4 MB, free: 3.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001129/0.3065, allocations: 2.044 MB / 483.4 MB, free: 1.906 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003089/0.3068, allocations: 426.7 kB / 483.8 MB, free: 1.484 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008763/0.3077, allocations: 0.8409 MB / 484.7 MB, free: 0.6289 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.067e-05/0.3078, allocations: 301.1 kB / 485 MB, free: 340 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001799/0.3096, allocations: 1.449 MB / 486.4 MB, free: 14.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003248/0.3128, allocations: 4.073 MB / 490.5 MB, free: 9.473 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005653/0.3185, allocations: 5.961 MB / 496.5 MB, free: 2.207 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.729e-05/0.3185, allocations: 24 kB / 496.5 MB, free: 2.184 MB / 378.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.009322/0.3279, allocations: 6.024 MB / 0.4907 GB, free: 12.15 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.213e-05/0.328, allocations: 51.94 kB / 0.4908 GB, free: 12.1 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.794e-05/0.3281, allocations: 100.1 kB / 0.4909 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002142/0.3302, allocations: 0.8188 MB / 0.4917 GB, free: 11.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002405/0.3326, allocations: 0.9512 MB / 0.4926 GB, free: 10.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005133/0.3378, allocations: 4.344 MB / 0.4968 GB, free: 5.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002352/0.3401, allocations: 243.5 kB / 0.4971 GB, free: 5.512 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002829/0.3404, allocations: 260 kB / 0.4973 GB, free: 5.258 MB / 394.7 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.001532/0.342, allocations: 1.369 MB / 0.4987 GB, free: 3.875 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000292/0.3423, allocations: 225.1 kB / 0.4989 GB, free: 3.652 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003874/0.3462, allocations: 2.126 MB / 0.501 GB, free: 1.504 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.832e-05/0.3462, allocations: 12 kB / 0.501 GB, free: 1.492 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.3462, allocations: 7.938 kB / 0.501 GB, free: 1.484 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.358e-05/0.3462, allocations: 7.984 kB / 0.501 GB, free: 1.477 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1356/0.4819, allocations: 5.078 MB / 0.5059 GB, free: 121.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.347e-06/0.4819, allocations: 1.031 kB / 0.5059 GB, free: 121.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007495/0.4827, allocations: 163 kB / 0.5061 GB, free: 121.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001938/0.4846, allocations: 0.6843 MB / 0.5068 GB, free: 121.4 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.287e-05/0.4847, allocations: 20.03 kB / 0.5068 GB, free: 121.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004351/0.4891, allocations: 3.896 MB / 0.5106 GB, free: 119.4 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/0.4891, allocations: 8.875 kB / 0.5106 GB, free: 119.4 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03773/0.5268, allocations: 24.12 MB / 0.5342 GB, free: 102.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008376/0.5277, allocations: 450.6 kB / 0.5346 GB, free: 102 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000289/0.528, allocations: 23.73 kB / 0.5346 GB, free: 102 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008467/0.5289, allocations: 67.89 kB / 0.5347 GB, free: 101.9 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001681/0.529, allocations: 56.31 kB / 0.5347 GB, free: 101.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.105e-05/0.5291, allocations: 31.98 kB / 0.5348 GB, free: 101.8 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001606/0.5307, allocations: 1.704 MB / 0.5364 GB, free: 100.1 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5307, allocations: 4 kB / 0.5364 GB, free: 100.1 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002633/0.5334, allocations: 0.8764 MB / 0.5373 GB, free: 99.23 MB / 394.7 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.0003181/0.5337, allocations: 195.3 kB / 0.5375 GB, free: 99.05 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003494/0.5372, allocations: 3.484 MB / 0.5409 GB, free: 95.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.5372, allocations: 0 / 0.5409 GB, free: 95.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009262/0.5381, allocations: 1.041 MB / 0.5419 GB, free: 94.56 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001172/0.5393, allocations: 241.7 kB / 0.5421 GB, free: 94.32 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006832/0.5462, allocations: 7.738 MB / 0.5497 GB, free: 86.55 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001412/0.5476, allocations: 2.276 MB / 0.5519 GB, free: 84.25 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002478/0.5501, allocations: 1.335 MB / 0.5532 GB, free: 82.91 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003603/0.5505, allocations: 163.4 kB / 0.5534 GB, free: 82.75 MB / 394.7 MB Notification: Performance of SimCode: time 6.31e-07/0.5505, allocations: 0 / 0.5534 GB, free: 82.75 MB / 394.7 MB Notification: Performance of Templates: time 0.03269/0.5832, allocations: 28.35 MB / 0.581 GB, free: 54.46 MB / 394.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches