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.0009806/0.0009806, allocations: 82.97 kB / 21.43 MB, free: 3.074 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.000956/0.000956, allocations: 149 kB / 24.81 MB, free: 9.23 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.9573/0.9573, allocations: 173.4 MB / 201.4 MB, free: 9.215 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.4 MB, free: 6.191 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.374e-05/3.586e-05, allocations: 10.25 kB / 268.4 MB, free: 6.18 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.01703/0.01707, allocations: 9.694 MB / 278.1 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007671/0.02474, allocations: 3.681 MB / 281.8 MB, free: 8.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001803/0.02654, allocations: 67.69 kB / 281.9 MB, free: 8.664 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002972/0.02952, allocations: 2.051 MB / 283.9 MB, free: 6.605 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004183/0.0337, allocations: 1.785 MB / 285.7 MB, free: 4.812 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001326/0.03502, allocations: 0.6626 MB / 286.4 MB, free: 4.148 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004649/0.03967, allocations: 3.699 MB / 290.1 MB, free: 456 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1164/0.1561, allocations: 2.457 MB / 292.5 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003906/0.16, allocations: 1.951 MB / 294.5 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003237/0.1633, allocations: 1.834 MB / 296.3 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001141/0.1644, allocations: 262 kB / 296.6 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003007/0.1674, allocations: 0.9814 MB / 297.5 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002394/0.1698, allocations: 1.691 MB / 299.2 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001906/0.1717, allocations: 1.048 MB / 300.3 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004752/0.1765, allocations: 3.857 MB / 304.1 MB, free: 14.09 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.1765, allocations: 0 / 304.1 MB, free: 14.09 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1765, allocations: 0.625 kB / 304.1 MB, free: 14.09 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001627/0.1766, allocations: 1.469 kB / 304.1 MB, free: 14.09 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.005492/0.1821, allocations: 4.269 MB / 308.4 MB, free: 11.74 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.1822, allocations: 15.31 kB / 308.4 MB, free: 11.74 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002901/0.1851, allocations: 1.278 MB / 309.7 MB, free: 11.33 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00193/0.187, allocations: 1.608 MB / 311.3 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.694e-05/0.1871, allocations: 186.4 kB / 311.5 MB, free: 10.44 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002786/0.1873, allocations: 256.5 kB / 311.7 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005404/0.1927, allocations: 4.752 MB / 316.5 MB, free: 6.738 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.646e-05/0.1928, allocations: 40.39 kB / 316.5 MB, free: 6.719 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002222/0.193, allocations: 126.5 kB / 316.7 MB, free: 6.629 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001009/0.1941, allocations: 1.465 MB / 318.1 MB, free: 5.191 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003698/0.1978, allocations: 2.07 MB / 320.2 MB, free: 3.305 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02633/0.2241, allocations: 38.43 MB / 358.6 MB, free: 12.7 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002998/0.2271, allocations: 1.335 MB / 360 MB, free: 11.34 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004669/0.2275, allocations: 338.2 kB / 360.3 MB, free: 10.99 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004255/0.2318, allocations: 3.237 MB / 363.5 MB, free: 7.785 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.2318, allocations: 49.89 kB / 363.6 MB, free: 7.727 MB / 314.7 MB Notification: Performance of pre-optimization done (n=103): time 3.397e-06/0.2318, allocations: 0 / 363.6 MB, free: 7.727 MB / 314.7 MB Notification: Performance of matching and sorting (n=104): time 0.007624/0.2395, allocations: 3.098 MB / 366.7 MB, free: 4.605 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.492e-05/0.2395, allocations: 141 kB / 366.8 MB, free: 4.434 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002953/0.2425, allocations: 3.257 MB / 370.1 MB, free: 1.68 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.391e-05/0.2425, allocations: 33.7 kB / 370.1 MB, free: 1.641 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001469/0.244, allocations: 3.115 MB / 373.2 MB, free: 14.67 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000361/0.2444, allocations: 480.1 kB / 373.7 MB, free: 14.22 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009311/0.2453, allocations: 1.188 MB / 374.9 MB, free: 13.14 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.949e-05/0.2454, allocations: 476.8 kB / 375.3 MB, free: 12.67 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007033/0.2461, allocations: 450.2 kB / 375.8 MB, free: 12.22 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002911/0.249, allocations: 5.708 MB / 381.5 MB, free: 4.277 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004602/0.2536, allocations: 6.771 MB / 388.3 MB, free: 11.29 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001075/0.2537, allocations: 36 kB / 388.3 MB, free: 11.26 MB / 346.7 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.00561/0.2593, allocations: 4.216 MB / 392.5 MB, free: 7.043 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.523e-05/0.2594, allocations: 60 kB / 392.6 MB, free: 6.984 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001215/0.2595, allocations: 124 kB / 392.7 MB, free: 6.863 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001238/0.2596, allocations: 168.8 kB / 392.8 MB, free: 6.699 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002075/0.2617, allocations: 1.216 MB / 394.1 MB, free: 5.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001238/0.2618, allocations: 247 kB / 394.3 MB, free: 5.238 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002094/0.2639, allocations: 243 kB / 394.5 MB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003313/0.2643, allocations: 300 kB / 394.8 MB, free: 4.711 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 575 * 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 (667): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001094/0.2654, allocations: 0.6107 MB / 395.4 MB, free: 4.086 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003858/0.2657, allocations: 318 kB / 395.8 MB, free: 3.773 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007508/0.2665, allocations: 0.5549 MB / 396.3 MB, free: 3.207 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.521e-05/0.2665, allocations: 12 kB / 396.3 MB, free: 3.195 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.2665, allocations: 0 / 396.3 MB, free: 3.195 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.814e-06/0.2665, allocations: 3.984 kB / 396.3 MB, free: 3.191 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003913/0.2704, allocations: 2.386 MB / 398.7 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.2704, allocations: 4 kB / 398.7 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003287/0.2708, allocations: 128 kB / 398.8 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000171/0.2709, allocations: 47.64 kB / 398.9 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.633e-05/0.271, allocations: 16 kB / 398.9 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001229/0.2722, allocations: 1.791 MB / 400.7 MB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.2722, allocations: 7.969 kB / 400.7 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001395/0.2736, allocations: 1.46 MB / 402.2 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004197/0.274, allocations: 258 kB / 402.4 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000166/0.2742, allocations: 16 kB / 402.4 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004573/0.2746, allocations: 19.98 kB / 402.5 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.019e-05/0.2747, allocations: 55.84 kB / 402.5 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.708e-05/0.2748, allocations: 31.98 kB / 402.5 MB, free: 12.73 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001294/0.2761, allocations: 1.282 MB / 403.8 MB, free: 11.46 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2761, allocations: 4.031 kB / 403.8 MB, free: 11.45 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002924/0.279, allocations: 0.8123 MB / 404.6 MB, free: 10.64 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (78): * Single equations (assignments): 74 * 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.0003302/0.2793, allocations: 178.8 kB / 404.8 MB, free: 10.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002853/0.2822, allocations: 2.091 MB / 406.9 MB, free: 8.383 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.2822, allocations: 4 kB / 406.9 MB, free: 8.379 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007942/0.283, allocations: 442.9 kB / 407.3 MB, free: 7.926 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00146/0.2844, allocations: 327.8 kB / 407.7 MB, free: 7.613 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008935/0.2934, allocations: 5.808 MB / 413.5 MB, free: 1.711 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001516/0.2949, allocations: 0.9894 MB / 414.5 MB, free: 0.707 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001591/0.2965, allocations: 426.3 kB / 414.9 MB, free: 296 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008058/0.2973, allocations: 0.4981 MB / 415.4 MB, free: 15.79 MB / 378.7 MB Notification: Performance of SimCode: time 2.034e-06/0.2973, allocations: 4 kB / 415.4 MB, free: 15.79 MB / 378.7 MB Notification: Performance of Templates: time 0.1477/0.445, allocations: 22.08 MB / 437.5 MB, free: 118.2 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.688123259227723]