Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007497/0.0007497, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009369/0.001687, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0006892/0.0006892, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008242/0.001513, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9586/0.9586, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08224/1.041, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.362e-06/1.362e-06, allocations: 0 / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 7.765e-06/9.127e-06, allocations: 2.312 kB / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant): time 0.007188/0.007197, allocations: 9.795 MB / 254.3 MB, free: 4.477 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004137/0.01133, allocations: 3.863 MB / 258.2 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004397/0.01177, allocations: 67.69 kB / 258.3 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001783/0.01356, allocations: 1.985 MB / 260.2 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001754/0.01531, allocations: 1.711 MB / 261.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000631/0.01594, allocations: 0.6197 MB / 262.6 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002247/0.01819, allocations: 3.667 MB / 266.2 MB, free: 8.527 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00146/0.01965, allocations: 2.24 MB / 268.5 MB, free: 6.223 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001356/0.02101, allocations: 2.03 MB / 270.5 MB, free: 4.184 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001256/0.02226, allocations: 1.742 MB / 272.2 MB, free: 2.438 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002491/0.02251, allocations: 256 kB / 272.5 MB, free: 2.188 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009085/0.02342, allocations: 0.9906 MB / 273.5 MB, free: 1.195 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1117/0.1351, allocations: 1.499 MB / 275 MB, free: 6.75 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00158/0.1367, allocations: 0.8507 MB / 275.8 MB, free: 6.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003667/0.1404, allocations: 3.547 MB / 279.4 MB, free: 6.492 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.374e-05/0.1404, allocations: 0 / 279.4 MB, free: 6.492 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1404, allocations: 1.281 kB / 279.4 MB, free: 6.492 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001421/0.1405, allocations: 0 / 279.4 MB, free: 6.492 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.005683/0.1462, allocations: 4.538 MB / 283.9 MB, free: 4.758 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.1462, allocations: 9.062 kB / 283.9 MB, free: 4.758 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002404/0.1486, allocations: 0.9417 MB / 284.9 MB, free: 4.742 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001691/0.1503, allocations: 1.467 MB / 286.3 MB, free: 4.297 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.983e-05/0.1504, allocations: 191.2 kB / 286.5 MB, free: 4.289 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002947/0.1507, allocations: 258.2 kB / 286.8 MB, free: 4.285 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003498/0.1542, allocations: 4.231 MB / 291 MB, free: 2.465 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.805e-05/0.1543, allocations: 36.75 kB / 291 MB, free: 2.461 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002061/0.1545, allocations: 129.4 kB / 291.2 MB, free: 2.461 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00105/0.1555, allocations: 1.473 MB / 292.6 MB, free: 2.457 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002551/0.1581, allocations: 2.103 MB / 294.7 MB, free: 2.344 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01773/0.1758, allocations: 27.42 MB / 322.2 MB, free: 11.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003116/0.1789, allocations: 1.269 MB / 323.4 MB, free: 9.77 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004031/0.1793, allocations: 282.6 kB / 323.7 MB, free: 9.492 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003992/0.1833, allocations: 2.971 MB / 326.7 MB, free: 6.543 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.1833, allocations: 43.05 kB / 326.7 MB, free: 6.492 MB / 298.7 MB Notification: Performance of pre-optimization done (n=103): time 2.645e-06/0.1833, allocations: 0 / 326.7 MB, free: 6.492 MB / 298.7 MB Notification: Performance of matching and sorting (n=104): time 0.006854/0.1902, allocations: 2.633 MB / 329.4 MB, free: 3.875 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.296e-05/0.1903, allocations: 137 kB / 329.5 MB, free: 3.711 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002584/0.1928, allocations: 2.9 MB / 332.4 MB, free: 1.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.046e-05/0.1929, allocations: 41.7 kB / 332.4 MB, free: 1.273 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001312/0.1942, allocations: 2.753 MB / 335.2 MB, free: 14.68 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000295/0.1945, allocations: 463.4 kB / 335.6 MB, free: 14.24 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009529/0.1955, allocations: 1.013 MB / 336.7 MB, free: 13.34 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.92e-05/0.1955, allocations: 305.1 kB / 337 MB, free: 13.04 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00106/0.1966, allocations: 0.6152 MB / 337.6 MB, free: 12.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002731/0.1993, allocations: 4.011 MB / 341.6 MB, free: 6.828 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003832/0.2031, allocations: 5.105 MB / 346.7 MB, free: 360 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.367e-05/0.2032, allocations: 39.98 kB / 346.7 MB, free: 320 kB / 314.7 MB Notification: Performance of matching and sorting (n=691) (initialization): time 0.004305/0.2075, allocations: 3.591 MB / 350.3 MB, free: 12.73 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.015e-05/0.2076, allocations: 60 kB / 350.4 MB, free: 12.67 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001019/0.2077, allocations: 128 kB / 350.5 MB, free: 12.54 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000124/0.2078, allocations: 164 kB / 350.7 MB, free: 12.38 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002731/0.2105, allocations: 1.357 MB / 352 MB, free: 11.02 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000155/0.2107, allocations: 247 kB / 352.3 MB, free: 10.78 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00208/0.2127, allocations: 248.3 kB / 352.5 MB, free: 10.54 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003121/0.2131, allocations: 288 kB / 352.8 MB, free: 10.26 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.0008516/0.2139, allocations: 0.5583 MB / 353.3 MB, free: 9.691 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000272/0.2142, allocations: 179.1 kB / 353.5 MB, free: 9.52 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007323/0.2149, allocations: 0.501 MB / 354 MB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.536e-05/0.2149, allocations: 12 kB / 354 MB, free: 8.992 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.2149, allocations: 0 / 354 MB, free: 8.992 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.838e-06/0.2149, allocations: 8.016 kB / 354 MB, free: 8.984 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003096/0.218, allocations: 2.187 MB / 356.2 MB, free: 6.992 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.218, allocations: 4 kB / 356.2 MB, free: 6.988 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004615/0.2185, allocations: 143.8 kB / 356.4 MB, free: 6.848 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002795/0.2188, allocations: 262.1 kB / 356.6 MB, free: 6.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001748/0.219, allocations: 47 kB / 356.7 MB, free: 6.543 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.483e-05/0.219, allocations: 16 kB / 356.7 MB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001078/0.2201, allocations: 1.428 MB / 358.1 MB, free: 5.004 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.2201, allocations: 4 kB / 358.1 MB, free: 5 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001172/0.2213, allocations: 1.215 MB / 359.3 MB, free: 3.754 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002183/0.2215, allocations: 14.56 kB / 359.3 MB, free: 3.742 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005718/0.2221, allocations: 23.98 kB / 359.4 MB, free: 3.719 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.297e-05/0.2221, allocations: 59.83 kB / 359.4 MB, free: 3.66 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.813e-05/0.2222, allocations: 20 kB / 359.4 MB, free: 3.641 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001034/0.2232, allocations: 1.031 MB / 360.5 MB, free: 2.738 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2232, allocations: 4.062 kB / 360.5 MB, free: 2.734 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002777/0.226, allocations: 0.785 MB / 361.3 MB, free: 1.949 MB / 330.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.0002838/0.2263, allocations: 149.1 kB / 361.4 MB, free: 1.801 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001953/0.2282, allocations: 1.942 MB / 363.4 MB, free: 15.93 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001461/0.2284, allocations: 97.28 kB / 363.4 MB, free: 15.82 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003572/0.2287, allocations: 338.7 kB / 363.8 MB, free: 15.49 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.2299, allocations: 0.6847 MB / 364.5 MB, free: 14.82 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007676/0.2376, allocations: 5.865 MB / 370.3 MB, free: 8.891 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007531/0.2384, allocations: 0.9867 MB / 371.3 MB, free: 7.887 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0007983/0.2392, allocations: 427.1 kB / 371.7 MB, free: 7.465 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005455/0.2397, allocations: 473.2 kB / 372.2 MB, free: 7.004 MB / 346.7 MB Notification: Performance of SimCode: time 6.42e-07/0.2397, allocations: 0 / 372.2 MB, free: 7.004 MB / 346.7 MB Notification: Performance of Templates: time 0.03245/0.2722, allocations: 22.39 MB / 394.6 MB, free: 0.9844 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.215210258960724]