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.001334/0.001334, allocations: 72.08 kB / 21.69 MB, free: 2.859 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.0009708/0.0009708, allocations: 142.1 kB / 24.97 MB, free: 8.316 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.9558/0.9558, allocations: 173.3 MB / 201.5 MB, free: 9.32 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.064e-06/2.064e-06, allocations: 0 / 268.1 MB, free: 6.699 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.348e-05/3.555e-05, allocations: 6.25 kB / 268.1 MB, free: 6.691 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01256/0.01259, allocations: 9.952 MB / 278 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00819/0.02078, allocations: 3.712 MB / 281.8 MB, free: 8.961 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002008/0.02279, allocations: 67.69 kB / 281.8 MB, free: 8.895 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003964/0.02675, allocations: 2.079 MB / 283.9 MB, free: 6.809 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005487/0.03224, allocations: 1.777 MB / 285.7 MB, free: 5.023 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001808/0.03405, allocations: 0.6664 MB / 286.3 MB, free: 4.355 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00589/0.03994, allocations: 3.687 MB / 290 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1277/0.1677, allocations: 2.455 MB / 292.5 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002978/0.1706, allocations: 1.912 MB / 294.4 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003885/0.1745, allocations: 1.862 MB / 296.3 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009106/0.1754, allocations: 262.7 kB / 296.5 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001559/0.177, allocations: 0.9814 MB / 297.5 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001286/0.1783, allocations: 1.698 MB / 299.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001507/0.1798, allocations: 1.049 MB / 300.2 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003727/0.1835, allocations: 3.857 MB / 304.1 MB, free: 13.58 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1835, allocations: 3.219 kB / 304.1 MB, free: 13.58 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1835, allocations: 0 / 304.1 MB, free: 13.58 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.393e-05/0.1836, allocations: 2.625 kB / 304.1 MB, free: 13.58 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.003896/0.1875, allocations: 4.397 MB / 308.5 MB, free: 11.04 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.689e-05/0.1875, allocations: 11.25 kB / 308.5 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00346/0.191, allocations: 2.187 MB / 310.7 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001529/0.1925, allocations: 1.726 MB / 312.4 MB, free: 9.547 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.883e-05/0.1926, allocations: 189.4 kB / 312.6 MB, free: 9.488 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000254/0.1928, allocations: 252.8 kB / 312.9 MB, free: 9.43 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005288/0.1981, allocations: 5.248 MB / 318.1 MB, free: 4.598 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.559e-05/0.1982, allocations: 39.73 kB / 318.1 MB, free: 4.578 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002772/0.1985, allocations: 128.5 kB / 318.3 MB, free: 4.484 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001867/0.2004, allocations: 1.695 MB / 320 MB, free: 2.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005679/0.206, allocations: 2.759 MB / 322.7 MB, free: 252 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02822/0.2343, allocations: 38.61 MB / 361.3 MB, free: 8.836 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004897/0.2392, allocations: 1.612 MB / 362.9 MB, free: 7.168 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000807/0.24, allocations: 0.4949 MB / 363.4 MB, free: 6.664 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00402/0.244, allocations: 3.167 MB / 366.6 MB, free: 3.488 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.831e-05/0.244, allocations: 49.52 kB / 366.7 MB, free: 3.434 MB / 314.7 MB Notification: Performance of pre-optimization done (n=121): time 3.617e-06/0.244, allocations: 0 / 366.7 MB, free: 3.434 MB / 314.7 MB Notification: Performance of matching and sorting (n=129): time 0.0187/0.2627, allocations: 8.483 MB / 375.1 MB, free: 10.92 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.81e-05/0.2628, allocations: 144.5 kB / 375.3 MB, free: 10.75 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003025/0.2658, allocations: 3.18 MB / 378.5 MB, free: 7.539 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.969e-05/0.2659, allocations: 41.7 kB / 378.5 MB, free: 7.492 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001356/0.2672, allocations: 3.017 MB / 381.5 MB, free: 4.488 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003803/0.2676, allocations: 0.5572 MB / 382.1 MB, free: 3.938 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009506/0.2686, allocations: 1.163 MB / 383.2 MB, free: 2.766 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.2687, allocations: 480.8 kB / 383.7 MB, free: 2.293 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001056/0.2697, allocations: 0.5526 MB / 384.3 MB, free: 1.738 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003246/0.273, allocations: 5.622 MB / 389.9 MB, free: 9.812 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004976/0.2779, allocations: 6.832 MB / 396.7 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.752e-05/0.278, allocations: 36 kB / 396.8 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of matching and sorting (n=696) (initialization): time 0.006322/0.2843, allocations: 4.653 MB / 401.4 MB, free: 12.07 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.267e-05/0.2844, allocations: 56 kB / 401.5 MB, free: 12.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.669e-05/0.2845, allocations: 124.9 kB / 401.6 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004967/0.285, allocations: 335.5 kB / 401.9 MB, free: 11.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002101/0.2871, allocations: 1.251 MB / 403.2 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001527/0.2886, allocations: 2.429 MB / 405.6 MB, free: 7.758 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002046/0.2906, allocations: 315.6 kB / 405.9 MB, free: 7.449 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00027/0.2909, allocations: 340 kB / 406.2 MB, free: 7.117 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.0009919/0.2919, allocations: 0.6069 MB / 406.8 MB, free: 6.496 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003275/0.2922, allocations: 321.2 kB / 407.1 MB, free: 6.184 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00206/0.2943, allocations: 1.316 MB / 408.5 MB, free: 4.852 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.718e-05/0.2943, allocations: 19.98 kB / 408.5 MB, free: 4.832 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.478e-06/0.2943, allocations: 7.938 kB / 408.5 MB, free: 4.824 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.2943, allocations: 3.984 kB / 408.5 MB, free: 4.82 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006124/0.3004, allocations: 4.205 MB / 412.7 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/0.3005, allocations: 0 / 412.7 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004351/0.3009, allocations: 175.8 kB / 412.9 MB, free: 412 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001077/0.302, allocations: 438.9 kB / 413.3 MB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.738e-05/0.302, allocations: 20 kB / 413.3 MB, free: 15.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002807/0.3048, allocations: 2.922 MB / 416.2 MB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3048, allocations: 0 / 416.2 MB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002822/0.3077, allocations: 2.28 MB / 418.5 MB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004189/0.3081, allocations: 278 kB / 418.8 MB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001967/0.3083, allocations: 16 kB / 418.8 MB, free: 10.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006081/0.3089, allocations: 91.86 kB / 418.9 MB, free: 10.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001459/0.309, allocations: 72.52 kB / 419 MB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.677e-05/0.3091, allocations: 32 kB / 419 MB, free: 10.11 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001581/0.3107, allocations: 1.354 MB / 420.4 MB, free: 8.762 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3107, allocations: 0 / 420.4 MB, free: 8.762 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002737/0.3134, allocations: 0.9008 MB / 421.3 MB, free: 7.863 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.0003383/0.3137, allocations: 186.8 kB / 421.4 MB, free: 7.676 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003276/0.317, allocations: 2.556 MB / 424 MB, free: 5.113 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.317, allocations: 3.938 kB / 424 MB, free: 5.109 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006251/0.3176, allocations: 0.6149 MB / 424.6 MB, free: 4.477 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00111/0.3188, allocations: 349.9 kB / 425 MB, free: 4.141 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1083/0.4271, allocations: 5.937 MB / 430.9 MB, free: 125.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001184/0.4283, allocations: 1.011 MB / 431.9 MB, free: 125.7 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002643/0.4309, allocations: 1.397 MB / 433.3 MB, free: 125.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004646/0.4314, allocations: 198 kB / 433.5 MB, free: 125.6 MB / 378.7 MB Notification: Performance of SimCode: time 2.224e-06/0.4314, allocations: 0 / 433.5 MB, free: 125.6 MB / 378.7 MB Notification: Performance of Templates: time 0.03357/0.465, allocations: 25.9 MB / 459.4 MB, free: 110 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.853926995070651]