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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009859/0.0009858, allocations: 185.5 kB / 8.135 MB, free: 2.211 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.173/1.173, allocations: 221.4 MB / 229.9 MB, free: 2.992 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009122/0.0009121, allocations: 109.5 kB / 280.8 MB, free: 1.203 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.915e-06/7.935e-06, allocations: 4 kB / 336.5 MB, free: 9.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2242/0.2243, allocations: 50.4 MB / 386.9 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1076/0.3319, allocations: 93.01 MB / 479.9 MB, free: 9.707 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002575/0.3322, allocations: 88.83 kB / 480 MB, free: 9.621 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.3132/0.6454, allocations: 57.49 MB / 0.5249 GB, free: 84.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.265e-05/0.6456, allocations: 48 kB / 0.5249 GB, free: 84.01 MB / 378.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.005888/0.6515, allocations: 2.587 MB / 0.5275 GB, free: 81.37 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.6515, allocations: 12.03 kB / 0.5275 GB, free: 81.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007757/0.6593, allocations: 1.603 MB / 0.5291 GB, free: 79.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008134/0.6675, allocations: 3.306 MB / 0.5323 GB, free: 76.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001336/0.6676, allocations: 76 kB / 0.5324 GB, free: 76.35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001082/0.6687, allocations: 140 kB / 0.5325 GB, free: 76.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006506/0.6752, allocations: 4.186 MB / 0.5366 GB, free: 72.02 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008871/0.6841, allocations: 6.281 MB / 0.5427 GB, free: 65.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.543e-05/0.6843, allocations: 43.69 kB / 0.5427 GB, free: 65.01 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005345/0.6848, allocations: 23.98 kB / 0.5428 GB, free: 64.99 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007462/0.6856, allocations: 0.7537 MB / 0.5435 GB, free: 64.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02463/0.7102, allocations: 30.73 MB / 0.5735 GB, free: 32.66 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002256/0.7125, allocations: 2.165 MB / 0.5756 GB, free: 30.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001285/0.7138, allocations: 1.159 MB / 0.5768 GB, free: 29.18 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007274/0.7145, allocations: 363.5 kB / 0.5771 GB, free: 28.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.436e-05/0.7146, allocations: 46.94 kB / 0.5772 GB, free: 28.71 MB / 378.7 MB Notification: Performance of pre-optimization done (n=106): time 3.456e-06/0.7146, allocations: 0 / 0.5772 GB, free: 28.71 MB / 378.7 MB Notification: Performance of matching and sorting (n=114): time 0.0194/0.734, allocations: 9.512 MB / 0.5864 GB, free: 19.08 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.686e-05/0.7341, allocations: 137 kB / 0.5866 GB, free: 18.92 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003939/0.7381, allocations: 2.086 MB / 0.5886 GB, free: 16.8 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002126/0.7383, allocations: 25.7 kB / 0.5886 GB, free: 16.77 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001144/0.7394, allocations: 1.981 MB / 0.5906 GB, free: 14.76 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005718/0.74, allocations: 450.2 kB / 0.591 GB, free: 14.31 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003061/0.7403, allocations: 0 / 0.591 GB, free: 14.31 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003909/0.7407, allocations: 0.5393 MB / 0.5915 GB, free: 13.76 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002069/0.7428, allocations: 1.43 MB / 0.5929 GB, free: 12.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002779/0.7456, allocations: 4.116 MB / 0.5969 GB, free: 6.836 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00348/0.7491, allocations: 2.532 MB / 0.5994 GB, free: 4.305 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.636e-05/0.7492, allocations: 28 kB / 0.5994 GB, free: 4.277 MB / 378.7 MB Notification: Performance of matching and sorting (n=559) (initialization): time 0.01042/0.7596, allocations: 5.644 MB / 0.605 GB, free: 14.62 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.7597, allocations: 8 kB / 0.605 GB, free: 14.62 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001584/0.7598, allocations: 96 kB / 0.6051 GB, free: 14.52 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002521/0.7624, allocations: 0.7932 MB / 0.6058 GB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003511/0.7659, allocations: 0.9747 MB / 0.6068 GB, free: 12.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00593/0.7718, allocations: 4.218 MB / 0.6109 GB, free: 8.418 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003423/0.7753, allocations: 179.6 kB / 0.6111 GB, free: 8.242 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008247/0.7761, allocations: 272 kB / 0.6113 GB, free: 7.977 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 441 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (523): * Single equations (assignments): 519 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00118/0.7773, allocations: 347.6 kB / 0.6117 GB, free: 7.633 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006383/0.778, allocations: 205.3 kB / 0.6119 GB, free: 7.43 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005478/0.7835, allocations: 2.198 MB / 0.614 GB, free: 5.223 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.642e-05/0.7835, allocations: 12 kB / 0.614 GB, free: 5.211 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.7835, allocations: 4 kB / 0.614 GB, free: 5.207 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.473e-05/0.7836, allocations: 7.984 kB / 0.614 GB, free: 5.199 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01145/0.795, allocations: 5.112 MB / 0.619 GB, free: 24 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.269e-05/0.7951, allocations: 7.938 kB / 0.619 GB, free: 16 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008134/0.7959, allocations: 147.8 kB / 0.6192 GB, free: 15.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002122/0.798, allocations: 0.6252 MB / 0.6198 GB, free: 15.24 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001614/0.7982, allocations: 15.98 kB / 0.6198 GB, free: 15.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004862/0.8031, allocations: 3.673 MB / 0.6234 GB, free: 11.44 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.8031, allocations: 4.031 kB / 0.6234 GB, free: 11.43 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007558/0.8107, allocations: 4.4 MB / 0.6277 GB, free: 6.934 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007076/0.8114, allocations: 278.2 kB / 0.6279 GB, free: 6.641 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005084/0.8119, allocations: 4 kB / 0.628 GB, free: 6.637 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001229/0.8132, allocations: 43.94 kB / 0.628 GB, free: 6.594 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001631/0.8134, allocations: 52.27 kB / 0.628 GB, free: 6.543 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001092/0.8135, allocations: 32 kB / 0.6281 GB, free: 6.512 MB / 410.7 MB Notification: Performance of sort global known variables: time 0.002673/0.8162, allocations: 1.399 MB / 0.6294 GB, free: 5.098 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00383/0.82, allocations: 0.5898 MB / 0.63 GB, free: 4.508 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (rev.phi,rev.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 79 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005308/0.8206, allocations: 172.2 kB / 0.6302 GB, free: 4.332 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005354/0.8259, allocations: 3.413 MB / 0.6335 GB, free: 0.9297 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.826, allocations: 4 kB / 0.6335 GB, free: 0.9258 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001451/0.8274, allocations: 1.049 MB / 0.6345 GB, free: 15.87 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/0.8287, allocations: 192.8 kB / 0.6347 GB, free: 15.68 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01067/0.8394, allocations: 4.686 MB / 0.6393 GB, free: 10.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003504/0.8429, allocations: 2.482 MB / 0.6417 GB, free: 8.391 MB / 426.7 MB Notification: Performance of SimCode: time 7.41e-07/0.8429, allocations: 0 / 0.6417 GB, free: 8.391 MB / 426.7 MB Notification: Performance of Templates: time 0.1765/1.019, allocations: 23.75 MB / 0.6649 GB, free: 148.5 MB / 426.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches