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.0014/0.0014, allocations: 80.62 kB / 22.21 MB, free: 2.293 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.001456/0.001456, allocations: 142.2 kB / 25.59 MB, free: 8.129 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.8787/0.8787, allocations: 173.4 MB / 202.3 MB, free: 8.27 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.302e-06/1.302e-06, allocations: 0 / 269.2 MB, free: 9.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.931e-05/2.061e-05, allocations: 2.312 kB / 269.2 MB, free: 9.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01336/0.01338, allocations: 7.252 MB / 276.5 MB, free: 2.477 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01115/0.02452, allocations: 3.242 MB / 279.7 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006862/0.02521, allocations: 43.81 kB / 279.7 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004641/0.02985, allocations: 1.086 MB / 280.8 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004622/0.03447, allocations: 1.435 MB / 282.3 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001176/0.03565, allocations: 0.5922 MB / 282.9 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003451/0.0391, allocations: 2.913 MB / 285.8 MB, free: 9.148 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001884/0.04099, allocations: 1.537 MB / 287.3 MB, free: 7.582 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001876/0.04286, allocations: 1.333 MB / 288.6 MB, free: 6.246 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001787/0.04465, allocations: 1.329 MB / 290 MB, free: 4.914 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002902/0.04494, allocations: 148 kB / 290.1 MB, free: 4.77 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001414/0.04635, allocations: 0.8228 MB / 290.9 MB, free: 3.945 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009251/0.04728, allocations: 1.153 MB / 292.1 MB, free: 2.789 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007936/0.04807, allocations: 0.6851 MB / 292.8 MB, free: 2.102 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003367/0.05144, allocations: 2.879 MB / 295.7 MB, free: 15.21 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.05144, allocations: 0 / 295.7 MB, free: 15.21 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.05144, allocations: 0 / 295.7 MB, free: 15.21 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.584e-05/0.05149, allocations: 4 kB / 295.7 MB, free: 15.21 MB / 282.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.004299/0.05579, allocations: 3.171 MB / 298.8 MB, free: 11.98 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.05582, allocations: 12.92 kB / 298.8 MB, free: 11.97 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002151/0.05797, allocations: 0.9979 MB / 299.8 MB, free: 10.97 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001103/0.05908, allocations: 1.137 MB / 301 MB, free: 9.801 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.308e-05/0.05914, allocations: 127.4 kB / 301.1 MB, free: 9.676 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001931/0.05933, allocations: 159.8 kB / 301.3 MB, free: 9.52 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003027/0.06236, allocations: 3.527 MB / 304.8 MB, free: 5.336 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.326e-05/0.0624, allocations: 31.7 kB / 304.8 MB, free: 5.305 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001433/0.06255, allocations: 79.89 kB / 304.9 MB, free: 5.227 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001017/0.06356, allocations: 1.242 MB / 306.1 MB, free: 3.988 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002147/0.06571, allocations: 1.617 MB / 307.8 MB, free: 2.371 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01634/0.08205, allocations: 28.37 MB / 336.1 MB, free: 5.016 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00258/0.08463, allocations: 0.9311 MB / 337.1 MB, free: 4.035 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000361/0.08499, allocations: 263.3 kB / 337.3 MB, free: 3.762 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003468/0.08845, allocations: 2.474 MB / 339.8 MB, free: 1.262 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.08848, allocations: 41.39 kB / 339.8 MB, free: 1.211 MB / 314.7 MB Notification: Performance of pre-optimization done (n=79): time 2.064e-06/0.08848, allocations: 4 kB / 339.8 MB, free: 1.207 MB / 314.7 MB Notification: Performance of matching and sorting (n=80): time 0.00582/0.0943, allocations: 2.149 MB / 342 MB, free: 15.02 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/0.09436, allocations: 140.5 kB / 342.1 MB, free: 14.85 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002289/0.09664, allocations: 2.449 MB / 344.6 MB, free: 12.36 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.244e-05/0.09669, allocations: 37.7 kB / 344.6 MB, free: 12.32 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001533/0.09822, allocations: 2.344 MB / 346.9 MB, free: 9.945 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002728/0.09849, allocations: 373.4 kB / 347.3 MB, free: 9.578 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009285/0.09942, allocations: 0.92 MB / 348.2 MB, free: 8.645 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.09959, allocations: 0.5432 MB / 348.8 MB, free: 8.094 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006486/0.1002, allocations: 347.9 kB / 349.1 MB, free: 7.75 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003002/0.1032, allocations: 4.424 MB / 353.5 MB, free: 1.438 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.119/0.2222, allocations: 5.234 MB / 358.8 MB, free: 74.56 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.664e-05/0.2223, allocations: 30.97 kB / 358.8 MB, free: 74.56 MB / 330.7 MB Notification: Performance of matching and sorting (n=533) (initialization): time 0.003795/0.2261, allocations: 3.305 MB / 362.1 MB, free: 73.86 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.77e-05/0.2261, allocations: 48.7 kB / 362.2 MB, free: 73.86 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.377e-05/0.2262, allocations: 100.9 kB / 362.3 MB, free: 73.86 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000267/0.2265, allocations: 170 kB / 362.4 MB, free: 73.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001371/0.2278, allocations: 0.9184 MB / 363.3 MB, free: 73.75 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008193/0.2287, allocations: 1.964 MB / 365.3 MB, free: 72.01 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001421/0.2301, allocations: 188.3 kB / 365.5 MB, free: 72.01 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001788/0.2303, allocations: 233.1 kB / 365.7 MB, free: 72.01 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 (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.0005778/0.2308, allocations: 0.5007 MB / 366.2 MB, free: 71.76 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001985/0.231, allocations: 236.2 kB / 366.4 MB, free: 71.75 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004785/0.2315, allocations: 411 kB / 366.8 MB, free: 71.68 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.177e-05/0.2315, allocations: 15.34 kB / 366.9 MB, free: 71.68 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.2315, allocations: 0.875 kB / 366.9 MB, free: 71.68 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.2315, allocations: 7.359 kB / 366.9 MB, free: 71.68 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002171/0.2337, allocations: 1.771 MB / 368.6 MB, free: 71.35 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.2337, allocations: 4.031 kB / 368.6 MB, free: 71.35 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002336/0.234, allocations: 85.64 kB / 368.7 MB, free: 71.34 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001401/0.2341, allocations: 41.44 kB / 368.8 MB, free: 71.33 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.232e-05/0.2341, allocations: 23.89 kB / 368.8 MB, free: 71.33 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006419/0.2348, allocations: 1.794 MB / 370.6 MB, free: 69.62 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.2348, allocations: 3.938 kB / 370.6 MB, free: 69.62 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008222/0.2356, allocations: 1.224 MB / 371.8 MB, free: 68.91 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001572/0.2357, allocations: 191.5 kB / 372 MB, free: 68.79 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001269/0.2359, allocations: 14.47 kB / 372 MB, free: 68.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003693/0.2362, allocations: 17.55 kB / 372 MB, free: 68.79 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.402e-05/0.2363, allocations: 41.12 kB / 372.1 MB, free: 68.79 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.398e-05/0.2363, allocations: 24.67 kB / 372.1 MB, free: 68.79 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007416/0.2371, allocations: 0.9773 MB / 373.1 MB, free: 68.6 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2371, allocations: 3.906 kB / 373.1 MB, free: 68.6 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002229/0.2393, allocations: 0.6527 MB / 373.7 MB, free: 68.6 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.0003413/0.2397, allocations: 214.6 kB / 373.9 MB, free: 68.5 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001896/0.2415, allocations: 1.805 MB / 375.7 MB, free: 67.46 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2416, allocations: 0.5 kB / 375.7 MB, free: 67.46 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000336/0.2419, allocations: 384.5 kB / 376.1 MB, free: 67.12 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001034/0.2429, allocations: 229.5 kB / 376.3 MB, free: 67.02 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004714/0.2476, allocations: 4.308 MB / 380.7 MB, free: 63.34 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000617/0.2483, allocations: 0.735 MB / 381.4 MB, free: 62.93 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.00083/0.2491, allocations: 320.5 kB / 381.7 MB, free: 62.7 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004385/0.2495, allocations: 379.7 kB / 382.1 MB, free: 62.36 MB / 330.7 MB Notification: Performance of SimCode: time 7.02e-07/0.2495, allocations: 0 / 382.1 MB, free: 62.36 MB / 330.7 MB Notification: Performance of Templates: time 0.02784/0.2774, allocations: 17.06 MB / 399.1 MB, free: 46.51 MB / 330.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.422860505990684]