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.001361/0.001361, allocations: 84.66 kB / 20.95 MB, free: 3.453 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.001517/0.001517, allocations: 153.1 kB / 24.26 MB, free: 156 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 1.464/1.464, allocations: 173.4 MB / 200.8 MB, free: 9.309 MB / 186.7 MB " [Timeout remaining time 178] 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.723e-06/1.723e-06, allocations: 0 / 267.3 MB, free: 6.703 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.287e-05/3.459e-05, allocations: 2.312 kB / 267.3 MB, free: 6.699 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01023/0.01026, allocations: 6.782 MB / 274.1 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007521/0.01778, allocations: 3.153 MB / 277.3 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009593/0.01874, allocations: 43.81 kB / 277.3 MB, free: 12.67 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002512/0.02126, allocations: 1.07 MB / 278.4 MB, free: 11.6 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003522/0.02478, allocations: 1.427 MB / 279.8 MB, free: 10.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001404/0.02618, allocations: 0.5961 MB / 280.4 MB, free: 9.566 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004109/0.03029, allocations: 2.916 MB / 283.3 MB, free: 6.645 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002069/0.03236, allocations: 1.522 MB / 284.9 MB, free: 5.094 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001964/0.03432, allocations: 1.294 MB / 286.1 MB, free: 3.797 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002028/0.03635, allocations: 1.333 MB / 287.5 MB, free: 2.461 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003192/0.03667, allocations: 148 kB / 287.6 MB, free: 2.316 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001841/0.03851, allocations: 0.8345 MB / 288.5 MB, free: 1.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001233/0.03974, allocations: 1.133 MB / 289.6 MB, free: 352 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1255/0.1653, allocations: 0.6836 MB / 290.3 MB, free: 18.45 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00536/0.1706, allocations: 4.147 MB / 294.4 MB, free: 18.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1706, allocations: 0 / 294.4 MB, free: 18.23 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1706, allocations: 0 / 294.4 MB, free: 18.23 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.407e-05/0.1707, allocations: 1.125 kB / 294.4 MB, free: 18.23 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.005856/0.1766, allocations: 3.032 MB / 297.5 MB, free: 16.93 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.1766, allocations: 9.906 kB / 297.5 MB, free: 16.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005585/0.1822, allocations: 1.98 MB / 299.4 MB, free: 16.74 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002358/0.1845, allocations: 1.329 MB / 300.8 MB, free: 16.39 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.973e-05/0.1846, allocations: 121 kB / 300.9 MB, free: 16.39 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003237/0.185, allocations: 160.4 kB / 301 MB, free: 16.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008331/0.1933, allocations: 6.55 MB / 307.6 MB, free: 13.94 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.05e-05/0.1934, allocations: 32.08 kB / 307.6 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002398/0.1936, allocations: 86.39 kB / 307.7 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00202/0.1956, allocations: 1.466 MB / 309.2 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008387/0.204, allocations: 5.836 MB / 315 MB, free: 9 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02859/0.2326, allocations: 24.33 MB / 339.3 MB, free: 284 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005856/0.2385, allocations: 2.089 MB / 341.4 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001736/0.2402, allocations: 1.133 MB / 342.6 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008408/0.2486, allocations: 4.361 MB / 346.9 MB, free: 8.664 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.091e-05/0.2486, allocations: 38.56 kB / 347 MB, free: 8.617 MB / 298.7 MB Notification: Performance of pre-optimization done (n=97): time 2.675e-06/0.2486, allocations: 4 kB / 347 MB, free: 8.613 MB / 298.7 MB Notification: Performance of matching and sorting (n=105): time 0.0274/0.276, allocations: 10.05 MB / 357 MB, free: 14.55 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/0.2762, allocations: 137 kB / 357.2 MB, free: 14.38 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00437/0.2805, allocations: 2.627 MB / 359.8 MB, free: 11.72 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001714/0.2807, allocations: 45.55 kB / 359.8 MB, free: 11.68 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001921/0.2826, allocations: 2.129 MB / 362 MB, free: 9.562 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006005/0.2832, allocations: 445 kB / 362.4 MB, free: 9.137 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001416/0.2846, allocations: 0.8284 MB / 363.2 MB, free: 8.297 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002609/0.2849, allocations: 357.9 kB / 363.6 MB, free: 7.941 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002499/0.2874, allocations: 1.456 MB / 365 MB, free: 6.477 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005051/0.2924, allocations: 4.073 MB / 369.1 MB, free: 1.117 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00859/0.301, allocations: 5.969 MB / 375.1 MB, free: 9.973 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-05/0.3011, allocations: 24 kB / 375.1 MB, free: 9.949 MB / 330.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01269/0.3138, allocations: 6.259 MB / 381.3 MB, free: 3.68 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.819e-05/0.3139, allocations: 44 kB / 381.4 MB, free: 3.637 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001127/0.314, allocations: 97.03 kB / 381.5 MB, free: 3.543 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00257/0.3166, allocations: 0.8263 MB / 382.3 MB, free: 2.715 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003074/0.3196, allocations: 0.9591 MB / 383.3 MB, free: 1.754 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008995/0.3286, allocations: 4.524 MB / 387.8 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006007/0.3346, allocations: 299.5 kB / 388.1 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008288/0.3355, allocations: 256 kB / 388.3 MB, free: 12.59 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.003883/0.3393, allocations: 1.382 MB / 389.7 MB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008687/0.3402, allocations: 230.6 kB / 389.9 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007474/0.3477, allocations: 2.103 MB / 392.1 MB, free: 8.863 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.981e-05/0.3477, allocations: 15.98 kB / 392.1 MB, free: 8.848 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/0.3477, allocations: 4 kB / 392.1 MB, free: 8.844 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.579e-05/0.3477, allocations: 3.984 kB / 392.1 MB, free: 8.84 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01558/0.3633, allocations: 4.383 MB / 396.5 MB, free: 4.426 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-05/0.3634, allocations: 0 / 396.5 MB, free: 4.426 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001333/0.3647, allocations: 155.8 kB / 396.6 MB, free: 4.273 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00377/0.3685, allocations: 0.6941 MB / 397.3 MB, free: 3.578 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002246/0.3687, allocations: 27.92 kB / 397.3 MB, free: 3.551 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009993/0.3787, allocations: 4.026 MB / 401.4 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/0.3787, allocations: 4 kB / 401.4 MB, free: 15.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01164/0.3903, allocations: 4.061 MB / 405.4 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001149/0.3915, allocations: 210.4 kB / 405.6 MB, free: 11.12 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004126/0.3919, allocations: 18 kB / 405.6 MB, free: 11.1 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001695/0.3936, allocations: 107.8 kB / 405.8 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003386/0.3939, allocations: 61.81 kB / 405.8 MB, free: 10.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001532/0.3941, allocations: 32 kB / 405.8 MB, free: 10.91 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004352/0.3984, allocations: 1.526 MB / 407.4 MB, free: 9.363 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3984, allocations: 0 / 407.4 MB, free: 9.363 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0056/0.404, allocations: 0.7561 MB / 408.1 MB, free: 8.609 MB / 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.0006999/0.4047, allocations: 225.9 kB / 408.3 MB, free: 8.383 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006492/0.4112, allocations: 3.374 MB / 411.7 MB, free: 5.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.287e-06/0.4112, allocations: 4 kB / 411.7 MB, free: 5.016 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001606/0.4128, allocations: 0.9554 MB / 412.7 MB, free: 4.051 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001921/0.4147, allocations: 241.8 kB / 412.9 MB, free: 3.812 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0113/0.426, allocations: 5.757 MB / 418.7 MB, free: 13.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00245/0.4285, allocations: 1.664 MB / 420.3 MB, free: 12.3 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003183/0.4317, allocations: 1.299 MB / 421.6 MB, free: 11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006558/0.4323, allocations: 152.5 kB / 421.8 MB, free: 10.85 MB / 378.7 MB Notification: Performance of SimCode: time 1.864e-06/0.4323, allocations: 4 kB / 421.8 MB, free: 10.84 MB / 378.7 MB Notification: Performance of Templates: time 0.1869/0.6192, allocations: 20.88 MB / 442.7 MB, free: 126.7 MB / 378.7 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.847900486900471]