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.002431/0.002431, allocations: 91.61 kB / 20.96 MB, free: 3.461 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.002796/0.002796, allocations: 165.3 kB / 24.28 MB, free: 152 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.599/1.599, allocations: 177.1 MB / 204.6 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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 1.553e-06/1.553e-06, allocations: 0 / 272.3 MB, free: 1.836 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.872e-05/3.028e-05, allocations: 2.312 kB / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01117/0.0112, allocations: 7.392 MB / 279.7 MB, free: 10.41 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007576/0.01878, allocations: 3.263 MB / 283 MB, free: 7.137 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001042/0.01982, allocations: 39.81 kB / 283 MB, free: 7.098 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002517/0.02234, allocations: 1.105 MB / 284.1 MB, free: 5.988 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003887/0.02623, allocations: 1.396 MB / 285.5 MB, free: 4.586 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001558/0.02778, allocations: 0.5883 MB / 286.1 MB, free: 3.996 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00447/0.03225, allocations: 2.964 MB / 289.1 MB, free: 1.023 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1399/0.1722, allocations: 1.52 MB / 290.6 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00233/0.1745, allocations: 1.286 MB / 291.9 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002502/0.177, allocations: 1.336 MB / 293.2 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004357/0.1774, allocations: 151 kB / 293.4 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001969/0.1794, allocations: 0.8216 MB / 294.2 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001304/0.1807, allocations: 1.132 MB / 295.3 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001051/0.1818, allocations: 0.6747 MB / 296 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00528/0.187, allocations: 4.105 MB / 300.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.187, allocations: 1.031 kB / 300.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.187, allocations: 0 / 300.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001074/0.1871, allocations: 1.688 kB / 300.1 MB, free: 14.38 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.007481/0.1946, allocations: 3.54 MB / 303.6 MB, free: 12.45 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.1947, allocations: 9.406 kB / 303.7 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005603/0.2003, allocations: 1.899 MB / 305.6 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002975/0.2032, allocations: 1.229 MB / 306.8 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.524e-05/0.2033, allocations: 126 kB / 306.9 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003209/0.2036, allocations: 155.6 kB / 307.1 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006827/0.2105, allocations: 4.135 MB / 311.2 MB, free: 7.859 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.965e-05/0.2105, allocations: 28.48 kB / 311.2 MB, free: 7.855 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002433/0.2108, allocations: 85.72 kB / 311.3 MB, free: 7.828 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002199/0.213, allocations: 1.466 MB / 312.8 MB, free: 7.277 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006731/0.2197, allocations: 2.414 MB / 315.2 MB, free: 5.008 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04117/0.2609, allocations: 31.07 MB / 346.3 MB, free: 5.328 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005101/0.266, allocations: 1.248 MB / 347.5 MB, free: 4.043 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000977/0.267, allocations: 411.1 kB / 347.9 MB, free: 3.629 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008345/0.2753, allocations: 3.393 MB / 351.3 MB, free: 228 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.974e-05/0.2754, allocations: 48.25 kB / 351.3 MB, free: 172 kB / 298.7 MB Notification: Performance of pre-optimization done (n=97): time 3.136e-06/0.2754, allocations: 0 / 351.3 MB, free: 172 kB / 298.7 MB Notification: Performance of matching and sorting (n=105): time 0.02356/0.2989, allocations: 6.991 MB / 358.3 MB, free: 9.141 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/0.299, allocations: 137 kB / 358.5 MB, free: 8.977 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005111/0.3041, allocations: 2.946 MB / 361.4 MB, free: 5.988 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004474/0.3046, allocations: 41.7 kB / 361.5 MB, free: 5.941 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002465/0.3071, allocations: 2.386 MB / 363.8 MB, free: 3.566 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008346/0.3079, allocations: 489.3 kB / 364.3 MB, free: 3.094 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001755/0.3096, allocations: 1.045 MB / 365.4 MB, free: 2.035 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003886/0.31, allocations: 0.559 MB / 365.9 MB, free: 1.469 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001393/0.3114, allocations: 0.496 MB / 366.4 MB, free: 0.9648 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005462/0.3169, allocations: 4.511 MB / 370.9 MB, free: 10.69 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008131/0.325, allocations: 5.501 MB / 376.4 MB, free: 3.453 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001272/0.3252, allocations: 28 kB / 376.5 MB, free: 3.426 MB / 330.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01196/0.3371, allocations: 4.161 MB / 380.6 MB, free: 15.25 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.871e-05/0.3372, allocations: 44 kB / 380.7 MB, free: 15.21 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001443/0.3373, allocations: 96 kB / 380.8 MB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002447/0.3398, allocations: 0.5665 MB / 381.3 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00363/0.3434, allocations: 0.9513 MB / 382.3 MB, free: 13.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005331/0.3488, allocations: 3.057 MB / 385.3 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003727/0.3525, allocations: 279.5 kB / 385.6 MB, free: 10.15 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000914/0.3534, allocations: 261 kB / 385.9 MB, free: 9.898 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.001803/0.3552, allocations: 0.5723 MB / 386.4 MB, free: 9.316 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006622/0.3559, allocations: 234.6 kB / 386.7 MB, free: 9.086 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003926/0.3598, allocations: 1.195 MB / 387.9 MB, free: 7.875 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.518e-05/0.3598, allocations: 14.81 kB / 387.9 MB, free: 7.863 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/0.3598, allocations: 4 kB / 387.9 MB, free: 7.859 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.308e-05/0.3598, allocations: 7.812 kB / 387.9 MB, free: 7.855 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01137/0.3712, allocations: 3.919 MB / 391.8 MB, free: 3.895 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.768e-05/0.3712, allocations: 4 kB / 391.8 MB, free: 3.891 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009546/0.3722, allocations: 162.7 kB / 392 MB, free: 3.734 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002125/0.3743, allocations: 440.2 kB / 392.4 MB, free: 3.301 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001483/0.3745, allocations: 23.92 kB / 392.4 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004415/0.3789, allocations: 2.535 MB / 395 MB, free: 0.625 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.351e-06/0.3789, allocations: 7.938 kB / 395 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005505/0.3844, allocations: 2.157 MB / 397.1 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008107/0.3852, allocations: 218.4 kB / 397.3 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002554/0.3855, allocations: 16 kB / 397.3 MB, free: 14.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001134/0.3866, allocations: 99.83 kB / 397.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002129/0.3868, allocations: 60.39 kB / 397.5 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/0.3869, allocations: 31.28 kB / 397.5 MB, free: 14.01 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002514/0.3894, allocations: 1.205 MB / 398.7 MB, free: 12.79 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3894, allocations: 0 / 398.7 MB, free: 12.79 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004054/0.3935, allocations: 0.7419 MB / 399.5 MB, free: 12.04 MB / 362.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.0006639/0.3941, allocations: 220.1 kB / 399.7 MB, free: 11.82 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005528/0.3997, allocations: 2.328 MB / 402 MB, free: 9.488 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.3997, allocations: 0 / 402 MB, free: 9.488 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001209/0.4009, allocations: 0.5897 MB / 402.6 MB, free: 8.875 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00188/0.4028, allocations: 240.7 kB / 402.8 MB, free: 8.645 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01002/0.4128, allocations: 4.6 MB / 407.4 MB, free: 3.98 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00238/0.4152, allocations: 1.498 MB / 408.9 MB, free: 2.445 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002963/0.4181, allocations: 1.108 MB / 410.1 MB, free: 1.336 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005076/0.4186, allocations: 156.5 kB / 410.2 MB, free: 1.18 MB / 362.7 MB Notification: Performance of SimCode: time 1.102e-06/0.4186, allocations: 0 / 410.2 MB, free: 1.18 MB / 362.7 MB Notification: Performance of Templates: time 0.04886/0.4675, allocations: 20.86 MB / 431.1 MB, free: 12.65 MB / 394.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.038289824035019]