Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00146/0.00146, allocations: 80.34 kB / 22.21 MB, free: 2.281 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001717/0.001717, allocations: 166.2 kB / 25.61 MB, free: 8.578 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9487/0.9487, allocations: 177 MB / 205.9 MB, free: 4.441 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 274.1 MB, free: 4.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.354e-05/1.496e-05, allocations: 2.312 kB / 274.1 MB, free: 4.266 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.009228/0.009243, allocations: 9.718 MB / 283.8 MB, free: 10.51 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006195/0.01544, allocations: 3.769 MB / 287.6 MB, free: 6.738 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005678/0.01601, allocations: 67.69 kB / 287.7 MB, free: 6.672 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00206/0.01807, allocations: 2.188 MB / 289.9 MB, free: 4.477 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001941/0.02001, allocations: 1.73 MB / 291.6 MB, free: 2.738 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007407/0.02075, allocations: 0.7444 MB / 292.3 MB, free: 1.992 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002547/0.0233, allocations: 3.77 MB / 296.1 MB, free: 14.21 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001607/0.0249, allocations: 2.532 MB / 298.6 MB, free: 11.63 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001417/0.02632, allocations: 1.98 MB / 300.6 MB, free: 9.645 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001753/0.02807, allocations: 1.847 MB / 302.5 MB, free: 7.793 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002566/0.02833, allocations: 260 kB / 302.7 MB, free: 7.539 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001021/0.02935, allocations: 1.057 MB / 303.8 MB, free: 6.48 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008693/0.03022, allocations: 1.663 MB / 305.4 MB, free: 4.812 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007234/0.03094, allocations: 1.043 MB / 306.5 MB, free: 3.766 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002711/0.03365, allocations: 3.97 MB / 310.5 MB, free: 15.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.03366, allocations: 0 / 310.5 MB, free: 15.78 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.03366, allocations: 0 / 310.5 MB, free: 15.78 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.828e-05/0.03369, allocations: 0 / 310.5 MB, free: 15.78 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.003862/0.03755, allocations: 4.346 MB / 314.8 MB, free: 11.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.009e-05/0.03758, allocations: 8.031 kB / 314.8 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002875/0.04045, allocations: 1.376 MB / 316.2 MB, free: 9.988 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001444/0.0419, allocations: 1.538 MB / 317.7 MB, free: 8.414 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/0.042, allocations: 213.1 kB / 317.9 MB, free: 8.203 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002995/0.0423, allocations: 267.9 kB / 318.2 MB, free: 7.941 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005737/0.04803, allocations: 5.273 MB / 323.5 MB, free: 1.742 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.377e-05/0.0481, allocations: 43.62 kB / 323.5 MB, free: 1.699 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002312/0.04833, allocations: 139.9 kB / 323.6 MB, free: 1.562 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001335/0.04966, allocations: 1.583 MB / 325.2 MB, free: 15.98 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004418/0.05408, allocations: 2.431 MB / 327.7 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1392/0.1933, allocations: 40.36 MB / 368 MB, free: 37.09 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003975/0.1973, allocations: 1.83 MB / 369.8 MB, free: 36.95 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005425/0.1978, allocations: 488.1 kB / 370.3 MB, free: 36.9 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003743/0.2015, allocations: 3.632 MB / 374 MB, free: 35.9 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.475e-05/0.2016, allocations: 55.42 kB / 374 MB, free: 35.86 MB / 330.7 MB Notification: Performance of pre-optimization done (n=135): time 2.835e-06/0.2016, allocations: 0 / 374 MB, free: 35.86 MB / 330.7 MB Notification: Performance of matching and sorting (n=145): time 0.01086/0.2124, allocations: 5.46 MB / 379.5 MB, free: 35.12 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.886e-05/0.2125, allocations: 145 kB / 379.6 MB, free: 34.96 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001931/0.2144, allocations: 3.103 MB / 382.7 MB, free: 34.44 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.161e-05/0.2144, allocations: 43.55 kB / 382.8 MB, free: 34.41 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009032/0.2153, allocations: 3.101 MB / 385.9 MB, free: 32.61 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002614/0.2156, allocations: 0.6238 MB / 386.5 MB, free: 32.27 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007921/0.2164, allocations: 1.236 MB / 387.7 MB, free: 32.12 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.447e-05/0.2164, allocations: 480.5 kB / 388.2 MB, free: 31.65 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006598/0.2171, allocations: 0.5069 MB / 388.7 MB, free: 31.63 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001775/0.2189, allocations: 5.849 MB / 394.5 MB, free: 24.73 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003065/0.2219, allocations: 6.977 MB / 401.5 MB, free: 16.96 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.691e-05/0.222, allocations: 36 kB / 401.6 MB, free: 16.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.004051/0.226, allocations: 4.544 MB / 406.1 MB, free: 13.39 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.565e-05/0.2261, allocations: 56 kB / 406.2 MB, free: 13.33 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.002e-05/0.2261, allocations: 128.1 kB / 406.3 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004548/0.2266, allocations: 299.2 kB / 406.6 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001769/0.2284, allocations: 1.277 MB / 407.8 MB, free: 11.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00115/0.2295, allocations: 2.473 MB / 410.3 MB, free: 9.121 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001661/0.2312, allocations: 251.7 kB / 410.6 MB, free: 8.875 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002002/0.2314, allocations: 308 kB / 410.9 MB, free: 8.574 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 581 * Number of states: 0 () * Number of discrete variables: 36 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (706): * Single equations (assignments): 702 * 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 {(2,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006314/0.232, allocations: 0.6295 MB / 411.5 MB, free: 7.938 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002466/0.2323, allocations: 330.1 kB / 411.8 MB, free: 7.613 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009097/0.2332, allocations: 0.8445 MB / 412.7 MB, free: 6.754 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/0.2332, allocations: 16 kB / 412.7 MB, free: 6.738 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.2332, allocations: 11.31 kB / 412.7 MB, free: 6.73 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.2332, allocations: 7.969 kB / 412.7 MB, free: 6.723 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003931/0.2371, allocations: 3.992 MB / 416.7 MB, free: 3.047 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.002e-06/0.2371, allocations: 8 kB / 416.7 MB, free: 3.039 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004155/0.2375, allocations: 211.8 kB / 416.9 MB, free: 2.832 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003271/0.2379, allocations: 143 kB / 417 MB, free: 2.695 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.452e-05/0.2379, allocations: 35.98 kB / 417.1 MB, free: 2.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009345/0.2389, allocations: 2.236 MB / 419.3 MB, free: 344 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.2389, allocations: 15.92 kB / 419.3 MB, free: 328 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001648/0.2405, allocations: 2.024 MB / 421.4 MB, free: 14.19 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002617/0.2408, allocations: 268.9 kB / 421.6 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001757/0.2409, allocations: 28 kB / 421.6 MB, free: 13.9 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005079/0.2415, allocations: 38.8 kB / 421.7 MB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.2416, allocations: 100.4 kB / 421.8 MB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.371e-05/0.2416, allocations: 39.98 kB / 421.8 MB, free: 13.73 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001079/0.2427, allocations: 1.215 MB / 423 MB, free: 12.63 MB / 346.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2427, allocations: 4 kB / 423 MB, free: 12.63 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002225/0.2449, allocations: 0.8506 MB / 423.9 MB, free: 11.78 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (121): * Single equations (assignments): 117 * 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 {(2,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002578/0.2452, allocations: 188.6 kB / 424.1 MB, free: 11.59 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002425/0.2476, allocations: 2.528 MB / 426.6 MB, free: 9.113 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.2476, allocations: 0 / 426.6 MB, free: 9.113 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005399/0.2482, allocations: 0.5997 MB / 427.2 MB, free: 8.508 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001092/0.2492, allocations: 326.3 kB / 427.5 MB, free: 8.207 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007011/0.2563, allocations: 6.459 MB / 434 MB, free: 1.613 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00081/0.2571, allocations: 1.04 MB / 435 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0009022/0.258, allocations: 443.6 kB / 435.5 MB, free: 124 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000595/0.2586, allocations: 0.5059 MB / 436 MB, free: 15.61 MB / 362.7 MB Notification: Performance of SimCode: time 8.72e-07/0.2586, allocations: 0 / 436 MB, free: 15.61 MB / 362.7 MB Notification: Performance of Templates: time 0.04256/0.3011, allocations: 24.21 MB / 460.2 MB, free: 7.949 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.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.768927444703877]