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.0009931/0.0009931, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001075/0.001075, allocations: 165 kB / 24.56 MB, free: 16 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 0.9385/0.9385, allocations: 177.2 MB / 205 MB, free: 5.297 MB / 186.7 MB " [Timeout remaining time 179] 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.322e-06/1.322e-06, allocations: 0 / 273 MB, free: 1.387 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.221e-05/1.354e-05, allocations: 5.125 kB / 273 MB, free: 1.383 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.00582/0.005834, allocations: 7.44 MB / 280.4 MB, free: 9.91 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004242/0.01008, allocations: 3.29 MB / 283.7 MB, free: 6.609 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005611/0.01064, allocations: 43.81 kB / 283.8 MB, free: 6.566 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001326/0.01196, allocations: 1.101 MB / 284.9 MB, free: 5.461 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002002/0.01397, allocations: 1.392 MB / 286.3 MB, free: 4.062 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007736/0.01474, allocations: 0.6 MB / 286.9 MB, free: 3.461 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002252/0.01699, allocations: 2.972 MB / 289.8 MB, free: 492 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1123/0.1293, allocations: 1.513 MB / 291.3 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002639/0.1319, allocations: 1.315 MB / 292.7 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002459/0.1344, allocations: 1.314 MB / 294 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005123/0.1349, allocations: 150 kB / 294.1 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001725/0.1366, allocations: 0.8257 MB / 294.9 MB, free: 15.15 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001206/0.1378, allocations: 1.128 MB / 296.1 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001313/0.1391, allocations: 0.6709 MB / 296.7 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00373/0.1429, allocations: 2.831 MB / 299.6 MB, free: 14.54 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1429, allocations: 0 / 299.6 MB, free: 14.54 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1429, allocations: 1.469 kB / 299.6 MB, free: 14.54 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001185/0.143, allocations: 0 / 299.6 MB, free: 14.54 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.006094/0.1491, allocations: 3.307 MB / 302.9 MB, free: 12.87 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.1491, allocations: 9.312 kB / 302.9 MB, free: 12.87 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005132/0.1543, allocations: 1.896 MB / 304.8 MB, free: 12.56 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002574/0.1568, allocations: 1.255 MB / 306 MB, free: 11.97 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.688e-05/0.1569, allocations: 125.7 kB / 306.2 MB, free: 11.94 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003676/0.1573, allocations: 160 kB / 306.3 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005775/0.163, allocations: 3.878 MB / 310.2 MB, free: 9.152 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.328e-05/0.1631, allocations: 31.23 kB / 310.2 MB, free: 9.145 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001776/0.1633, allocations: 80.62 kB / 310.3 MB, free: 9.117 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001197/0.1645, allocations: 1.404 MB / 311.7 MB, free: 8.602 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003356/0.1678, allocations: 2.049 MB / 313.8 MB, free: 6.996 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01607/0.1839, allocations: 29.3 MB / 343.1 MB, free: 9.023 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002249/0.1861, allocations: 1.083 MB / 344.2 MB, free: 7.902 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003895/0.1865, allocations: 311.2 kB / 344.5 MB, free: 7.582 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003299/0.1898, allocations: 2.609 MB / 347.1 MB, free: 4.973 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.653e-05/0.1898, allocations: 45.39 kB / 347.1 MB, free: 4.918 MB / 298.7 MB Notification: Performance of pre-optimization done (n=79): time 2.274e-06/0.1899, allocations: 0 / 347.1 MB, free: 4.918 MB / 298.7 MB Notification: Performance of matching and sorting (n=80): time 0.00578/0.1956, allocations: 4.062 MB / 351.2 MB, free: 0.8164 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.722e-05/0.1957, allocations: 139.7 kB / 351.3 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002366/0.1981, allocations: 2.466 MB / 353.8 MB, free: 14.15 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.455e-05/0.1981, allocations: 37.7 kB / 353.8 MB, free: 14.11 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001061/0.1992, allocations: 2.326 MB / 356.1 MB, free: 11.79 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002125/0.1994, allocations: 372.7 kB / 356.5 MB, free: 11.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006898/0.2001, allocations: 0.9075 MB / 357.4 MB, free: 10.52 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.2002, allocations: 0.5316 MB / 357.9 MB, free: 9.977 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005748/0.2008, allocations: 391.9 kB / 358.3 MB, free: 9.59 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002475/0.2033, allocations: 4.438 MB / 362.8 MB, free: 3.312 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003577/0.2068, allocations: 5.32 MB / 368.1 MB, free: 12.2 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.551e-05/0.2069, allocations: 28 kB / 368.1 MB, free: 12.17 MB / 330.7 MB Notification: Performance of matching and sorting (n=533) (initialization): time 0.003721/0.2106, allocations: 3.518 MB / 371.6 MB, free: 8.648 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.104e-05/0.2106, allocations: 48.97 kB / 371.7 MB, free: 8.602 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003403/0.211, allocations: 96 kB / 371.8 MB, free: 8.508 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002893/0.2113, allocations: 179.6 kB / 371.9 MB, free: 8.328 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001462/0.2127, allocations: 0.9513 MB / 372.9 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001085/0.2138, allocations: 1.998 MB / 374.9 MB, free: 5.254 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001336/0.2151, allocations: 284.8 kB / 375.2 MB, free: 4.977 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000216/0.2154, allocations: 262.7 kB / 375.4 MB, free: 4.723 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.0006215/0.216, allocations: 0.5002 MB / 375.9 MB, free: 4.207 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002071/0.2162, allocations: 226.6 kB / 376.2 MB, free: 3.984 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005542/0.2167, allocations: 443.8 kB / 376.6 MB, free: 3.535 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.2168, allocations: 15.98 kB / 376.6 MB, free: 3.52 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.2168, allocations: 0 / 376.6 MB, free: 3.52 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.2168, allocations: 3.938 kB / 376.6 MB, free: 3.516 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003068/0.2198, allocations: 2.424 MB / 379 MB, free: 1.047 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.2198, allocations: 0 / 379 MB, free: 1.047 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002766/0.2201, allocations: 119.8 kB / 379.1 MB, free: 0.9297 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001375/0.2202, allocations: 50.59 kB / 379.2 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.376e-05/0.2203, allocations: 19.98 kB / 379.2 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008276/0.2211, allocations: 1.814 MB / 381 MB, free: 14.92 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2211, allocations: 4.031 kB / 381 MB, free: 14.92 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001087/0.2222, allocations: 1.3 MB / 382.3 MB, free: 13.58 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001714/0.2224, allocations: 198.5 kB / 382.5 MB, free: 13.39 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001204/0.2225, allocations: 12 kB / 382.5 MB, free: 13.38 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004064/0.2229, allocations: 71.88 kB / 382.6 MB, free: 13.3 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.52e-05/0.223, allocations: 39.88 kB / 382.6 MB, free: 13.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.09e-05/0.223, allocations: 29.16 kB / 382.7 MB, free: 13.24 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0009925/0.224, allocations: 1.047 MB / 383.7 MB, free: 12.18 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.224, allocations: 0 / 383.7 MB, free: 12.18 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00178/0.2258, allocations: 0.6365 MB / 384.4 MB, free: 11.54 MB / 346.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.0003697/0.2262, allocations: 220.8 kB / 384.6 MB, free: 11.32 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002372/0.2285, allocations: 1.894 MB / 386.5 MB, free: 9.418 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2285, allocations: 3.938 kB / 386.5 MB, free: 9.414 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003678/0.2289, allocations: 422.1 kB / 386.9 MB, free: 8.988 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008158/0.2297, allocations: 220.6 kB / 387.1 MB, free: 8.777 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004823/0.2345, allocations: 4.335 MB / 391.4 MB, free: 4.379 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005606/0.2351, allocations: 0.733 MB / 392.2 MB, free: 3.621 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001445/0.2365, allocations: 1.132 MB / 393.3 MB, free: 2.488 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004852/0.237, allocations: 152.5 kB / 393.4 MB, free: 2.34 MB / 346.7 MB Notification: Performance of SimCode: time 1.132e-06/0.237, allocations: 0 / 393.4 MB, free: 2.34 MB / 346.7 MB Notification: Performance of Templates: time 0.02431/0.2613, allocations: 15.45 MB / 408.9 MB, free: 3.293 MB / 362.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","",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.316046713385731]