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.001305/0.001305, allocations: 79.91 kB / 21.18 MB, free: 3.395 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.001328/0.001328, allocations: 141.5 kB / 24.54 MB, free: 40 kB / 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.9455/0.9455, allocations: 173.4 MB / 201.1 MB, free: 9.355 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 1.453e-06/1.453e-06, allocations: 0 / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.979e-05/2.124e-05, allocations: 2.312 kB / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.008908/0.008929, allocations: 7.467 MB / 275.5 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006078/0.01501, allocations: 3.282 MB / 278.8 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007779/0.01579, allocations: 47.81 kB / 278.8 MB, free: 11.6 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001881/0.01767, allocations: 1.094 MB / 279.9 MB, free: 10.5 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002175/0.01984, allocations: 1.431 MB / 281.3 MB, free: 9.062 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007544/0.0206, allocations: 0.6 MB / 281.9 MB, free: 8.461 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002752/0.02335, allocations: 2.913 MB / 284.8 MB, free: 5.543 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001559/0.02491, allocations: 1.529 MB / 286.4 MB, free: 3.984 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001149/0.02606, allocations: 1.325 MB / 287.7 MB, free: 2.656 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009989/0.02705, allocations: 1.317 MB / 289 MB, free: 1.336 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001592/0.02721, allocations: 148 kB / 289.2 MB, free: 1.191 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001059/0.02827, allocations: 0.8345 MB / 290 MB, free: 364 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1245/0.1528, allocations: 1.136 MB / 291.1 MB, free: 18.66 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001656/0.1544, allocations: 0.6852 MB / 291.8 MB, free: 18.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004239/0.1587, allocations: 2.881 MB / 294.7 MB, free: 18.45 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1587, allocations: 0 / 294.7 MB, free: 18.45 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1587, allocations: 0 / 294.7 MB, free: 18.45 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001471/0.1588, allocations: 1.156 kB / 294.7 MB, free: 18.45 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.00604/0.1649, allocations: 3.316 MB / 298 MB, free: 17.04 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.1649, allocations: 8.938 kB / 298 MB, free: 17.04 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00375/0.1687, allocations: 1.906 MB / 299.9 MB, free: 16.84 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001588/0.1702, allocations: 1.255 MB / 301.2 MB, free: 16.49 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.785e-05/0.1703, allocations: 122.9 kB / 301.3 MB, free: 16.48 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002383/0.1705, allocations: 156.3 kB / 301.5 MB, free: 16.48 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004724/0.1753, allocations: 3.884 MB / 305.3 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.317e-05/0.1753, allocations: 26.11 kB / 305.4 MB, free: 14.53 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001794/0.1755, allocations: 84.88 kB / 305.4 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001197/0.1767, allocations: 1.413 MB / 306.9 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003649/0.1803, allocations: 2.036 MB / 308.9 MB, free: 14.04 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01743/0.1978, allocations: 29.32 MB / 338.2 MB, free: 2.207 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0025/0.2003, allocations: 1.079 MB / 339.3 MB, free: 1.09 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003962/0.2007, allocations: 302.8 kB / 339.6 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003228/0.2039, allocations: 2.619 MB / 342.2 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.099e-05/0.2039, allocations: 48.02 kB / 342.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=79): time 2.625e-06/0.2039, allocations: 0 / 342.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=80): time 0.006044/0.21, allocations: 4.074 MB / 346.3 MB, free: 9.992 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.228e-05/0.21, allocations: 132.5 kB / 346.5 MB, free: 9.832 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002306/0.2123, allocations: 2.459 MB / 348.9 MB, free: 7.336 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.447e-05/0.2124, allocations: 41.38 kB / 349 MB, free: 7.293 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001503/0.2139, allocations: 2.325 MB / 351.3 MB, free: 4.973 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000421/0.2143, allocations: 372 kB / 351.6 MB, free: 4.613 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009056/0.2152, allocations: 0.8995 MB / 352.5 MB, free: 3.703 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002425/0.2155, allocations: 0.5425 MB / 353.1 MB, free: 3.156 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006538/0.2161, allocations: 387.9 kB / 353.5 MB, free: 2.773 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002346/0.2185, allocations: 4.437 MB / 357.9 MB, free: 12.49 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004112/0.2226, allocations: 5.327 MB / 363.2 MB, free: 5.426 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.756e-05/0.2226, allocations: 28 kB / 363.3 MB, free: 5.398 MB / 314.7 MB Notification: Performance of matching and sorting (n=533) (initialization): time 0.004786/0.2274, allocations: 3.514 MB / 366.8 MB, free: 1.879 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.194e-05/0.2274, allocations: 50.69 kB / 366.8 MB, free: 1.832 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.982e-05/0.2275, allocations: 100 kB / 366.9 MB, free: 1.734 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003963/0.2279, allocations: 175.5 kB / 367.1 MB, free: 1.559 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001611/0.2295, allocations: 0.9513 MB / 368 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001591/0.2311, allocations: 2.006 MB / 370 MB, free: 14.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001754/0.2329, allocations: 278.1 kB / 370.3 MB, free: 14.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002464/0.2331, allocations: 264 kB / 370.6 MB, free: 13.95 MB / 330.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 (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 (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.001019/0.2341, allocations: 0.5004 MB / 371.1 MB, free: 13.44 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002517/0.2344, allocations: 226.6 kB / 371.3 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006233/0.235, allocations: 443.1 kB / 371.7 MB, free: 12.77 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.324e-05/0.235, allocations: 10.11 kB / 371.7 MB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.235, allocations: 3.938 kB / 371.7 MB, free: 12.76 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.826e-06/0.235, allocations: 11.92 kB / 371.8 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003369/0.2384, allocations: 2.414 MB / 374.2 MB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.8e-06/0.2384, allocations: 3.984 kB / 374.2 MB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002999/0.2387, allocations: 123.8 kB / 374.3 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001554/0.2389, allocations: 39.64 kB / 374.3 MB, free: 10.12 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.84e-05/0.2389, allocations: 19.98 kB / 374.4 MB, free: 10.1 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001204/0.2401, allocations: 1.818 MB / 376.2 MB, free: 8.152 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.2401, allocations: 0 / 376.2 MB, free: 8.152 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.2413, allocations: 1.3 MB / 377.5 MB, free: 6.824 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002296/0.2415, allocations: 194.5 kB / 377.7 MB, free: 6.633 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000138/0.2416, allocations: 15.98 kB / 377.7 MB, free: 6.617 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004403/0.2421, allocations: 71.88 kB / 377.7 MB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.022e-05/0.2421, allocations: 43.94 kB / 377.8 MB, free: 6.504 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.065e-05/0.2422, allocations: 34.58 kB / 377.8 MB, free: 6.473 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001138/0.2433, allocations: 1.051 MB / 378.9 MB, free: 5.406 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2433, allocations: 0 / 378.9 MB, free: 5.406 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002407/0.2457, allocations: 0.6521 MB / 379.5 MB, free: 4.754 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.0004951/0.2462, allocations: 215.6 kB / 379.7 MB, free: 4.539 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002628/0.2489, allocations: 1.903 MB / 381.6 MB, free: 2.629 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.2489, allocations: 0 / 381.6 MB, free: 2.629 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000402/0.2493, allocations: 409.9 kB / 382 MB, free: 2.207 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008543/0.2501, allocations: 228.4 kB / 382.3 MB, free: 1.988 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006071/0.2562, allocations: 4.349 MB / 386.6 MB, free: 13.57 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006425/0.2568, allocations: 0.7371 MB / 387.4 MB, free: 12.8 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001677/0.2585, allocations: 1.126 MB / 388.5 MB, free: 11.68 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000277/0.2588, allocations: 144.5 kB / 388.6 MB, free: 11.54 MB / 346.7 MB Notification: Performance of SimCode: time 1.883e-06/0.2588, allocations: 0 / 388.6 MB, free: 11.54 MB / 346.7 MB Notification: Performance of Templates: time 0.02773/0.2865, allocations: 15.54 MB / 404.2 MB, free: 12.38 MB / 362.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.375760276336223]