Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 80.31 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 170.5 kB / 25.61 MB, free: 8.914 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9466/0.9466, allocations: 177.1 MB / 206 MB, free: 4.5 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.004e-06/2.004e-06, allocations: 0 / 274.2 MB, free: 4.492 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.292e-05/2.493e-05, allocations: 6.25 kB / 274.2 MB, free: 4.484 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009239/0.009264, allocations: 7.237 MB / 281.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006427/0.01569, allocations: 3.25 MB / 284.7 MB, free: 9.977 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007683/0.01646, allocations: 43.81 kB / 284.7 MB, free: 9.934 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002087/0.01855, allocations: 1.082 MB / 285.8 MB, free: 8.848 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002813/0.02136, allocations: 1.404 MB / 287.2 MB, free: 7.438 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001107/0.02247, allocations: 0.5961 MB / 287.8 MB, free: 6.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003116/0.02558, allocations: 2.979 MB / 290.8 MB, free: 3.855 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001467/0.02705, allocations: 1.514 MB / 292.3 MB, free: 2.312 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001096/0.02815, allocations: 1.321 MB / 293.6 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001069/0.02921, allocations: 1.321 MB / 295 MB, free: 15.66 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001623/0.02938, allocations: 148 kB / 295.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008779/0.03025, allocations: 0.8227 MB / 295.9 MB, free: 14.7 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00061/0.03086, allocations: 1.13 MB / 297.1 MB, free: 13.56 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004705/0.03133, allocations: 0.6695 MB / 297.7 MB, free: 12.89 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001983/0.03332, allocations: 2.833 MB / 300.6 MB, free: 10.05 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.03332, allocations: 0 / 300.6 MB, free: 10.05 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.21e-07/0.03332, allocations: 0 / 300.6 MB, free: 10.05 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.281e-05/0.03336, allocations: 4 kB / 300.6 MB, free: 10.04 MB / 282.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.003952/0.03731, allocations: 3.159 MB / 303.7 MB, free: 6.832 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.03734, allocations: 8.031 kB / 303.7 MB, free: 6.824 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003137/0.04048, allocations: 1.002 MB / 304.7 MB, free: 5.82 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001506/0.04199, allocations: 1.129 MB / 305.9 MB, free: 4.656 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.656e-05/0.04208, allocations: 131.4 kB / 306 MB, free: 4.527 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000276/0.04236, allocations: 159.8 kB / 306.1 MB, free: 4.371 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004334/0.04669, allocations: 3.535 MB / 309.7 MB, free: 184 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.213e-05/0.04676, allocations: 27.77 kB / 309.7 MB, free: 156 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002015/0.04696, allocations: 79.89 kB / 309.8 MB, free: 76 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001461/0.04842, allocations: 1.242 MB / 311 MB, free: 14.84 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003244/0.05166, allocations: 1.609 MB / 312.6 MB, free: 13.22 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01809/0.06975, allocations: 28.35 MB / 341 MB, free: 15.87 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002669/0.07242, allocations: 0.9503 MB / 341.9 MB, free: 14.88 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003746/0.0728, allocations: 265.5 kB / 342.2 MB, free: 14.6 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00333/0.07613, allocations: 2.463 MB / 344.7 MB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.689e-05/0.07615, allocations: 49.33 kB / 344.7 MB, free: 12.05 MB / 330.7 MB Notification: Performance of pre-optimization done (n=79): time 2.264e-06/0.07615, allocations: 0 / 344.7 MB, free: 12.05 MB / 330.7 MB Notification: Performance of matching and sorting (n=80): time 0.005966/0.08212, allocations: 2.145 MB / 346.8 MB, free: 9.863 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.531e-05/0.08218, allocations: 140.4 kB / 347 MB, free: 9.695 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002347/0.08452, allocations: 2.456 MB / 349.4 MB, free: 7.199 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.093e-05/0.08456, allocations: 33.7 kB / 349.5 MB, free: 7.16 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001331/0.08589, allocations: 2.344 MB / 351.8 MB, free: 4.789 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002775/0.08617, allocations: 377.4 kB / 352.2 MB, free: 4.418 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009778/0.08715, allocations: 0.9199 MB / 353.1 MB, free: 3.484 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001841/0.08733, allocations: 0.5354 MB / 353.6 MB, free: 2.941 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006983/0.08803, allocations: 351.9 kB / 354 MB, free: 2.594 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1181/0.2061, allocations: 4.422 MB / 358.4 MB, free: 73.9 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002591/0.2087, allocations: 5.23 MB / 363.6 MB, free: 68.57 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.169e-05/0.2087, allocations: 28.88 kB / 363.7 MB, free: 68.57 MB / 330.7 MB Notification: Performance of matching and sorting (n=533) (initialization): time 0.003735/0.2125, allocations: 3.297 MB / 367 MB, free: 67.82 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.179e-05/0.2125, allocations: 48.3 kB / 367 MB, free: 67.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.965e-05/0.2126, allocations: 102.2 kB / 367.1 MB, free: 67.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002574/0.2128, allocations: 163.6 kB / 367.3 MB, free: 67.81 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001309/0.2141, allocations: 0.9276 MB / 368.2 MB, free: 67.72 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000802/0.2149, allocations: 1.966 MB / 370.2 MB, free: 65.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001388/0.2163, allocations: 189.3 kB / 370.3 MB, free: 65.98 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001674/0.2165, allocations: 237.1 kB / 370.6 MB, free: 65.98 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 445 * Number of states: 0 () * Number of discrete variables: 21 (world.gravityArrowColor[1],world.gravityArrowColor[2],world.gravityArrowColor[3],world.gravitySphereColor[1],world.gravitySphereColor[2],world.gravitySphereColor[3],world.groundColor[1],world.groundColor[2],world.groundColor[3],world.axisColor_x[1],world.axisColor_x[2],world.axisColor_x[3],rev.cylinderColor[1],rev.cylinderColor[2],rev.cylinderColor[3],body.sphereColor[1],body.sphereColor[2],body.sphereColor[3],fixedTranslation.color[1],fixedTranslation.color[2],fixedTranslation.color[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (507): * Single equations (assignments): 503 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005514/0.217, allocations: 0.4974 MB / 371.1 MB, free: 65.72 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001974/0.2172, allocations: 231.2 kB / 371.3 MB, free: 65.72 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005048/0.2177, allocations: 409.7 kB / 371.7 MB, free: 65.64 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.295e-05/0.2178, allocations: 21.61 kB / 371.7 MB, free: 65.64 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.2178, allocations: 0 / 371.7 MB, free: 65.64 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.2178, allocations: 3 kB / 371.7 MB, free: 65.64 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002295/0.2201, allocations: 1.784 MB / 373.5 MB, free: 65.31 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.2201, allocations: 0.6562 kB / 373.5 MB, free: 65.31 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002345/0.2203, allocations: 90.45 kB / 373.6 MB, free: 65.3 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001231/0.2204, allocations: 48.36 kB / 373.6 MB, free: 65.29 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.83e-05/0.2204, allocations: 7.781 kB / 373.7 MB, free: 65.29 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005848/0.221, allocations: 1.791 MB / 375.4 MB, free: 63.58 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.221, allocations: 4.594 kB / 375.4 MB, free: 63.58 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008097/0.2218, allocations: 1.226 MB / 376.7 MB, free: 62.88 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001646/0.222, allocations: 200.1 kB / 376.9 MB, free: 62.76 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001253/0.2221, allocations: 7.469 kB / 376.9 MB, free: 62.76 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003545/0.2225, allocations: 11.66 kB / 376.9 MB, free: 62.76 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.164e-05/0.2226, allocations: 36.38 kB / 376.9 MB, free: 62.76 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.229e-05/0.2226, allocations: 26.67 kB / 377 MB, free: 62.76 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006444/0.2232, allocations: 0.9814 MB / 377.9 MB, free: 62.57 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2232, allocations: 0 / 377.9 MB, free: 62.57 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001665/0.2249, allocations: 0.6345 MB / 378.6 MB, free: 62.57 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (rev.w,damper.phi_rel) * 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 (54): * Single equations (assignments): 50 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003069/0.2252, allocations: 214.2 kB / 378.8 MB, free: 62.48 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001574/0.2268, allocations: 1.813 MB / 380.6 MB, free: 61.56 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.2268, allocations: 0 / 380.6 MB, free: 61.56 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002808/0.2271, allocations: 381.7 kB / 381 MB, free: 61.23 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007652/0.2278, allocations: 227.2 kB / 381.2 MB, free: 61.13 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004031/0.2319, allocations: 4.301 MB / 385.5 MB, free: 57.43 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004895/0.2323, allocations: 0.7339 MB / 386.2 MB, free: 56.89 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006146/0.233, allocations: 326.2 kB / 386.5 MB, free: 56.65 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003395/0.2333, allocations: 368.3 kB / 386.9 MB, free: 56.31 MB / 330.7 MB Notification: Performance of SimCode: time 8.01e-07/0.2333, allocations: 0 / 386.9 MB, free: 56.31 MB / 330.7 MB Notification: Performance of Templates: time 0.02139/0.2547, allocations: 16.97 MB / 403.9 MB, free: 40.51 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.6201617289334536]