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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009523/0.0009523, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9772/0.9772, allocations: 173.3 MB / 201.1 MB, free: 9.332 MB / 186.7 MB " [Timeout remaining time 179] 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=5002,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=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.933e-06/1.933e-06, allocations: 0 / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.118e-05/3.311e-05, allocations: 6.25 kB / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009835/0.009869, allocations: 7.46 MB / 275.5 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006202/0.01607, allocations: 3.282 MB / 278.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001059/0.01713, allocations: 39.81 kB / 278.8 MB, free: 11.58 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001834/0.01896, allocations: 1.101 MB / 279.9 MB, free: 10.47 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002418/0.02138, allocations: 1.427 MB / 281.3 MB, free: 9.039 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009451/0.02233, allocations: 0.5922 MB / 281.9 MB, free: 8.445 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002647/0.02497, allocations: 2.916 MB / 284.8 MB, free: 5.527 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001736/0.02671, allocations: 1.525 MB / 286.4 MB, free: 3.973 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001885/0.0286, allocations: 1.298 MB / 287.7 MB, free: 2.672 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001676/0.03027, allocations: 1.34 MB / 289 MB, free: 1.328 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003042/0.03058, allocations: 152 kB / 289.1 MB, free: 1.18 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001294/0.03187, allocations: 0.8344 MB / 290 MB, free: 352 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1306/0.1625, allocations: 1.141 MB / 291.1 MB, free: 18.66 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001118/0.1636, allocations: 0.6878 MB / 291.8 MB, free: 18.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004533/0.1682, allocations: 2.888 MB / 294.7 MB, free: 18.45 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1682, allocations: 0 / 294.7 MB, free: 18.45 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1682, allocations: 1.156 kB / 294.7 MB, free: 18.45 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.693e-05/0.1683, allocations: 0.6094 kB / 294.7 MB, free: 18.45 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.006078/0.1743, allocations: 3.313 MB / 298 MB, free: 17.04 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.1744, allocations: 9.312 kB / 298 MB, free: 17.04 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003824/0.1782, allocations: 1.903 MB / 299.9 MB, free: 16.84 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002026/0.1802, allocations: 1.223 MB / 301.1 MB, free: 16.5 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.479e-05/0.1803, allocations: 125.5 kB / 301.3 MB, free: 16.49 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002676/0.1806, allocations: 155.9 kB / 301.4 MB, free: 16.49 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004952/0.1855, allocations: 3.894 MB / 305.3 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.813e-05/0.1856, allocations: 35.38 kB / 305.3 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001657/0.1857, allocations: 83.53 kB / 305.4 MB, free: 14.51 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001428/0.1872, allocations: 1.469 MB / 306.9 MB, free: 14.28 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00495/0.1921, allocations: 2.14 MB / 309 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02255/0.2147, allocations: 29.02 MB / 338.1 MB, free: 2.387 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003648/0.2183, allocations: 1.216 MB / 339.3 MB, free: 1.137 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006936/0.219, allocations: 402.8 kB / 339.7 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005337/0.2244, allocations: 3.316 MB / 343 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.254e-05/0.2244, allocations: 57.14 kB / 343 MB, free: 13.35 MB / 298.7 MB Notification: Performance of pre-optimization done (n=97): time 3.496e-06/0.2244, allocations: 0 / 343 MB, free: 13.35 MB / 298.7 MB Notification: Performance of matching and sorting (n=105): time 0.01742/0.2418, allocations: 6.92 MB / 350 MB, free: 6.391 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.298e-05/0.2419, allocations: 141 kB / 350.1 MB, free: 6.223 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003362/0.2452, allocations: 2.38 MB / 352.5 MB, free: 3.801 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.015e-05/0.2453, allocations: 43.66 kB / 352.5 MB, free: 3.754 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001388/0.2467, allocations: 2.256 MB / 354.8 MB, free: 1.5 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000453/0.2472, allocations: 466.1 kB / 355.2 MB, free: 1.051 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001066/0.2482, allocations: 0.9034 MB / 356.1 MB, free: 136 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001958/0.2484, allocations: 0.5355 MB / 356.7 MB, free: 15.59 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00103/0.2495, allocations: 459.8 kB / 357.1 MB, free: 15.14 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00323/0.2527, allocations: 4.339 MB / 361.5 MB, free: 9.027 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004762/0.2575, allocations: 5.287 MB / 366.7 MB, free: 2.074 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.736e-05/0.2575, allocations: 28 kB / 366.8 MB, free: 2.047 MB / 314.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.005871/0.2634, allocations: 4.061 MB / 370.8 MB, free: 13.97 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.504e-05/0.2634, allocations: 48 kB / 370.9 MB, free: 13.92 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.869e-05/0.2635, allocations: 92 kB / 371 MB, free: 13.83 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001232/0.2647, allocations: 0.5537 MB / 371.5 MB, free: 13.28 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001691/0.2664, allocations: 0.9513 MB / 372.5 MB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002795/0.2692, allocations: 2.99 MB / 375.5 MB, free: 9.223 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001898/0.2711, allocations: 283.5 kB / 375.7 MB, free: 8.945 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002549/0.2713, allocations: 265.2 kB / 376 MB, free: 8.691 MB / 330.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.001011/0.2724, allocations: 0.5 MB / 376.5 MB, free: 8.184 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005046/0.2729, allocations: 234.6 kB / 376.7 MB, free: 7.953 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001892/0.2748, allocations: 1.173 MB / 377.9 MB, free: 6.77 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.45e-05/0.2748, allocations: 12 kB / 377.9 MB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.2748, allocations: 4 kB / 377.9 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.117e-05/0.2748, allocations: 11.97 kB / 377.9 MB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005221/0.28, allocations: 3.407 MB / 381.3 MB, free: 3.289 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.28, allocations: 0 / 381.3 MB, free: 3.289 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004355/0.2804, allocations: 163.7 kB / 381.5 MB, free: 3.129 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00107/0.2815, allocations: 434.9 kB / 381.9 MB, free: 2.699 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.765e-05/0.2816, allocations: 27.92 kB / 381.9 MB, free: 2.672 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002343/0.2839, allocations: 2.473 MB / 384.4 MB, free: 76 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.2839, allocations: 0 / 384.4 MB, free: 76 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002643/0.2866, allocations: 2.076 MB / 386.5 MB, free: 13.96 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003258/0.2869, allocations: 214.4 kB / 386.7 MB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001356/0.287, allocations: 19.94 kB / 386.7 MB, free: 13.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005601/0.2876, allocations: 107.8 kB / 386.8 MB, free: 13.63 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.2877, allocations: 52.39 kB / 386.9 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.403e-05/0.2878, allocations: 32 kB / 386.9 MB, free: 13.55 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001201/0.289, allocations: 1.022 MB / 387.9 MB, free: 12.51 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.289, allocations: 0 / 387.9 MB, free: 12.51 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002617/0.2916, allocations: 0.7576 MB / 388.7 MB, free: 11.75 MB / 346.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.0004244/0.292, allocations: 221 kB / 388.9 MB, free: 11.53 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003062/0.2951, allocations: 2.133 MB / 391 MB, free: 9.391 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.2951, allocations: 0 / 391 MB, free: 9.391 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000587/0.2957, allocations: 0.552 MB / 391.6 MB, free: 8.816 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009223/0.2966, allocations: 239.4 kB / 391.8 MB, free: 8.582 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006357/0.3029, allocations: 4.541 MB / 396.4 MB, free: 3.977 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006381/0.3036, allocations: 0.7545 MB / 397.1 MB, free: 3.199 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001608/0.3052, allocations: 1.111 MB / 398.2 MB, free: 2.086 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003206/0.3055, allocations: 156.5 kB / 398.4 MB, free: 1.934 MB / 346.7 MB Notification: Performance of SimCode: time 1.914e-06/0.3055, allocations: 0 / 398.4 MB, free: 1.934 MB / 346.7 MB Notification: Performance of Templates: time 0.03083/0.3363, allocations: 20.94 MB / 419.3 MB, free: 13.3 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 240] 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","",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.747014656662941]