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.001437/0.001437, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.001599/0.001599, allocations: 161.7 kB / 24.27 MB, free: 172 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.543/1.543, allocations: 177.2 MB / 204.6 MB, free: 5.59 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.423e-06/1.423e-06, allocations: 0 / 272.3 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.556e-05/2.698e-05, allocations: 2.312 kB / 272.3 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01052/0.01054, allocations: 6.761 MB / 279.1 MB, free: 11.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007295/0.01784, allocations: 3.161 MB / 282.3 MB, free: 7.844 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001233/0.01907, allocations: 43.81 kB / 282.3 MB, free: 7.801 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002749/0.02182, allocations: 1.07 MB / 283.4 MB, free: 6.727 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003984/0.0258, allocations: 1.396 MB / 284.8 MB, free: 5.324 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001602/0.02741, allocations: 0.5923 MB / 285.4 MB, free: 4.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004565/0.03197, allocations: 2.971 MB / 288.3 MB, free: 1.754 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003683/0.03565, allocations: 1.514 MB / 289.8 MB, free: 216 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1259/0.1615, allocations: 1.278 MB / 291.1 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002947/0.1645, allocations: 1.33 MB / 292.4 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008984/0.1654, allocations: 152.1 kB / 292.6 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002649/0.168, allocations: 0.8274 MB / 293.4 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001895/0.1699, allocations: 1.119 MB / 294.5 MB, free: 15.78 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002235/0.1721, allocations: 0.6697 MB / 295.2 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006233/0.1784, allocations: 4.102 MB / 299.3 MB, free: 15.22 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.1784, allocations: 5.062 kB / 299.3 MB, free: 15.22 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1784, allocations: 0 / 299.3 MB, free: 15.22 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001462/0.1785, allocations: 1.156 kB / 299.3 MB, free: 15.22 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.00739/0.1859, allocations: 3.003 MB / 302.3 MB, free: 13.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.186, allocations: 10.53 kB / 302.3 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00597/0.1919, allocations: 1.981 MB / 304.3 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002485/0.1944, allocations: 1.331 MB / 305.6 MB, free: 12.71 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.099e-05/0.1945, allocations: 121.5 kB / 305.8 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003166/0.1948, allocations: 161.6 kB / 305.9 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009246/0.2041, allocations: 6.551 MB / 312.5 MB, free: 8.121 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.98e-05/0.2041, allocations: 30.02 kB / 312.5 MB, free: 8.105 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002431/0.2044, allocations: 85.06 kB / 312.6 MB, free: 8.051 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002045/0.2064, allocations: 1.474 MB / 314.1 MB, free: 6.598 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009171/0.2156, allocations: 5.825 MB / 319.9 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03761/0.2532, allocations: 24.33 MB / 344.2 MB, free: 8.164 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006103/0.2593, allocations: 2.081 MB / 346.3 MB, free: 6.059 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001927/0.2612, allocations: 1.135 MB / 347.4 MB, free: 4.914 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00891/0.2701, allocations: 4.366 MB / 351.8 MB, free: 0.543 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.396e-05/0.2702, allocations: 42.55 kB / 351.8 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of pre-optimization done (n=97): time 3.256e-06/0.2702, allocations: 0 / 351.8 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of matching and sorting (n=105): time 0.02753/0.2977, allocations: 10.05 MB / 361.9 MB, free: 6.414 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.2978, allocations: 141 kB / 362 MB, free: 6.246 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0044/0.3022, allocations: 2.615 MB / 364.6 MB, free: 3.594 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002206/0.3024, allocations: 41.7 kB / 364.7 MB, free: 3.547 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001913/0.3044, allocations: 2.128 MB / 366.8 MB, free: 1.43 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006628/0.305, allocations: 441.4 kB / 367.2 MB, free: 1.004 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001281/0.3063, allocations: 0.8248 MB / 368.1 MB, free: 172 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002443/0.3065, allocations: 357.9 kB / 368.4 MB, free: 15.81 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002552/0.3091, allocations: 1.456 MB / 369.9 MB, free: 14.35 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005226/0.3143, allocations: 4.082 MB / 374 MB, free: 8.98 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008732/0.3231, allocations: 5.972 MB / 379.9 MB, free: 1.762 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.137e-05/0.3231, allocations: 24 kB / 380 MB, free: 1.738 MB / 330.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01408/0.3372, allocations: 6.26 MB / 386.2 MB, free: 11.47 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.282e-05/0.3373, allocations: 44 kB / 386.3 MB, free: 11.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001207/0.3374, allocations: 92 kB / 386.3 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002669/0.3401, allocations: 0.8321 MB / 387.2 MB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003359/0.3435, allocations: 0.9513 MB / 388.1 MB, free: 9.551 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007073/0.3505, allocations: 4.518 MB / 392.7 MB, free: 4.934 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003498/0.354, allocations: 295.6 kB / 392.9 MB, free: 4.645 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005593/0.3546, allocations: 259 kB / 393.2 MB, free: 4.395 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.002619/0.3572, allocations: 1.38 MB / 394.6 MB, free: 3.004 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005699/0.3578, allocations: 234.5 kB / 394.8 MB, free: 2.773 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004813/0.3626, allocations: 2.103 MB / 396.9 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.981e-05/0.3626, allocations: 14.48 kB / 396.9 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/0.3626, allocations: 7.312 kB / 396.9 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.062e-05/0.3626, allocations: 3.984 kB / 396.9 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009932/0.3726, allocations: 4.377 MB / 401.3 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.235e-05/0.3726, allocations: 4 kB / 401.3 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008404/0.3734, allocations: 155.8 kB / 401.5 MB, free: 12.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002366/0.3758, allocations: 0.6886 MB / 402.2 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001343/0.3759, allocations: 27.92 kB / 402.2 MB, free: 11.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006295/0.3822, allocations: 4.031 MB / 406.2 MB, free: 7.23 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.3822, allocations: 0 / 406.2 MB, free: 7.23 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007773/0.39, allocations: 4.055 MB / 410.3 MB, free: 3.145 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001239/0.3912, allocations: 214.4 kB / 410.5 MB, free: 2.934 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004083/0.3916, allocations: 18.03 kB / 410.5 MB, free: 2.918 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/0.3929, allocations: 111.9 kB / 410.6 MB, free: 2.809 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000252/0.3932, allocations: 63.16 kB / 410.7 MB, free: 2.746 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/0.3933, allocations: 28 kB / 410.7 MB, free: 2.719 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003158/0.3964, allocations: 1.521 MB / 412.2 MB, free: 1.18 MB / 362.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3964, allocations: 0 / 412.2 MB, free: 1.18 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004685/0.4011, allocations: 0.7402 MB / 413 MB, free: 452 kB / 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.0009827/0.4021, allocations: 218.8 kB / 413.2 MB, free: 228 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00693/0.409, allocations: 3.379 MB / 416.5 MB, free: 12.85 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.4091, allocations: 0 / 416.5 MB, free: 12.85 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001646/0.4107, allocations: 0.9635 MB / 417.5 MB, free: 11.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002266/0.413, allocations: 242.6 kB / 417.7 MB, free: 11.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0127/0.4257, allocations: 5.744 MB / 423.5 MB, free: 5.832 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003453/0.4291, allocations: 1.669 MB / 425.2 MB, free: 4.129 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.00357/0.4327, allocations: 1.291 MB / 426.4 MB, free: 2.836 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008175/0.4335, allocations: 160.5 kB / 426.6 MB, free: 2.68 MB / 378.7 MB Notification: Performance of SimCode: time 1.653e-06/0.4335, allocations: 0 / 426.6 MB, free: 2.68 MB / 378.7 MB Notification: Performance of Templates: time 0.1661/0.5996, allocations: 20.79 MB / 447.4 MB, free: 117.5 MB / 378.7 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 480] 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: 5.812608925974928]