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.001396/0.001396, allocations: 78.28 kB / 21.42 MB, free: 3.07 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.001423/0.001423, allocations: 152.7 kB / 24.8 MB, free: 9.273 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.9936/0.9936, allocations: 173.3 MB / 201.4 MB, free: 9.25 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.204e-06/2.204e-06, allocations: 0 / 268.4 MB, free: 6.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.232e-05/2.453e-05, allocations: 2.312 kB / 268.4 MB, free: 6.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.006396/0.006421, allocations: 7.257 MB / 275.7 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005313/0.01173, allocations: 3.243 MB / 278.9 MB, free: 11.67 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009988/0.01273, allocations: 43.81 kB / 279 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001552/0.01428, allocations: 1.086 MB / 280 MB, free: 10.54 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002603/0.01689, allocations: 1.431 MB / 281.5 MB, free: 9.098 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.01791, allocations: 0.5962 MB / 282.1 MB, free: 8.5 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002791/0.0207, allocations: 2.919 MB / 285 MB, free: 5.578 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001451/0.02215, allocations: 1.533 MB / 286.5 MB, free: 4.016 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001764/0.02392, allocations: 1.333 MB / 287.9 MB, free: 2.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001581/0.0255, allocations: 1.321 MB / 289.2 MB, free: 1.355 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004434/0.02594, allocations: 148 kB / 289.3 MB, free: 1.211 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001339/0.02728, allocations: 0.8306 MB / 290.2 MB, free: 388 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1238/0.1511, allocations: 1.14 MB / 291.3 MB, free: 18.31 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002032/0.1531, allocations: 0.6851 MB / 292 MB, free: 18.31 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004261/0.1574, allocations: 2.877 MB / 294.9 MB, free: 18.1 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1574, allocations: 1.125 kB / 294.9 MB, free: 18.1 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1574, allocations: 0 / 294.9 MB, free: 18.1 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001275/0.1575, allocations: 0 / 294.9 MB, free: 18.1 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.006557/0.1641, allocations: 3.18 MB / 298 MB, free: 16.69 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.1641, allocations: 9.812 kB / 298 MB, free: 16.69 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002872/0.167, allocations: 0.9965 MB / 299 MB, free: 16.5 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002027/0.169, allocations: 1.143 MB / 300.2 MB, free: 16.14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.112e-05/0.1691, allocations: 121.2 kB / 300.3 MB, free: 16.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002593/0.1694, allocations: 160.5 kB / 300.5 MB, free: 16.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004174/0.1735, allocations: 3.529 MB / 304 MB, free: 14.23 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.428e-05/0.1736, allocations: 29.95 kB / 304 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001885/0.1738, allocations: 83.89 kB / 304.1 MB, free: 14.22 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001137/0.1749, allocations: 1.242 MB / 305.3 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003179/0.1781, allocations: 1.607 MB / 306.9 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01754/0.1957, allocations: 28.37 MB / 335.3 MB, free: 5.742 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002282/0.1979, allocations: 0.9291 MB / 336.2 MB, free: 4.789 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003203/0.1983, allocations: 262.8 kB / 336.5 MB, free: 4.523 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003442/0.2017, allocations: 2.477 MB / 339 MB, free: 2.062 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.417e-05/0.2017, allocations: 49.33 kB / 339 MB, free: 2.004 MB / 282.7 MB Notification: Performance of pre-optimization done (n=79): time 2.965e-06/0.2017, allocations: 0 / 339 MB, free: 2.004 MB / 282.7 MB Notification: Performance of matching and sorting (n=80): time 0.007787/0.2095, allocations: 2.153 MB / 341.2 MB, free: 15.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.095e-05/0.2096, allocations: 136.5 kB / 341.3 MB, free: 15.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003752/0.2133, allocations: 2.458 MB / 343.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.362e-05/0.2134, allocations: 37.7 kB / 343.8 MB, free: 13.51 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001688/0.2151, allocations: 2.343 MB / 346.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004365/0.2155, allocations: 378.5 kB / 346.5 MB, free: 10.92 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001169/0.2167, allocations: 0.9096 MB / 347.4 MB, free: 10.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002227/0.2169, allocations: 0.5423 MB / 348 MB, free: 9.562 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009313/0.2179, allocations: 355.9 kB / 348.3 MB, free: 9.211 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003431/0.2213, allocations: 4.425 MB / 352.7 MB, free: 3.062 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005115/0.2264, allocations: 5.232 MB / 358 MB, free: 12.21 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.908e-05/0.2265, allocations: 29.25 kB / 358 MB, free: 12.19 MB / 314.7 MB Notification: Performance of matching and sorting (n=533) (initialization): time 0.006453/0.2329, allocations: 3.311 MB / 361.3 MB, free: 8.875 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.734e-05/0.233, allocations: 44 kB / 361.4 MB, free: 8.832 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000141/0.2332, allocations: 100 kB / 361.5 MB, free: 8.734 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004539/0.2336, allocations: 168 kB / 361.6 MB, free: 8.566 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002515/0.2361, allocations: 0.924 MB / 362.5 MB, free: 7.641 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001698/0.2378, allocations: 1.972 MB / 364.5 MB, free: 5.566 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003154/0.241, allocations: 187.8 kB / 364.7 MB, free: 5.383 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003835/0.2414, allocations: 233.2 kB / 364.9 MB, free: 5.156 MB / 314.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 (world.gravityArrowColor[1],world.gravityArrowColor[2],world.gravityArrowColor[3],world.gravitySphereColor[1],world.gravitySphereColor[2],world.gravitySphereColor[3],world.groundColor[1],world.groundColor[2],world.groundColor[3],world.axisColor_x[1],world.axisColor_x[2],world.axisColor_x[3],rev.cylinderColor[1],rev.cylinderColor[2],rev.cylinderColor[3],body.sphereColor[1],body.sphereColor[2],body.sphereColor[3],fixedTranslation.color[1],fixedTranslation.color[2],fixedTranslation.color[3]) * 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.001363/0.2427, allocations: 0.497 MB / 365.4 MB, free: 4.648 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004972/0.2432, allocations: 239 kB / 365.7 MB, free: 4.414 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008436/0.2441, allocations: 404.6 kB / 366.1 MB, free: 4.004 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.195e-05/0.2441, allocations: 13.48 kB / 366.1 MB, free: 3.992 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.2441, allocations: 0 / 366.1 MB, free: 3.992 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.2441, allocations: 3.984 kB / 366.1 MB, free: 3.988 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004669/0.2488, allocations: 1.78 MB / 367.9 MB, free: 2.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.2488, allocations: 3.938 kB / 367.9 MB, free: 2.336 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004125/0.2492, allocations: 87.83 kB / 367.9 MB, free: 2.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000222/0.2494, allocations: 47.67 kB / 368 MB, free: 2.199 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.174e-05/0.2495, allocations: 14.73 kB / 368 MB, free: 2.188 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001239/0.2507, allocations: 1.784 MB / 369.8 MB, free: 300 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.2507, allocations: 4 kB / 369.8 MB, free: 296 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001715/0.2524, allocations: 1.224 MB / 371 MB, free: 15.05 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000485/0.2529, allocations: 194.5 kB / 371.2 MB, free: 14.86 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001827/0.2531, allocations: 8 kB / 371.2 MB, free: 14.85 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006043/0.2537, allocations: 15.94 kB / 371.2 MB, free: 14.83 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/0.2538, allocations: 47.8 kB / 371.3 MB, free: 14.79 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.574e-05/0.2539, allocations: 20 kB / 371.3 MB, free: 14.77 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001726/0.2556, allocations: 0.989 MB / 372.3 MB, free: 13.86 MB / 330.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2556, allocations: 0 / 372.3 MB, free: 13.86 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003837/0.2595, allocations: 0.652 MB / 372.9 MB, free: 13.2 MB / 330.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.0006486/0.2601, allocations: 212.6 kB / 373.1 MB, free: 12.99 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003796/0.2639, allocations: 1.809 MB / 375 MB, free: 11.22 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.2639, allocations: 0 / 375 MB, free: 11.22 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005805/0.2645, allocations: 385.6 kB / 375.3 MB, free: 10.83 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001887/0.2664, allocations: 229.5 kB / 375.6 MB, free: 10.61 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009427/0.2758, allocations: 4.322 MB / 379.9 MB, free: 6.23 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008683/0.2767, allocations: 0.741 MB / 380.6 MB, free: 5.461 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001378/0.2781, allocations: 326.8 kB / 380.9 MB, free: 5.141 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006525/0.2787, allocations: 374.1 kB / 381.3 MB, free: 4.773 MB / 330.7 MB Notification: Performance of SimCode: time 1.753e-06/0.2787, allocations: 0 / 381.3 MB, free: 4.773 MB / 330.7 MB Notification: Performance of Templates: time 0.03717/0.3159, allocations: 16.71 MB / 398 MB, free: 4.309 MB / 346.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.4456365080550313]