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.001419/0.001419, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.001465/0.001465, allocations: 161 kB / 24.56 MB, free: 16 kB / 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 1.011/1.011, allocations: 177.1 MB / 205 MB, free: 5.609 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.013e-06/2.013e-06, allocations: 0 / 273 MB, free: 1.516 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.91e-05/2.111e-05, allocations: 2.312 kB / 273 MB, free: 1.512 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.00653/0.006551, allocations: 7.446 MB / 280.4 MB, free: 10.04 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004182/0.01073, allocations: 3.286 MB / 283.7 MB, free: 6.742 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000368/0.0111, allocations: 47.75 kB / 283.8 MB, free: 6.695 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001405/0.01251, allocations: 1.101 MB / 284.9 MB, free: 5.59 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001742/0.01425, allocations: 1.396 MB / 286.3 MB, free: 4.188 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006553/0.0149, allocations: 0.5844 MB / 286.8 MB, free: 3.602 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001949/0.01685, allocations: 2.976 MB / 289.8 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.132/0.1488, allocations: 1.515 MB / 291.3 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002048/0.1509, allocations: 1.283 MB / 292.6 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001945/0.1528, allocations: 1.339 MB / 294 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003243/0.1532, allocations: 151.2 kB / 294.1 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001584/0.1547, allocations: 0.8229 MB / 294.9 MB, free: 14.63 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009408/0.1557, allocations: 1.132 MB / 296.1 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007112/0.1564, allocations: 0.6726 MB / 296.7 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002894/0.1593, allocations: 2.843 MB / 299.6 MB, free: 14.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.1593, allocations: 0 / 299.6 MB, free: 14.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1593, allocations: 4.25 kB / 299.6 MB, free: 14.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.798e-05/0.1594, allocations: 0 / 299.6 MB, free: 14.02 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.00398/0.1633, allocations: 3.294 MB / 302.9 MB, free: 12.61 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.1634, allocations: 10.31 kB / 302.9 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003103/0.1665, allocations: 1.902 MB / 304.8 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001293/0.1678, allocations: 1.225 MB / 306 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.103e-05/0.1678, allocations: 122.4 kB / 306.1 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001972/0.168, allocations: 153.7 kB / 306.3 MB, free: 11.67 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003397/0.1714, allocations: 3.896 MB / 310.2 MB, free: 8.949 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.317e-05/0.1715, allocations: 29.3 kB / 310.2 MB, free: 8.945 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001679/0.1716, allocations: 83.17 kB / 310.3 MB, free: 8.918 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001267/0.1729, allocations: 1.467 MB / 311.8 MB, free: 8.367 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003452/0.1763, allocations: 2.146 MB / 313.9 MB, free: 6.703 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01706/0.1934, allocations: 29.01 MB / 342.9 MB, free: 9.078 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002577/0.196, allocations: 1.201 MB / 344.1 MB, free: 7.836 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004904/0.1965, allocations: 403.8 kB / 344.5 MB, free: 7.43 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003769/0.2002, allocations: 3.337 MB / 347.8 MB, free: 4.094 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.154e-05/0.2003, allocations: 60.66 kB / 347.9 MB, free: 4.027 MB / 298.7 MB Notification: Performance of pre-optimization done (n=97): time 3.076e-06/0.2003, allocations: 0 / 347.9 MB, free: 4.027 MB / 298.7 MB Notification: Performance of matching and sorting (n=105): time 0.0116/0.2119, allocations: 6.908 MB / 354.8 MB, free: 13.07 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.26e-05/0.2119, allocations: 137 kB / 354.9 MB, free: 12.91 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002034/0.214, allocations: 2.395 MB / 357.3 MB, free: 10.47 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.968e-05/0.214, allocations: 43.39 kB / 357.4 MB, free: 10.43 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009828/0.215, allocations: 2.263 MB / 359.6 MB, free: 8.176 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002773/0.2153, allocations: 465.7 kB / 360.1 MB, free: 7.727 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008732/0.2162, allocations: 0.9034 MB / 361 MB, free: 6.809 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.2163, allocations: 0.5355 MB / 361.5 MB, free: 6.266 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007052/0.217, allocations: 454.8 kB / 362 MB, free: 5.816 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002374/0.2194, allocations: 4.342 MB / 366.3 MB, free: 15.7 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00367/0.2231, allocations: 5.291 MB / 371.6 MB, free: 8.688 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.858e-05/0.2231, allocations: 24 kB / 371.6 MB, free: 8.664 MB / 330.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.005143/0.2282, allocations: 4.066 MB / 375.7 MB, free: 4.59 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.011e-05/0.2283, allocations: 44 kB / 375.8 MB, free: 4.547 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.234e-05/0.2283, allocations: 92 kB / 375.8 MB, free: 4.457 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001202/0.2295, allocations: 0.5588 MB / 376.4 MB, free: 3.895 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001607/0.2311, allocations: 0.9491 MB / 377.3 MB, free: 2.945 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002779/0.2339, allocations: 2.981 MB / 380.3 MB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001521/0.2354, allocations: 279.5 kB / 380.6 MB, free: 15.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002295/0.2357, allocations: 260 kB / 380.9 MB, free: 15.32 MB / 346.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.0008198/0.2365, allocations: 0.5039 MB / 381.4 MB, free: 14.81 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002512/0.2367, allocations: 238.6 kB / 381.6 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002147/0.2389, allocations: 1.167 MB / 382.8 MB, free: 13.4 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-05/0.2389, allocations: 15.98 kB / 382.8 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.2389, allocations: 4 kB / 382.8 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.246e-06/0.2389, allocations: 3.984 kB / 382.8 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004807/0.2437, allocations: 3.42 MB / 386.2 MB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.2437, allocations: 4 kB / 386.2 MB, free: 9.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003999/0.2441, allocations: 159.7 kB / 386.4 MB, free: 9.754 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001004/0.2451, allocations: 438.4 kB / 386.8 MB, free: 9.324 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.66e-05/0.2452, allocations: 27.92 kB / 386.8 MB, free: 9.297 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002092/0.2473, allocations: 2.46 MB / 389.3 MB, free: 6.711 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2473, allocations: 0 / 389.3 MB, free: 6.711 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002561/0.2498, allocations: 2.084 MB / 391.4 MB, free: 4.59 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002116/0.2501, allocations: 210.4 kB / 391.6 MB, free: 4.383 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000132/0.2502, allocations: 23.98 kB / 391.6 MB, free: 4.359 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000543/0.2507, allocations: 106.3 kB / 391.7 MB, free: 4.258 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000115/0.2509, allocations: 60.39 kB / 391.8 MB, free: 4.195 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.958e-05/0.2509, allocations: 31.94 kB / 391.8 MB, free: 4.164 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001017/0.2519, allocations: 1.014 MB / 392.8 MB, free: 3.133 MB / 346.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2519, allocations: 0 / 392.8 MB, free: 3.133 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002162/0.2541, allocations: 0.7458 MB / 393.5 MB, free: 2.387 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.0003956/0.2545, allocations: 217 kB / 393.8 MB, free: 2.172 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002616/0.2571, allocations: 2.127 MB / 395.9 MB, free: 36 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2571, allocations: 0 / 395.9 MB, free: 36 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005705/0.2577, allocations: 0.5527 MB / 396.4 MB, free: 15.46 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008784/0.2585, allocations: 246.1 kB / 396.7 MB, free: 15.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004946/0.2635, allocations: 4.537 MB / 401.2 MB, free: 10.62 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005769/0.2641, allocations: 0.7544 MB / 402 MB, free: 9.84 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001443/0.2655, allocations: 1.113 MB / 403.1 MB, free: 8.727 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002849/0.2658, allocations: 156.5 kB / 403.2 MB, free: 8.574 MB / 362.7 MB Notification: Performance of SimCode: time 1.273e-06/0.2658, allocations: 0 / 403.2 MB, free: 8.574 MB / 362.7 MB Notification: Performance of Templates: time 0.02895/0.2947, allocations: 20.86 MB / 424.1 MB, free: 4.035 MB / 378.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.6811400367878377]