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/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.001207/0.001207, allocations: 79.73 kB / 21.97 MB, free: 2.602 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.001391/0.001391, allocations: 164.7 kB / 25.33 MB, free: 9.461 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8335/0.8335, allocations: 158.6 MB / 187.2 MB, free: 2.488 MB / 170.7 MB " [Timeout remaining time 179] 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 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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.873e-06/1.873e-06, allocations: 0 / 251.1 MB, free: 3.57 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.578e-05/3.765e-05, allocations: 6.312 kB / 251.1 MB, free: 3.562 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009747/0.009785, allocations: 7.531 MB / 258.6 MB, free: 12 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00631/0.01609, allocations: 3.225 MB / 261.8 MB, free: 8.766 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009677/0.01706, allocations: 47.75 kB / 261.9 MB, free: 8.719 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001585/0.01865, allocations: 1.098 MB / 263 MB, free: 7.617 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002535/0.02118, allocations: 1.427 MB / 264.4 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001036/0.02222, allocations: 0.6038 MB / 265 MB, free: 5.578 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003166/0.02538, allocations: 2.92 MB / 267.9 MB, free: 2.652 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002054/0.02744, allocations: 1.529 MB / 269.4 MB, free: 1.094 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002397/0.02984, allocations: 1.333 MB / 270.8 MB, free: 15.76 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001908/0.03174, allocations: 1.329 MB / 272.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004151/0.03216, allocations: 148 kB / 272.3 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001651/0.03381, allocations: 0.8266 MB / 273.1 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001024/0.03483, allocations: 1.145 MB / 274.2 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001021/0.03586, allocations: 0.689 MB / 274.9 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003654/0.03951, allocations: 2.876 MB / 277.8 MB, free: 8.727 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.03951, allocations: 0 / 277.8 MB, free: 8.727 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.03952, allocations: 0 / 277.8 MB, free: 8.727 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.785e-05/0.03961, allocations: 0 / 277.8 MB, free: 8.727 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.005152/0.04477, allocations: 3.335 MB / 281.1 MB, free: 5.34 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.04481, allocations: 11.98 kB / 281.1 MB, free: 5.328 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004481/0.04929, allocations: 1.898 MB / 283 MB, free: 3.426 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00269/0.05198, allocations: 1.294 MB / 284.3 MB, free: 2.102 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.848e-05/0.05208, allocations: 123.4 kB / 284.4 MB, free: 1.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003202/0.0524, allocations: 159.8 kB / 284.6 MB, free: 1.824 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006189/0.05859, allocations: 3.879 MB / 288.5 MB, free: 13.29 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.857e-05/0.05866, allocations: 31.7 kB / 288.5 MB, free: 13.26 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002302/0.05889, allocations: 83.89 kB / 288.6 MB, free: 13.18 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0017/0.06059, allocations: 1.402 MB / 290 MB, free: 11.77 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005472/0.06606, allocations: 2.044 MB / 292 MB, free: 9.73 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1355/0.2015, allocations: 29.31 MB / 321.3 MB, free: 25.56 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002799/0.2043, allocations: 1.086 MB / 322.4 MB, free: 25.42 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004988/0.2048, allocations: 309 kB / 322.7 MB, free: 25.37 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003539/0.2084, allocations: 2.621 MB / 325.4 MB, free: 24.41 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.8e-05/0.2084, allocations: 43.92 kB / 325.4 MB, free: 24.37 MB / 282.7 MB Notification: Performance of pre-optimization done (n=79): time 3.236e-06/0.2084, allocations: 2.688 kB / 325.4 MB, free: 24.37 MB / 282.7 MB Notification: Performance of matching and sorting (n=80): time 0.006292/0.2147, allocations: 4.103 MB / 329.5 MB, free: 22.63 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.631e-05/0.2147, allocations: 135.3 kB / 329.6 MB, free: 22.47 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002221/0.2169, allocations: 2.492 MB / 332.1 MB, free: 21.65 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.259e-05/0.217, allocations: 37.23 kB / 332.2 MB, free: 21.61 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008385/0.2178, allocations: 2.329 MB / 334.5 MB, free: 19.91 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002382/0.2181, allocations: 373.4 kB / 334.9 MB, free: 19.66 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006535/0.2187, allocations: 0.8966 MB / 335.8 MB, free: 19.17 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.328e-05/0.2188, allocations: 0.5328 MB / 336.3 MB, free: 18.66 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006179/0.2194, allocations: 398.5 kB / 336.7 MB, free: 18.61 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00152/0.2209, allocations: 4.438 MB / 341.1 MB, free: 13.08 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002917/0.2239, allocations: 5.309 MB / 346.4 MB, free: 7.242 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.977e-05/0.2239, allocations: 25.69 kB / 346.5 MB, free: 7.242 MB / 282.7 MB Notification: Performance of matching and sorting (n=533) (initialization): time 0.004147/0.2281, allocations: 3.542 MB / 350 MB, free: 4.812 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.42e-05/0.2281, allocations: 48 kB / 350 MB, free: 4.766 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.067e-05/0.2282, allocations: 96 kB / 350.1 MB, free: 4.672 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003308/0.2285, allocations: 166.2 kB / 350.3 MB, free: 4.52 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001569/0.2301, allocations: 0.9503 MB / 351.2 MB, free: 3.684 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009423/0.231, allocations: 2.002 MB / 353.2 MB, free: 1.625 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001786/0.2328, allocations: 290.5 kB / 353.5 MB, free: 1.391 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002109/0.233, allocations: 260 kB / 353.8 MB, free: 1.137 MB / 282.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.0007003/0.2337, allocations: 0.5036 MB / 354.3 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002663/0.234, allocations: 226.6 kB / 354.5 MB, free: 408 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005389/0.2345, allocations: 438.6 kB / 354.9 MB, free: 36 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.516e-05/0.2346, allocations: 18.59 kB / 355 MB, free: 20 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.2346, allocations: 3.828 kB / 355 MB, free: 20 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.2346, allocations: 3.703 kB / 355 MB, free: 20 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003604/0.2382, allocations: 2.434 MB / 357.4 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.2382, allocations: 0 / 357.4 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003042/0.2385, allocations: 119.8 kB / 357.5 MB, free: 13.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001621/0.2386, allocations: 55.56 kB / 357.6 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.565e-05/0.2387, allocations: 8 kB / 357.6 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009921/0.2397, allocations: 1.815 MB / 359.4 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.754e-06/0.2397, allocations: 0 / 359.4 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001596/0.2413, allocations: 1.307 MB / 360.7 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004307/0.2417, allocations: 294.4 kB / 361 MB, free: 9.859 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001527/0.2418, allocations: 16.06 kB / 361 MB, free: 9.844 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004604/0.2423, allocations: 79.86 kB / 361.1 MB, free: 9.766 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.66e-05/0.2424, allocations: 43.81 kB / 361.1 MB, free: 9.723 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.397e-05/0.2424, allocations: 30.64 kB / 361.2 MB, free: 9.695 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001192/0.2436, allocations: 1.063 MB / 362.2 MB, free: 8.617 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.2436, allocations: 0 / 362.2 MB, free: 8.617 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002972/0.2466, allocations: 0.6521 MB / 362.9 MB, free: 7.965 MB / 298.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.0004923/0.2471, allocations: 215.5 kB / 363.1 MB, free: 7.754 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003276/0.2504, allocations: 1.901 MB / 365 MB, free: 5.848 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.2504, allocations: 4 kB / 365 MB, free: 5.844 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004689/0.2508, allocations: 399.7 kB / 365.4 MB, free: 5.434 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001146/0.252, allocations: 243.4 kB / 365.6 MB, free: 5.207 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006435/0.2584, allocations: 4.347 MB / 370 MB, free: 0.793 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006847/0.2591, allocations: 0.7333 MB / 370.7 MB, free: 32 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.001774/0.2609, allocations: 1.132 MB / 371.8 MB, free: 14.89 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000297/0.2612, allocations: 144.4 kB / 372 MB, free: 14.76 MB / 314.7 MB Notification: Performance of SimCode: time 2.164e-06/0.2612, allocations: 0 / 372 MB, free: 14.76 MB / 314.7 MB Notification: Performance of Templates: time 0.02696/0.2881, allocations: 15.74 MB / 387.7 MB, free: 15.11 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.3451087060384452]