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.0009/0.0009, allocations: 88.73 kB / 21.5 MB, free: 2.984 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.0008852/0.0008852, allocations: 164.2 kB / 24.91 MB, free: 8.762 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.929/0.929, allocations: 177 MB / 205.2 MB, free: 5.035 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.573e-06/1.573e-06, allocations: 0 / 273.4 MB, free: 1.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.062e-05/2.219e-05, allocations: 5.125 kB / 273.4 MB, free: 1.066 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01118/0.01121, allocations: 9.74 MB / 283.1 MB, free: 7.277 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007469/0.01867, allocations: 3.912 MB / 287 MB, free: 3.352 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000996/0.01967, allocations: 63.69 kB / 287.1 MB, free: 3.289 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003263/0.02293, allocations: 2.215 MB / 289.3 MB, free: 1.066 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.1075/0.1304, allocations: 1.72 MB / 291 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00141/0.1318, allocations: 0.7467 MB / 291.8 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003417/0.1353, allocations: 3.769 MB / 295.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002471/0.1377, allocations: 2.607 MB / 298.2 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002141/0.1399, allocations: 1.975 MB / 300.1 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001788/0.1417, allocations: 1.76 MB / 301.9 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000423/0.1421, allocations: 262.5 kB / 302.1 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001193/0.1433, allocations: 1.039 MB / 303.2 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007618/0.144, allocations: 1.665 MB / 304.9 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006818/0.1447, allocations: 1.047 MB / 305.9 MB, free: 11.92 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002231/0.147, allocations: 3.971 MB / 309.9 MB, free: 9.922 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.147, allocations: 0.5938 kB / 309.9 MB, free: 9.922 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.147, allocations: 3.469 kB / 309.9 MB, free: 9.922 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.224e-05/0.147, allocations: 3.984 kB / 309.9 MB, free: 9.918 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: 1349 * Number of variables: 1349 Notification: Performance of Generate backend data structure: time 0.002902/0.1499, allocations: 3.836 MB / 313.7 MB, free: 6.777 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.673e-05/0.1499, allocations: 11.98 kB / 313.7 MB, free: 6.766 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002224/0.1521, allocations: 1.015 MB / 314.7 MB, free: 5.797 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001215/0.1534, allocations: 1.437 MB / 316.2 MB, free: 4.469 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.809e-05/0.1534, allocations: 204.8 kB / 316.4 MB, free: 4.301 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002723/0.1537, allocations: 272.1 kB / 316.6 MB, free: 4.07 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004273/0.158, allocations: 4.687 MB / 321.3 MB, free: 15.11 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.896e-05/0.158, allocations: 40.39 kB / 321.4 MB, free: 15.09 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002299/0.1583, allocations: 135 kB / 321.5 MB, free: 15 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001409/0.1597, allocations: 1.584 MB / 323.1 MB, free: 13.44 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00415/0.1638, allocations: 2.412 MB / 325.5 MB, free: 11.25 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01767/0.1815, allocations: 28.88 MB / 354.4 MB, free: 14.31 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003453/0.1849, allocations: 1.787 MB / 356.2 MB, free: 12.53 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004771/0.1854, allocations: 413 kB / 356.6 MB, free: 12.13 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003784/0.1892, allocations: 3.398 MB / 360 MB, free: 8.77 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/0.1892, allocations: 51.22 kB / 360 MB, free: 8.711 MB / 314.7 MB Notification: Performance of pre-optimization done (n=135): time 2.605e-06/0.1892, allocations: 0 / 360 MB, free: 8.711 MB / 314.7 MB Notification: Performance of matching and sorting (n=145): time 0.009831/0.1991, allocations: 4.825 MB / 364.8 MB, free: 3.922 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.727e-05/0.1991, allocations: 141.5 kB / 365 MB, free: 3.75 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001785/0.2009, allocations: 2.785 MB / 367.8 MB, free: 1.355 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.069e-05/0.201, allocations: 53.7 kB / 367.8 MB, free: 1.297 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001043/0.202, allocations: 2.79 MB / 370.6 MB, free: 14.48 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002921/0.2023, allocations: 0.597 MB / 371.2 MB, free: 13.88 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007907/0.2031, allocations: 1.065 MB / 372.3 MB, free: 12.8 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.286e-05/0.2032, allocations: 305.1 kB / 372.6 MB, free: 12.5 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000954/0.2041, allocations: 0.6671 MB / 373.2 MB, free: 11.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002307/0.2064, allocations: 4.135 MB / 377.4 MB, free: 5.93 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003186/0.2096, allocations: 5.317 MB / 382.7 MB, free: 14.83 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.152e-05/0.2096, allocations: 40 kB / 382.7 MB, free: 14.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.003621/0.2132, allocations: 3.853 MB / 386.6 MB, free: 10.93 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.008e-05/0.2133, allocations: 60 kB / 386.6 MB, free: 10.87 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.882e-05/0.2134, allocations: 127.9 kB / 386.8 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004444/0.2138, allocations: 299.7 kB / 387.1 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002037/0.2158, allocations: 1.271 MB / 388.3 MB, free: 9.172 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00126/0.2171, allocations: 1.926 MB / 390.3 MB, free: 7.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001484/0.2186, allocations: 251.7 kB / 390.5 MB, free: 6.914 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002384/0.2188, allocations: 308 kB / 390.8 MB, free: 6.613 MB / 346.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.000684/0.2195, allocations: 0.5874 MB / 391.4 MB, free: 6.012 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002177/0.2197, allocations: 183.8 kB / 391.6 MB, free: 5.832 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008835/0.2206, allocations: 0.7409 MB / 392.3 MB, free: 5.07 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.348e-05/0.2206, allocations: 20 kB / 392.3 MB, free: 5.051 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.2206, allocations: 0 / 392.3 MB, free: 5.051 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.2206, allocations: 11.97 kB / 392.3 MB, free: 5.039 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003624/0.2243, allocations: 3.361 MB / 395.7 MB, free: 1.539 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.2243, allocations: 8 kB / 395.7 MB, free: 1.531 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000445/0.2247, allocations: 203.7 kB / 395.9 MB, free: 1.332 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004714/0.2252, allocations: 296.5 kB / 396.2 MB, free: 1.035 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.299e-05/0.2252, allocations: 28 kB / 396.2 MB, free: 1.008 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001059/0.2263, allocations: 1.689 MB / 397.9 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.224e-06/0.2263, allocations: 19.86 kB / 397.9 MB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001384/0.2277, allocations: 1.68 MB / 399.6 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002251/0.2279, allocations: 262 kB / 399.9 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001764/0.2281, allocations: 28 kB / 399.9 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004901/0.2286, allocations: 40.11 kB / 399.9 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.2287, allocations: 108.2 kB / 400 MB, free: 12.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.254e-05/0.2287, allocations: 47.92 kB / 400.1 MB, free: 12.94 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007377/0.2295, allocations: 0.9768 MB / 401.1 MB, free: 11.96 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2295, allocations: 4 kB / 401.1 MB, free: 11.96 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002125/0.2316, allocations: 0.8476 MB / 401.9 MB, free: 11.11 MB / 362.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.0002516/0.2319, allocations: 167.2 kB / 402.1 MB, free: 10.94 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002029/0.2339, allocations: 2.291 MB / 404.4 MB, free: 8.648 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001404/0.234, allocations: 96.47 kB / 404.5 MB, free: 8.547 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000439/0.2345, allocations: 0.4949 MB / 405 MB, free: 8.031 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001168/0.2356, allocations: 0.4911 MB / 405.4 MB, free: 7.543 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006026/0.2417, allocations: 6.316 MB / 411.8 MB, free: 1.074 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007849/0.2424, allocations: 1.02 MB / 412.8 MB, free: 28 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009044/0.2433, allocations: 448.1 kB / 413.2 MB, free: 15.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005837/0.2439, allocations: 477.2 kB / 413.7 MB, free: 15.12 MB / 378.7 MB Notification: Performance of SimCode: time 7.32e-07/0.2439, allocations: 0 / 413.7 MB, free: 15.12 MB / 378.7 MB Notification: Performance of Templates: time 0.1202/0.3641, allocations: 23.58 MB / 437.3 MB, free: 114.4 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.3854839857667685]