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.001054/0.001054, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.00111/0.00111, allocations: 147.4 kB / 24.89 MB, free: 8.742 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.9254/0.9254, allocations: 173.4 MB / 201.5 MB, free: 8.723 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 1.523e-06/1.523e-06, allocations: 3.938 kB / 268.5 MB, free: 5.969 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.118e-05/2.27e-05, allocations: 10.05 kB / 268.5 MB, free: 5.961 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.007739/0.007762, allocations: 9.753 MB / 278.3 MB, free: 12.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006758/0.01452, allocations: 3.813 MB / 282.1 MB, free: 8.328 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001635/0.01615, allocations: 67.69 kB / 282.2 MB, free: 8.262 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002232/0.01839, allocations: 2.043 MB / 284.2 MB, free: 6.211 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003204/0.02159, allocations: 1.761 MB / 286 MB, free: 4.441 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001003/0.02259, allocations: 0.6586 MB / 286.6 MB, free: 3.781 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003729/0.02632, allocations: 3.692 MB / 290.3 MB, free: 80 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1097/0.136, allocations: 2.411 MB / 292.7 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00332/0.1393, allocations: 1.912 MB / 294.6 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003087/0.1424, allocations: 1.758 MB / 296.4 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000848/0.1433, allocations: 256.3 kB / 296.6 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001895/0.1452, allocations: 1.006 MB / 297.6 MB, free: 15.47 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001517/0.1467, allocations: 1.695 MB / 299.3 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001867/0.1485, allocations: 1.038 MB / 300.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004287/0.1528, allocations: 3.854 MB / 304.2 MB, free: 13.98 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1528, allocations: 2.906 kB / 304.2 MB, free: 13.98 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.1528, allocations: 0 / 304.2 MB, free: 13.98 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001379/0.153, allocations: 0.8438 kB / 304.2 MB, free: 13.98 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.004192/0.1572, allocations: 3.767 MB / 308 MB, free: 11.95 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.295e-05/0.1572, allocations: 12.38 kB / 308 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002129/0.1593, allocations: 0.9352 MB / 309 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00159/0.1609, allocations: 1.479 MB / 310.4 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.246e-05/0.161, allocations: 190.8 kB / 310.6 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002617/0.1613, allocations: 249.8 kB / 310.9 MB, free: 10.94 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003973/0.1652, allocations: 4.214 MB / 315.1 MB, free: 8.25 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.817e-05/0.1653, allocations: 36.41 kB / 315.1 MB, free: 8.23 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001999/0.1655, allocations: 129.4 kB / 315.2 MB, free: 8.137 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001001/0.1665, allocations: 1.471 MB / 316.7 MB, free: 6.699 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003293/0.1698, allocations: 2.099 MB / 318.8 MB, free: 4.793 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02039/0.1902, allocations: 27.42 MB / 346.2 MB, free: 9.309 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002499/0.1927, allocations: 1.291 MB / 347.5 MB, free: 8.016 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003353/0.193, allocations: 268.1 kB / 347.8 MB, free: 7.746 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004012/0.197, allocations: 2.986 MB / 350.8 MB, free: 4.781 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.1971, allocations: 42.25 kB / 350.8 MB, free: 4.734 MB / 298.7 MB Notification: Performance of pre-optimization done (n=103): time 2.625e-06/0.1971, allocations: 0 / 350.8 MB, free: 4.734 MB / 298.7 MB Notification: Performance of matching and sorting (n=104): time 0.005887/0.203, allocations: 2.653 MB / 353.5 MB, free: 2.074 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.785e-05/0.203, allocations: 140.3 kB / 353.6 MB, free: 1.906 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002396/0.2054, allocations: 2.908 MB / 356.5 MB, free: 15.5 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.507e-05/0.2055, allocations: 41.7 kB / 356.6 MB, free: 15.45 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001347/0.2068, allocations: 2.76 MB / 359.3 MB, free: 12.84 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003152/0.2071, allocations: 465.7 kB / 359.8 MB, free: 12.4 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007593/0.2079, allocations: 1.009 MB / 360.8 MB, free: 11.5 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.837e-05/0.208, allocations: 305.1 kB / 361.1 MB, free: 11.2 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008855/0.2088, allocations: 0.6152 MB / 361.7 MB, free: 10.58 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002866/0.2117, allocations: 4.011 MB / 365.7 MB, free: 4.984 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004269/0.216, allocations: 5.118 MB / 370.8 MB, free: 14.41 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.69e-05/0.216, allocations: 36 kB / 370.9 MB, free: 14.37 MB / 330.7 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.004143/0.2202, allocations: 3.597 MB / 374.4 MB, free: 10.77 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.296e-05/0.2202, allocations: 56 kB / 374.5 MB, free: 10.72 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.954e-05/0.2203, allocations: 128 kB / 374.6 MB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.957e-05/0.2204, allocations: 164.8 kB / 374.8 MB, free: 10.43 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001954/0.2224, allocations: 1.271 MB / 376.1 MB, free: 9.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001058/0.2225, allocations: 247.1 kB / 376.3 MB, free: 8.918 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001839/0.2243, allocations: 239.7 kB / 376.5 MB, free: 8.684 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002252/0.2245, allocations: 299.9 kB / 376.8 MB, free: 8.391 MB / 330.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.001205/0.2257, allocations: 0.5679 MB / 377.4 MB, free: 7.809 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002813/0.226, allocations: 171.8 kB / 377.6 MB, free: 7.641 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006282/0.2267, allocations: 0.5042 MB / 378.1 MB, free: 7.129 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.626e-05/0.2267, allocations: 12 kB / 378.1 MB, free: 7.117 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.2267, allocations: 0 / 378.1 MB, free: 7.117 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.2267, allocations: 7.984 kB / 378.1 MB, free: 7.109 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002988/0.2297, allocations: 2.193 MB / 380.3 MB, free: 4.883 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.2297, allocations: 4 kB / 380.3 MB, free: 4.879 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003441/0.23, allocations: 136 kB / 380.4 MB, free: 4.746 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001559/0.2302, allocations: 39.64 kB / 380.5 MB, free: 4.703 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.554e-05/0.2302, allocations: 23.98 kB / 380.5 MB, free: 4.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009617/0.2312, allocations: 1.414 MB / 381.9 MB, free: 3.164 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.2312, allocations: 7.938 kB / 381.9 MB, free: 3.156 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/0.2322, allocations: 1.218 MB / 383.1 MB, free: 1.891 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003424/0.2326, allocations: 253.9 kB / 383.4 MB, free: 1.641 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001633/0.2327, allocations: 23.98 kB / 383.4 MB, free: 1.617 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004076/0.2331, allocations: 16 kB / 383.4 MB, free: 1.602 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.803e-05/0.2332, allocations: 51.91 kB / 383.5 MB, free: 1.551 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.309e-05/0.2333, allocations: 28 kB / 383.5 MB, free: 1.523 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001103/0.2344, allocations: 1.04 MB / 384.5 MB, free: 496 kB / 330.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2344, allocations: 0 / 384.5 MB, free: 496 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.002763/0.2371, allocations: 0.8046 MB / 385.3 MB, free: 15.68 MB / 346.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.0002891/0.2374, allocations: 152 kB / 385.5 MB, free: 15.52 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001995/0.2394, allocations: 1.939 MB / 387.4 MB, free: 13.6 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001377/0.2395, allocations: 96.16 kB / 387.5 MB, free: 13.5 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004271/0.24, allocations: 344.8 kB / 387.8 MB, free: 13.14 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00144/0.2414, allocations: 491.8 kB / 388.3 MB, free: 12.67 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006741/0.2481, allocations: 5.762 MB / 394.1 MB, free: 6.82 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007933/0.2489, allocations: 0.9894 MB / 395.1 MB, free: 5.816 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001003/0.2499, allocations: 434.3 kB / 395.5 MB, free: 5.391 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007185/0.2507, allocations: 465.2 kB / 396 MB, free: 4.934 MB / 346.7 MB Notification: Performance of SimCode: time 1.393e-06/0.2507, allocations: 4 kB / 396 MB, free: 4.93 MB / 346.7 MB Notification: Performance of Templates: time 0.04143/0.2921, allocations: 22.03 MB / 418 MB, free: 15.18 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 -s gbode -gbm=radauIIA3 -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.5183200240135193]