Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.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.001053/0.001053, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0009535/0.0009535, allocations: 145.1 kB / 24.54 MB, free: 32 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.9398/0.9398, allocations: 173.3 MB / 201.1 MB, free: 9.34 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.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.007e-05/3.218e-05, allocations: 10.25 kB / 268 MB, free: 6.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.02474/0.02478, allocations: 9.987 MB / 278 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0119/0.03667, allocations: 3.72 MB / 281.7 MB, free: 8.648 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001351/0.03803, allocations: 67.69 kB / 281.8 MB, free: 8.582 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002497/0.04052, allocations: 2.09 MB / 283.9 MB, free: 6.484 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00289/0.04341, allocations: 1.769 MB / 285.6 MB, free: 4.707 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009243/0.04434, allocations: 0.6742 MB / 286.3 MB, free: 4.031 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002694/0.04703, allocations: 3.684 MB / 290 MB, free: 348 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1268/0.1738, allocations: 2.457 MB / 292.5 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003543/0.1774, allocations: 1.913 MB / 294.4 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002985/0.1804, allocations: 1.861 MB / 296.2 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008095/0.1812, allocations: 259.2 kB / 296.5 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001706/0.1829, allocations: 0.9807 MB / 297.5 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001286/0.1842, allocations: 1.705 MB / 299.2 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001807/0.186, allocations: 1.045 MB / 300.2 MB, free: 14.42 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004586/0.1906, allocations: 3.859 MB / 304.1 MB, free: 13.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.1906, allocations: 0 / 304.1 MB, free: 13.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1906, allocations: 0 / 304.1 MB, free: 13.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001489/0.1907, allocations: 3.375 kB / 304.1 MB, free: 13.66 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: 1275 * Number of variables: 1275 Notification: Performance of Generate backend data structure: time 0.005061/0.1958, allocations: 4.397 MB / 308.5 MB, free: 11.12 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.214e-05/0.1958, allocations: 10.44 kB / 308.5 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003634/0.1995, allocations: 2.186 MB / 310.7 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001994/0.2015, allocations: 1.729 MB / 312.4 MB, free: 9.508 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.703e-05/0.2015, allocations: 193.4 kB / 312.6 MB, free: 9.449 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002664/0.2018, allocations: 253.9 kB / 312.8 MB, free: 9.391 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005205/0.207, allocations: 5.246 MB / 318.1 MB, free: 4.539 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.056e-05/0.2071, allocations: 39.92 kB / 318.1 MB, free: 4.52 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002231/0.2073, allocations: 129 kB / 318.2 MB, free: 4.426 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001406/0.2087, allocations: 1.695 MB / 319.9 MB, free: 2.762 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004695/0.2134, allocations: 2.757 MB / 322.7 MB, free: 192 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02677/0.2402, allocations: 38.61 MB / 361.3 MB, free: 8.781 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003435/0.2436, allocations: 1.609 MB / 362.9 MB, free: 7.121 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006316/0.2442, allocations: 499.6 kB / 363.4 MB, free: 6.617 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003695/0.2479, allocations: 3.165 MB / 366.6 MB, free: 3.441 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.851e-05/0.248, allocations: 56.67 kB / 366.6 MB, free: 3.383 MB / 314.7 MB Notification: Performance of pre-optimization done (n=121): time 3.727e-06/0.248, allocations: 0 / 366.6 MB, free: 3.383 MB / 314.7 MB Notification: Performance of matching and sorting (n=129): time 0.01539/0.2634, allocations: 8.479 MB / 375.1 MB, free: 10.87 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.113e-05/0.2634, allocations: 140 kB / 375.2 MB, free: 10.7 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00297/0.2664, allocations: 3.18 MB / 378.4 MB, free: 7.492 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.591e-05/0.2665, allocations: 41.7 kB / 378.5 MB, free: 7.445 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001436/0.2679, allocations: 3.012 MB / 381.5 MB, free: 4.449 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004203/0.2683, allocations: 0.5597 MB / 382 MB, free: 3.895 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009917/0.2693, allocations: 1.163 MB / 383.2 MB, free: 2.723 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.2694, allocations: 480.8 kB / 383.7 MB, free: 2.25 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008333/0.2703, allocations: 0.5491 MB / 384.2 MB, free: 1.695 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002969/0.2732, allocations: 5.634 MB / 389.9 MB, free: 9.762 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004792/0.278, allocations: 6.83 MB / 396.7 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.237e-05/0.2781, allocations: 36 kB / 396.7 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.006355/0.2844, allocations: 4.657 MB / 401.4 MB, free: 12.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.689e-05/0.2845, allocations: 56 kB / 401.4 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.23e-05/0.2846, allocations: 124 kB / 401.6 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004964/0.2851, allocations: 340 kB / 401.9 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002118/0.2872, allocations: 1.248 MB / 403.1 MB, free: 10.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001611/0.2888, allocations: 2.428 MB / 405.6 MB, free: 7.711 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002251/0.291, allocations: 321.9 kB / 405.9 MB, free: 7.398 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002955/0.2913, allocations: 335.9 kB / 406.2 MB, free: 7.07 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 555 * Number of states: 0 () * Number of discrete variables: 33 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (668): * Single equations (assignments): 664 * 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,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001164/0.2925, allocations: 0.6032 MB / 406.8 MB, free: 6.453 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003684/0.2929, allocations: 324.6 kB / 407.1 MB, free: 6.137 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002048/0.2949, allocations: 1.315 MB / 408.4 MB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.816e-05/0.2949, allocations: 20 kB / 408.5 MB, free: 4.785 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.2949, allocations: 3.938 kB / 408.5 MB, free: 4.781 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.295, allocations: 11.97 kB / 408.5 MB, free: 4.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006354/0.3013, allocations: 4.202 MB / 412.7 MB, free: 0.5234 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.3013, allocations: 0 / 412.7 MB, free: 0.5234 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004337/0.3018, allocations: 179.8 kB / 412.8 MB, free: 356 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001054/0.3028, allocations: 439.5 kB / 413.3 MB, free: 15.91 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.047e-05/0.3029, allocations: 20 kB / 413.3 MB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002821/0.3057, allocations: 2.91 MB / 416.2 MB, free: 12.87 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.3057, allocations: 4 kB / 416.2 MB, free: 12.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002827/0.3085, allocations: 2.281 MB / 418.5 MB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004627/0.309, allocations: 274 kB / 418.8 MB, free: 10.28 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001611/0.3091, allocations: 20.06 kB / 418.8 MB, free: 10.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000571/0.3097, allocations: 95.86 kB / 418.9 MB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.3098, allocations: 68.52 kB / 418.9 MB, free: 10.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.683e-05/0.3099, allocations: 36 kB / 419 MB, free: 10.06 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001594/0.3115, allocations: 1.358 MB / 420.3 MB, free: 8.707 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.3115, allocations: 0 / 420.3 MB, free: 8.707 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003131/0.3146, allocations: 0.9008 MB / 421.2 MB, free: 7.809 MB / 378.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 (96): * Single equations (assignments): 92 * 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,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003889/0.315, allocations: 173.6 kB / 421.4 MB, free: 7.633 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003869/0.3189, allocations: 2.567 MB / 424 MB, free: 5.059 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3189, allocations: 0 / 424 MB, free: 5.059 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007035/0.3196, allocations: 0.6114 MB / 424.6 MB, free: 4.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001327/0.3209, allocations: 349.2 kB / 424.9 MB, free: 4.098 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.121/0.4419, allocations: 5.948 MB / 430.9 MB, free: 111.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001279/0.4432, allocations: 1.008 MB / 431.9 MB, free: 111.6 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003235/0.4464, allocations: 1.396 MB / 433.3 MB, free: 111.6 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005477/0.447, allocations: 198.5 kB / 433.5 MB, free: 111.6 MB / 378.7 MB Notification: Performance of SimCode: time 1.664e-06/0.447, allocations: 0 / 433.5 MB, free: 111.6 MB / 378.7 MB Notification: Performance of Templates: time 0.03988/0.4868, allocations: 25.91 MB / 459.4 MB, free: 99.19 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/InitSpringConstant/InitSpringConstant.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.9089726097881794]