Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001051/0.001051, allocations: 85.95 kB / 22.21 MB, free: 2.289 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.00103/0.00103, allocations: 161.2 kB / 25.6 MB, free: 8.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9024/0.9024, allocations: 158.6 MB / 187.5 MB, free: 2.816 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.283e-06/1.283e-06, allocations: 0 / 251.5 MB, free: 7.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.181e-05/2.309e-05, allocations: 6.25 kB / 251.5 MB, free: 7.23 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.006146/0.006169, allocations: 7.318 MB / 258.8 MB, free: 15.88 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004325/0.01049, allocations: 3.197 MB / 262 MB, free: 12.67 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007503/0.01124, allocations: 43.81 kB / 262 MB, free: 12.62 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001421/0.01267, allocations: 1.078 MB / 263.1 MB, free: 11.54 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002141/0.01481, allocations: 1.431 MB / 264.6 MB, free: 10.11 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009302/0.01574, allocations: 0.6 MB / 265.2 MB, free: 9.504 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002342/0.01808, allocations: 2.928 MB / 268.1 MB, free: 6.574 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001166/0.01925, allocations: 1.529 MB / 269.6 MB, free: 5.016 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001305/0.02055, allocations: 1.337 MB / 271 MB, free: 3.676 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001162/0.02171, allocations: 1.333 MB / 272.3 MB, free: 2.34 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002081/0.02192, allocations: 148 kB / 272.4 MB, free: 2.195 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001083/0.023, allocations: 0.8228 MB / 273.3 MB, free: 1.371 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006641/0.02367, allocations: 1.153 MB / 274.4 MB, free: 220 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005435/0.02421, allocations: 0.6813 MB / 275.1 MB, free: 15.53 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002241/0.02645, allocations: 2.887 MB / 278 MB, free: 12.63 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.02646, allocations: 4 kB / 278 MB, free: 12.62 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.02646, allocations: 0 / 278 MB, free: 12.62 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.269e-05/0.02649, allocations: 0 / 278 MB, free: 12.62 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.003041/0.02953, allocations: 3.182 MB / 281.2 MB, free: 9.391 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.497e-05/0.02958, allocations: 15.98 kB / 281.2 MB, free: 9.375 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002174/0.03175, allocations: 0.9979 MB / 282.2 MB, free: 8.375 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001186/0.03294, allocations: 1.165 MB / 283.3 MB, free: 7.18 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.741e-05/0.033, allocations: 123.4 kB / 283.5 MB, free: 7.059 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001929/0.0332, allocations: 163.8 kB / 283.6 MB, free: 6.898 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003212/0.03641, allocations: 3.527 MB / 287.1 MB, free: 2.715 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.364e-05/0.03645, allocations: 27.77 kB / 287.2 MB, free: 2.688 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001516/0.0366, allocations: 87.89 kB / 287.3 MB, free: 2.602 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001055/0.03766, allocations: 1.234 MB / 288.5 MB, free: 1.363 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002417/0.04007, allocations: 1.606 MB / 290.1 MB, free: 15.76 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01621/0.05628, allocations: 28.37 MB / 318.5 MB, free: 2.395 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002221/0.0585, allocations: 0.9347 MB / 319.4 MB, free: 1.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003312/0.05883, allocations: 263.3 kB / 319.7 MB, free: 1.137 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002988/0.06182, allocations: 2.49 MB / 322.1 MB, free: 14.62 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.234e-05/0.06185, allocations: 53.17 kB / 322.2 MB, free: 14.56 MB / 314.7 MB Notification: Performance of pre-optimization done (n=79): time 2.294e-06/0.06185, allocations: 0 / 322.2 MB, free: 14.56 MB / 314.7 MB Notification: Performance of matching and sorting (n=80): time 0.004848/0.0667, allocations: 2.163 MB / 324.4 MB, free: 12.36 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.266e-05/0.06676, allocations: 136.5 kB / 324.5 MB, free: 12.19 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002009/0.06876, allocations: 2.469 MB / 327 MB, free: 9.684 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.827e-05/0.0688, allocations: 37.7 kB / 327 MB, free: 9.641 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001047/0.06985, allocations: 2.348 MB / 329.4 MB, free: 7.266 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002226/0.07007, allocations: 373.4 kB / 329.7 MB, free: 6.898 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007205/0.07079, allocations: 0.9277 MB / 330.6 MB, free: 5.957 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.07095, allocations: 0.5432 MB / 331.2 MB, free: 5.406 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004949/0.07144, allocations: 347.9 kB / 331.5 MB, free: 5.062 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002206/0.07365, allocations: 4.424 MB / 336 MB, free: 14.75 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003365/0.07701, allocations: 5.222 MB / 341.2 MB, free: 7.645 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-05/0.07705, allocations: 32 kB / 341.2 MB, free: 7.613 MB / 330.7 MB Notification: Performance of matching and sorting (n=533) (initialization): time 0.003624/0.08068, allocations: 3.307 MB / 344.5 MB, free: 4.301 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.01e-05/0.08073, allocations: 44 kB / 344.6 MB, free: 4.258 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.159e-05/0.0808, allocations: 104.8 kB / 344.7 MB, free: 4.156 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000282/0.08108, allocations: 167.6 kB / 344.8 MB, free: 3.988 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001411/0.08249, allocations: 0.9201 MB / 345.7 MB, free: 3.066 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001114/0.08361, allocations: 1.971 MB / 347.7 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00156/0.08517, allocations: 195.8 kB / 347.9 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001945/0.08536, allocations: 228 kB / 348.1 MB, free: 0.5664 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.0006596/0.08602, allocations: 0.5002 MB / 348.6 MB, free: 56 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.123/0.209, allocations: 230.7 kB / 348.9 MB, free: 92.57 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001094/0.2101, allocations: 404.8 kB / 349.2 MB, free: 92.5 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.115e-05/0.2101, allocations: 10.94 kB / 349.3 MB, free: 92.5 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.2101, allocations: 4.438 kB / 349.3 MB, free: 92.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.2102, allocations: 3.609 kB / 349.3 MB, free: 92.5 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00314/0.2133, allocations: 1.789 MB / 351.1 MB, free: 92.19 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.2133, allocations: 1.812 kB / 351.1 MB, free: 92.19 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002547/0.2136, allocations: 89.03 kB / 351.1 MB, free: 92.19 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001644/0.2137, allocations: 41.31 kB / 351.2 MB, free: 92.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.236e-05/0.2137, allocations: 15.03 kB / 351.2 MB, free: 92.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007064/0.2145, allocations: 1.79 MB / 353 MB, free: 90.48 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2145, allocations: 2.656 kB / 353 MB, free: 90.48 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009247/0.2154, allocations: 1.223 MB / 354.2 MB, free: 89.89 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003535/0.2157, allocations: 267.3 kB / 354.5 MB, free: 89.82 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001206/0.2159, allocations: 10.47 kB / 354.5 MB, free: 89.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003833/0.2162, allocations: 18.39 kB / 354.5 MB, free: 89.82 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.853e-05/0.2163, allocations: 49.5 kB / 354.6 MB, free: 89.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.608e-05/0.2163, allocations: 27.14 kB / 354.6 MB, free: 89.82 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007507/0.2171, allocations: 0.9863 MB / 355.6 MB, free: 89.63 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2171, allocations: 0 / 355.6 MB, free: 89.63 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002025/0.2191, allocations: 0.656 MB / 356.2 MB, free: 89.63 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.0003221/0.2194, allocations: 217.8 kB / 356.4 MB, free: 89.55 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001839/0.2213, allocations: 1.811 MB / 358.2 MB, free: 89.34 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.2213, allocations: 0 / 358.2 MB, free: 89.34 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002879/0.2216, allocations: 383.9 kB / 358.6 MB, free: 89.15 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008227/0.2224, allocations: 228.5 kB / 358.8 MB, free: 89.14 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004694/0.2271, allocations: 4.317 MB / 363.2 MB, free: 87.31 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005531/0.2276, allocations: 0.7419 MB / 363.9 MB, free: 87.06 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006501/0.2283, allocations: 319.6 kB / 364.2 MB, free: 86.83 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003712/0.2286, allocations: 379.7 kB / 364.6 MB, free: 86.48 MB / 330.7 MB Notification: Performance of SimCode: time 1.492e-06/0.2287, allocations: 0 / 364.6 MB, free: 86.48 MB / 330.7 MB Notification: Performance of Templates: time 0.02961/0.2583, allocations: 16.92 MB / 381.5 MB, free: 70.88 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.503335223067552]