Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.001402/0.001402, allocations: 80.62 kB / 22.21 MB, free: 2.293 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.001659/0.001659, allocations: 145.2 kB / 25.59 MB, free: 8.914 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 1.021/1.021, allocations: 173.4 MB / 202.2 MB, free: 8.289 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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 269.2 MB, free: 9.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.137e-05/2.286e-05, allocations: 3.375 kB / 269.2 MB, free: 9.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.009764/0.009787, allocations: 9.751 MB / 279 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00669/0.01648, allocations: 3.766 MB / 282.7 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001232/0.01771, allocations: 63.69 kB / 282.8 MB, free: 12.14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002389/0.0201, allocations: 2.203 MB / 285 MB, free: 9.926 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002949/0.02305, allocations: 1.75 MB / 286.7 MB, free: 8.168 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001189/0.02424, allocations: 0.7405 MB / 287.5 MB, free: 7.426 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003904/0.02814, allocations: 3.715 MB / 291.2 MB, free: 3.703 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002917/0.03106, allocations: 2.544 MB / 293.7 MB, free: 1.105 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002671/0.03373, allocations: 2 MB / 295.7 MB, free: 15.1 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001855/0.03558, allocations: 1.855 MB / 297.6 MB, free: 13.24 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003459/0.03593, allocations: 260 kB / 297.9 MB, free: 12.98 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001319/0.03725, allocations: 1.065 MB / 298.9 MB, free: 11.92 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009938/0.03824, allocations: 1.691 MB / 300.6 MB, free: 10.22 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000931/0.03917, allocations: 1.055 MB / 301.7 MB, free: 9.164 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003762/0.04294, allocations: 4.02 MB / 305.7 MB, free: 5.129 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.329e-06/0.04294, allocations: 7.938 kB / 305.7 MB, free: 5.121 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.04294, allocations: 0 / 305.7 MB, free: 5.121 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.518e-05/0.04301, allocations: 0 / 305.7 MB, free: 5.121 MB / 282.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.005067/0.04807, allocations: 4.353 MB / 310 MB, free: 0.707 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.04812, allocations: 15.97 kB / 310.1 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003232/0.05135, allocations: 1.372 MB / 311.4 MB, free: 15.32 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002241/0.05359, allocations: 1.55 MB / 313 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001072/0.0537, allocations: 201.2 kB / 313.2 MB, free: 13.53 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003184/0.05402, allocations: 275.8 kB / 313.4 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007131/0.06115, allocations: 5.254 MB / 318.7 MB, free: 7.078 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.013e-05/0.06123, allocations: 39.64 kB / 318.7 MB, free: 7.039 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002406/0.06147, allocations: 139.9 kB / 318.9 MB, free: 6.902 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001395/0.06286, allocations: 1.583 MB / 320.5 MB, free: 5.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005348/0.06821, allocations: 2.42 MB / 322.9 MB, free: 2.898 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1545/0.2227, allocations: 40.36 MB / 363.2 MB, free: 52.12 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004498/0.2272, allocations: 1.803 MB / 365 MB, free: 51.98 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008217/0.228, allocations: 497.6 kB / 365.5 MB, free: 51.93 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005467/0.2335, allocations: 3.619 MB / 369.1 MB, free: 50.99 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.592e-05/0.2335, allocations: 54.8 kB / 369.2 MB, free: 50.95 MB / 330.7 MB Notification: Performance of pre-optimization done (n=135): time 5.47e-06/0.2335, allocations: 0 / 369.2 MB, free: 50.95 MB / 330.7 MB Notification: Performance of matching and sorting (n=145): time 0.01261/0.2461, allocations: 5.432 MB / 374.6 MB, free: 50.25 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.543e-05/0.2462, allocations: 141.2 kB / 374.8 MB, free: 50.09 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002477/0.2486, allocations: 3.121 MB / 377.9 MB, free: 49.57 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.813e-05/0.2487, allocations: 47.61 kB / 377.9 MB, free: 49.54 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001015/0.2497, allocations: 3.1 MB / 381 MB, free: 47.75 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003363/0.2501, allocations: 0.621 MB / 381.7 MB, free: 47.41 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009105/0.251, allocations: 1.236 MB / 382.9 MB, free: 47.26 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.289e-05/0.251, allocations: 476.8 kB / 383.4 MB, free: 46.79 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007787/0.2518, allocations: 0.5034 MB / 383.9 MB, free: 46.52 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002059/0.2538, allocations: 5.848 MB / 389.7 MB, free: 38.78 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003548/0.2574, allocations: 6.982 MB / 396.7 MB, free: 30 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.959e-05/0.2575, allocations: 40 kB / 396.7 MB, free: 29.96 MB / 330.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.004523/0.262, allocations: 4.543 MB / 401.3 MB, free: 25.45 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.596e-05/0.262, allocations: 60 kB / 401.3 MB, free: 25.39 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.585e-05/0.2621, allocations: 128 kB / 401.5 MB, free: 25.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005088/0.2626, allocations: 299 kB / 401.8 MB, free: 24.97 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002417/0.265, allocations: 1.271 MB / 403 MB, free: 23.7 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001688/0.2667, allocations: 2.475 MB / 405.5 MB, free: 21.11 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002913/0.2696, allocations: 251.7 kB / 405.7 MB, free: 20.87 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002814/0.2699, allocations: 303.8 kB / 406 MB, free: 20.57 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.000937/0.2709, allocations: 0.6289 MB / 406.7 MB, free: 19.93 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003785/0.2712, allocations: 318.1 kB / 407 MB, free: 19.62 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001262/0.2725, allocations: 0.8747 MB / 407.9 MB, free: 18.73 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.721e-05/0.2725, allocations: 20 kB / 407.9 MB, free: 18.71 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.2725, allocations: 0 / 407.9 MB, free: 18.71 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.147e-05/0.2725, allocations: 7.969 kB / 407.9 MB, free: 18.71 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005682/0.2782, allocations: 4.004 MB / 411.9 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.2782, allocations: 8 kB / 411.9 MB, free: 14.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005873/0.2788, allocations: 195.7 kB / 412.1 MB, free: 14.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000433/0.2792, allocations: 143.8 kB / 412.2 MB, free: 14.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.063e-05/0.2793, allocations: 32 kB / 412.3 MB, free: 14.15 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00126/0.2806, allocations: 2.249 MB / 414.5 MB, free: 11.79 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.2806, allocations: 11.94 kB / 414.5 MB, free: 11.78 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001902/0.2825, allocations: 2.02 MB / 416.5 MB, free: 9.613 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003706/0.2828, allocations: 266 kB / 416.8 MB, free: 9.352 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002549/0.2831, allocations: 35.98 kB / 416.8 MB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007568/0.2839, allocations: 24 kB / 416.9 MB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001416/0.284, allocations: 116.2 kB / 417 MB, free: 9.18 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.693e-05/0.2841, allocations: 42.83 kB / 417 MB, free: 9.141 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001147/0.2852, allocations: 1.223 MB / 418.2 MB, free: 7.918 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2852, allocations: 0 / 418.2 MB, free: 7.918 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003575/0.2888, allocations: 0.871 MB / 419.1 MB, free: 7.047 MB / 330.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.0003213/0.2891, allocations: 202.8 kB / 419.3 MB, free: 6.84 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003069/0.2922, allocations: 2.52 MB / 421.8 MB, free: 4.312 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/0.2922, allocations: 4 kB / 421.8 MB, free: 4.309 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000612/0.2928, allocations: 0.5945 MB / 422.4 MB, free: 3.688 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001497/0.2943, allocations: 337.2 kB / 422.8 MB, free: 3.375 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009083/0.3034, allocations: 6.449 MB / 429.2 MB, free: 12.75 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001206/0.3046, allocations: 1.036 MB / 430.2 MB, free: 11.7 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001474/0.306, allocations: 451.1 kB / 430.7 MB, free: 11.25 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001035/0.3071, allocations: 0.5059 MB / 431.2 MB, free: 10.75 MB / 346.7 MB Notification: Performance of SimCode: time 1.783e-06/0.3071, allocations: 4 kB / 431.2 MB, free: 10.74 MB / 346.7 MB Notification: Performance of Templates: time 0.04236/0.3494, allocations: 24.48 MB / 455.7 MB, free: 2.766 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.8631409467197955]