Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001025/0.001025, allocations: 91.5 kB / 21.2 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00103/0.00103, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9064/0.9064, allocations: 177 MB / 204.8 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.502e-06/1.502e-06, allocations: 3.938 kB / 272.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.375e-05/2.526e-05, allocations: 6.312 kB / 272.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009305/0.00933, allocations: 7.443 MB / 280.4 MB, free: 9.965 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006176/0.01551, allocations: 3.298 MB / 283.7 MB, free: 6.656 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001034/0.01654, allocations: 43.81 kB / 283.7 MB, free: 6.613 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001788/0.01833, allocations: 1.086 MB / 284.8 MB, free: 5.523 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00226/0.02059, allocations: 1.408 MB / 286.2 MB, free: 4.109 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007791/0.02137, allocations: 0.5922 MB / 286.8 MB, free: 3.516 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002293/0.02366, allocations: 2.979 MB / 289.8 MB, free: 0.5312 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1129/0.1366, allocations: 1.515 MB / 291.3 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002535/0.1391, allocations: 1.311 MB / 292.6 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002079/0.1412, allocations: 1.314 MB / 293.9 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005033/0.1417, allocations: 149.6 kB / 294.1 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001566/0.1433, allocations: 0.8281 MB / 294.9 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001145/0.1444, allocations: 1.128 MB / 296 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001273/0.1457, allocations: 0.6657 MB / 296.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003894/0.1496, allocations: 2.837 MB / 299.5 MB, free: 14.56 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.311e-06/0.1496, allocations: 0 / 299.5 MB, free: 14.56 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1496, allocations: 1.375 kB / 299.5 MB, free: 14.56 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001106/0.1497, allocations: 1 kB / 299.5 MB, free: 14.56 MB / 266.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.004438/0.1542, allocations: 3.304 MB / 302.8 MB, free: 12.8 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.1542, allocations: 12.8 kB / 302.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003854/0.1581, allocations: 1.9 MB / 304.7 MB, free: 12.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001505/0.1596, allocations: 1.249 MB / 306 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.56e-05/0.1596, allocations: 122.2 kB / 306.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001937/0.1598, allocations: 166.2 kB / 306.3 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003828/0.1636, allocations: 3.882 MB / 310.1 MB, free: 9.055 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.441e-05/0.1637, allocations: 28.23 kB / 310.2 MB, free: 9.051 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001672/0.1639, allocations: 80.69 kB / 310.3 MB, free: 9.023 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001085/0.1649, allocations: 1.41 MB / 311.7 MB, free: 8.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003508/0.1684, allocations: 2.04 MB / 313.7 MB, free: 6.895 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02092/0.1894, allocations: 29.31 MB / 343 MB, free: 8.914 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003447/0.1928, allocations: 1.087 MB / 344.1 MB, free: 7.789 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005965/0.1934, allocations: 311.2 kB / 344.4 MB, free: 7.473 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004753/0.1982, allocations: 2.608 MB / 347 MB, free: 4.863 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.66e-05/0.1982, allocations: 44.67 kB / 347.1 MB, free: 4.812 MB / 298.7 MB Notification: Performance of pre-optimization done (n=79): time 4.719e-06/0.1982, allocations: 0 / 347.1 MB, free: 4.812 MB / 298.7 MB Notification: Performance of matching and sorting (n=80): time 0.006684/0.2049, allocations: 4.061 MB / 351.1 MB, free: 0.7031 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.598e-05/0.2049, allocations: 143.7 kB / 351.3 MB, free: 0.5352 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002799/0.2077, allocations: 2.454 MB / 353.7 MB, free: 14.04 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.163e-05/0.2078, allocations: 40.2 kB / 353.7 MB, free: 14 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001187/0.209, allocations: 2.327 MB / 356.1 MB, free: 11.68 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002974/0.2093, allocations: 373.9 kB / 356.4 MB, free: 11.32 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007736/0.2101, allocations: 0.9036 MB / 357.3 MB, free: 10.41 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.2102, allocations: 0.5394 MB / 357.9 MB, free: 9.859 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00067/0.2109, allocations: 391.9 kB / 358.3 MB, free: 9.473 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002743/0.2136, allocations: 4.44 MB / 362.7 MB, free: 3.195 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003887/0.2175, allocations: 5.311 MB / 368 MB, free: 12.1 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.203e-05/0.2176, allocations: 28 kB / 368 MB, free: 12.07 MB / 330.7 MB Notification: Performance of matching and sorting (n=533) (initialization): time 0.004854/0.2224, allocations: 3.529 MB / 371.6 MB, free: 8.543 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.346e-05/0.2225, allocations: 48 kB / 371.6 MB, free: 8.496 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001036/0.2226, allocations: 100 kB / 371.7 MB, free: 8.398 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000381/0.223, allocations: 168.1 kB / 371.9 MB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001584/0.2245, allocations: 0.9513 MB / 372.8 MB, free: 7.277 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001276/0.2258, allocations: 2 MB / 374.8 MB, free: 5.156 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001651/0.2275, allocations: 279.6 kB / 375.1 MB, free: 4.883 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000225/0.2277, allocations: 260 kB / 375.4 MB, free: 4.629 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 (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 (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.0007844/0.2285, allocations: 0.5081 MB / 375.9 MB, free: 4.109 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002679/0.2287, allocations: 228.1 kB / 376.1 MB, free: 3.887 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006073/0.2294, allocations: 443.6 kB / 376.5 MB, free: 3.438 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.376e-05/0.2294, allocations: 8 kB / 376.5 MB, free: 3.43 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.2294, allocations: 4 kB / 376.5 MB, free: 3.426 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.657e-06/0.2294, allocations: 7.922 kB / 376.5 MB, free: 3.418 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003434/0.2328, allocations: 2.423 MB / 379 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.2328, allocations: 4 kB / 379 MB, free: 0.9453 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002893/0.2331, allocations: 111.8 kB / 379.1 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001517/0.2333, allocations: 47.62 kB / 379.1 MB, free: 0.7852 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.828e-05/0.2333, allocations: 18.47 kB / 379.1 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009742/0.2343, allocations: 1.819 MB / 381 MB, free: 14.83 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.2343, allocations: 0 / 381 MB, free: 14.83 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001411/0.2357, allocations: 1.306 MB / 382.3 MB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003174/0.236, allocations: 194.6 kB / 382.5 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001363/0.2361, allocations: 12 kB / 382.5 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004574/0.2366, allocations: 81.34 kB / 382.5 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.216e-05/0.2367, allocations: 43.86 kB / 382.6 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.982e-05/0.2367, allocations: 24 kB / 382.6 MB, free: 13.14 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001222/0.2379, allocations: 1.047 MB / 383.7 MB, free: 12.08 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2379, allocations: 0 / 383.7 MB, free: 12.08 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002543/0.2405, allocations: 0.6391 MB / 384.3 MB, free: 11.44 MB / 346.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.0004305/0.2409, allocations: 211.7 kB / 384.5 MB, free: 11.23 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002986/0.2439, allocations: 1.899 MB / 386.4 MB, free: 9.324 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.2439, allocations: 0 / 386.4 MB, free: 9.324 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004108/0.2443, allocations: 411.5 kB / 386.8 MB, free: 8.902 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009669/0.2453, allocations: 225.5 kB / 387 MB, free: 8.691 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005538/0.2508, allocations: 4.331 MB / 391.4 MB, free: 4.285 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006389/0.2515, allocations: 0.733 MB / 392.1 MB, free: 3.527 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001768/0.2532, allocations: 1.124 MB / 393.2 MB, free: 2.402 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002487/0.2535, allocations: 148.5 kB / 393.4 MB, free: 2.258 MB / 346.7 MB Notification: Performance of SimCode: time 1.593e-06/0.2535, allocations: 0 / 393.4 MB, free: 2.258 MB / 346.7 MB Notification: Performance of Templates: time 0.02544/0.2789, allocations: 15.45 MB / 408.8 MB, free: 3.215 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.3723991098813713]