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.001125/0.001125, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.0011/0.0011, allocations: 142.1 kB / 24.97 MB, free: 8.316 MB / 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.9391/0.9391, allocations: 173.3 MB / 201.5 MB, free: 9.324 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 2.365e-06/2.365e-06, allocations: 4 kB / 268.1 MB, free: 6.703 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.434e-05/1.67e-05, allocations: 6.25 kB / 268.1 MB, free: 6.695 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.006088/0.006105, allocations: 7.437 MB / 275.5 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004294/0.0104, allocations: 3.266 MB / 278.8 MB, free: 11.94 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004689/0.01087, allocations: 43.75 kB / 278.8 MB, free: 11.9 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001337/0.0122, allocations: 1.101 MB / 279.9 MB, free: 10.79 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001756/0.01396, allocations: 1.423 MB / 281.4 MB, free: 9.363 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000735/0.0147, allocations: 0.5961 MB / 282 MB, free: 8.766 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002058/0.01675, allocations: 2.916 MB / 284.9 MB, free: 5.848 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00126/0.01801, allocations: 1.525 MB / 286.4 MB, free: 4.293 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001111/0.01912, allocations: 1.298 MB / 287.7 MB, free: 2.992 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0012/0.02032, allocations: 1.344 MB / 289 MB, free: 1.645 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001661/0.02049, allocations: 148 kB / 289.2 MB, free: 1.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008872/0.02138, allocations: 0.8267 MB / 290 MB, free: 0.6719 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1127/0.1341, allocations: 1.147 MB / 291.2 MB, free: 18.48 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001331/0.1355, allocations: 0.6846 MB / 291.8 MB, free: 18.48 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003223/0.1387, allocations: 2.89 MB / 294.7 MB, free: 18.27 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1387, allocations: 1.094 kB / 294.7 MB, free: 18.27 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1387, allocations: 1.438 kB / 294.7 MB, free: 18.27 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.085e-05/0.1388, allocations: 0 / 294.7 MB, free: 18.27 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.004602/0.1434, allocations: 3.31 MB / 298 MB, free: 16.85 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.1434, allocations: 13.34 kB / 298.1 MB, free: 16.85 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003616/0.147, allocations: 1.9 MB / 300 MB, free: 16.66 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001424/0.1485, allocations: 1.221 MB / 301.2 MB, free: 16.31 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.779e-05/0.1485, allocations: 123.4 kB / 301.3 MB, free: 16.31 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002471/0.1488, allocations: 161.5 kB / 301.5 MB, free: 16.31 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003787/0.1526, allocations: 3.893 MB / 305.4 MB, free: 14.4 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.445e-05/0.1526, allocations: 29.86 kB / 305.4 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001755/0.1528, allocations: 81.78 kB / 305.5 MB, free: 14.38 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001334/0.1541, allocations: 1.466 MB / 306.9 MB, free: 14.15 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00325/0.1574, allocations: 2.146 MB / 309.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01402/0.1714, allocations: 29.02 MB / 338.1 MB, free: 2.453 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002601/0.174, allocations: 1.208 MB / 339.3 MB, free: 1.199 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005253/0.1745, allocations: 401.7 kB / 339.7 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003744/0.1783, allocations: 3.326 MB / 343 MB, free: 13.47 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.1783, allocations: 41.39 kB / 343.1 MB, free: 13.42 MB / 298.7 MB Notification: Performance of pre-optimization done (n=97): time 2.715e-06/0.1783, allocations: 0 / 343.1 MB, free: 13.42 MB / 298.7 MB Notification: Performance of matching and sorting (n=105): time 0.0118/0.1901, allocations: 6.933 MB / 350 MB, free: 6.469 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/0.1901, allocations: 137 kB / 350.1 MB, free: 6.305 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002021/0.1922, allocations: 2.393 MB / 352.5 MB, free: 3.875 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.446e-05/0.1922, allocations: 37.7 kB / 352.6 MB, free: 3.832 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001258/0.1935, allocations: 2.259 MB / 354.8 MB, free: 1.586 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002859/0.1938, allocations: 467.5 kB / 355.3 MB, free: 1.137 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007959/0.1946, allocations: 0.8971 MB / 356.2 MB, free: 228 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.1947, allocations: 0.5355 MB / 356.7 MB, free: 15.68 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007518/0.1955, allocations: 455.9 kB / 357.2 MB, free: 15.23 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002612/0.1981, allocations: 4.35 MB / 361.5 MB, free: 9.113 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003816/0.2019, allocations: 5.287 MB / 366.8 MB, free: 2.164 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.972e-05/0.2019, allocations: 24 kB / 366.8 MB, free: 2.141 MB / 314.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.005099/0.207, allocations: 4.069 MB / 370.9 MB, free: 14.06 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.41e-05/0.2071, allocations: 44 kB / 370.9 MB, free: 14.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.841e-05/0.2071, allocations: 92 kB / 371 MB, free: 13.93 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001164/0.2083, allocations: 0.5575 MB / 371.6 MB, free: 13.37 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001556/0.2099, allocations: 0.9513 MB / 372.5 MB, free: 12.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002769/0.2126, allocations: 2.983 MB / 375.5 MB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001435/0.2141, allocations: 282.4 kB / 375.8 MB, free: 9.043 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002361/0.2143, allocations: 263.9 kB / 376 MB, free: 8.785 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.0009399/0.2152, allocations: 0.4926 MB / 376.5 MB, free: 8.281 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003866/0.2156, allocations: 241.3 kB / 376.8 MB, free: 8.047 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002742/0.2184, allocations: 1.172 MB / 377.9 MB, free: 6.863 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.242e-05/0.2184, allocations: 12 kB / 378 MB, free: 6.852 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.827e-06/0.2184, allocations: 4 kB / 378 MB, free: 6.848 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.2184, allocations: 3.984 kB / 378 MB, free: 6.844 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007175/0.2256, allocations: 3.425 MB / 381.4 MB, free: 3.379 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.2256, allocations: 0 / 381.4 MB, free: 3.379 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006363/0.2262, allocations: 155.8 kB / 381.5 MB, free: 3.227 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001571/0.2278, allocations: 434.8 kB / 382 MB, free: 2.797 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.924e-05/0.2279, allocations: 16 kB / 382 MB, free: 2.781 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002892/0.2308, allocations: 2.476 MB / 384.5 MB, free: 188 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.2308, allocations: 4 kB / 384.5 MB, free: 184 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003791/0.2346, allocations: 2.076 MB / 386.5 MB, free: 14.07 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003262/0.2349, allocations: 214.4 kB / 386.7 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002401/0.2351, allocations: 12 kB / 386.8 MB, free: 13.84 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009366/0.2361, allocations: 105.8 kB / 386.9 MB, free: 13.74 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001994/0.2363, allocations: 68.39 kB / 386.9 MB, free: 13.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.242e-05/0.2364, allocations: 31.98 kB / 387 MB, free: 13.64 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001817/0.2382, allocations: 1.018 MB / 388 MB, free: 12.61 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2382, allocations: 0 / 388 MB, free: 12.61 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003836/0.242, allocations: 0.7604 MB / 388.7 MB, free: 11.85 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.0003981/0.2424, allocations: 225.3 kB / 389 MB, free: 11.63 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002622/0.245, allocations: 2.135 MB / 391.1 MB, free: 9.488 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.245, allocations: 0 / 391.1 MB, free: 9.488 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005518/0.2456, allocations: 0.5576 MB / 391.6 MB, free: 8.906 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008908/0.2465, allocations: 227.7 kB / 391.9 MB, free: 8.684 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005379/0.2519, allocations: 4.528 MB / 396.4 MB, free: 4.082 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006088/0.2525, allocations: 0.7585 MB / 397.2 MB, free: 3.301 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001521/0.254, allocations: 1.111 MB / 398.3 MB, free: 2.188 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002708/0.2543, allocations: 152.5 kB / 398.4 MB, free: 2.039 MB / 346.7 MB Notification: Performance of SimCode: time 1.172e-06/0.2543, allocations: 0 / 398.4 MB, free: 2.039 MB / 346.7 MB Notification: Performance of Templates: time 0.02924/0.2835, allocations: 20.94 MB / 419.4 MB, free: 13.41 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.511020540026948]