Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.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.001994/0.001994, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.002189/0.002189, allocations: 215.4 kB / 24.48 MB, free: 3.941 MB / 14.72 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 1.603/1.603, allocations: 230.6 MB / 258.2 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] 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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 43.92 kB / 379 MB, free: 2.434 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.3545, allocations: 53.37 MB / 432.3 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01544/0.3699, allocations: 9.038 MB / 441.4 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01161/0.3816, allocations: 3.68 MB / 445.1 MB, free: 9.898 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002676/0.3842, allocations: 67.69 kB / 445.1 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0049/0.3891, allocations: 2.024 MB / 447.1 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005829/0.395, allocations: 1.654 MB / 448.8 MB, free: 6.141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002064/0.397, allocations: 0.694 MB / 449.5 MB, free: 5.445 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006549/0.4036, allocations: 3.4 MB / 452.9 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003349/0.4069, allocations: 2.211 MB / 455.1 MB, free: 15.78 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002389/0.4093, allocations: 1.273 MB / 456.4 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002951/0.4123, allocations: 1.896 MB / 458.3 MB, free: 12.6 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006305/0.4129, allocations: 264 kB / 458.5 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002544/0.4154, allocations: 1.018 MB / 459.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002179/0.4176, allocations: 1.605 MB / 461.2 MB, free: 9.711 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001867/0.4195, allocations: 1.363 MB / 462.5 MB, free: 8.34 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009261/0.4287, allocations: 5.935 MB / 468.5 MB, free: 2.383 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.983e-06/0.4288, allocations: 0 / 468.5 MB, free: 2.383 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.858e-06/0.4288, allocations: 3.938 kB / 468.5 MB, free: 2.379 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002086/0.429, allocations: 0 / 468.5 MB, free: 2.379 MB / 366.1 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.01109/0.4401, allocations: 4.133 MB / 472.6 MB, free: 14.19 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.458e-05/0.4401, allocations: 8.031 kB / 472.6 MB, free: 14.18 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007018/0.4471, allocations: 1.882 MB / 474.5 MB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00545/0.4526, allocations: 1.838 MB / 476.3 MB, free: 10.42 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001945/0.4528, allocations: 201.2 kB / 476.5 MB, free: 10.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006142/0.4534, allocations: 271.8 kB / 476.8 MB, free: 9.953 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02234/0.4757, allocations: 10.05 MB / 486.8 MB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001092/0.4759, allocations: 47.64 kB / 486.9 MB, free: 15.16 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000376/0.4762, allocations: 135.9 kB / 487 MB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003259/0.4795, allocations: 1.848 MB / 488.9 MB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01946/0.4989, allocations: 8.548 MB / 497.4 MB, free: 4.629 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04784/0.5468, allocations: 34.64 MB / 0.5196 GB, free: 0.957 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01/0.5568, allocations: 3.102 MB / 0.5226 GB, free: 13.82 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002778/0.5596, allocations: 1.693 MB / 0.5243 GB, free: 12.12 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01194/0.5715, allocations: 6.21 MB / 0.5303 GB, free: 5.863 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.837e-05/0.5716, allocations: 47.56 kB / 0.5304 GB, free: 5.809 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 4.509e-06/0.5716, allocations: 0 / 0.5304 GB, free: 5.809 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.3428/0.9144, allocations: 17.53 MB / 0.5475 GB, free: 99.36 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.031e-05/0.9144, allocations: 145.1 kB / 0.5476 GB, free: 99.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004208/0.9186, allocations: 3.226 MB / 0.5508 GB, free: 98.04 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002458/0.9189, allocations: 56.66 kB / 0.5508 GB, free: 98 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001628/0.9205, allocations: 2.872 MB / 0.5536 GB, free: 95.94 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000698/0.9212, allocations: 0.6724 MB / 0.5543 GB, free: 95.45 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001344/0.9226, allocations: 1.125 MB / 0.5554 GB, free: 94.5 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.005e-05/0.9226, allocations: 305 kB / 0.5557 GB, free: 94.21 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00247/0.9251, allocations: 1.964 MB / 0.5576 GB, free: 92.55 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003999/0.9291, allocations: 5.386 MB / 0.5629 GB, free: 85.65 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008215/0.9373, allocations: 7.946 MB / 0.5706 GB, free: 76.02 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001223/0.9374, allocations: 40 kB / 0.5707 GB, free: 75.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01683/0.9543, allocations: 8.169 MB / 0.5786 GB, free: 67.81 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/0.9544, allocations: 56 kB / 0.5787 GB, free: 67.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002011/0.9546, allocations: 120 kB / 0.5788 GB, free: 67.64 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004072/0.9587, allocations: 1.296 MB / 0.5801 GB, free: 66.34 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004431/0.9631, allocations: 1.275 MB / 0.5813 GB, free: 65.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007824/0.9709, allocations: 6.361 MB / 0.5875 GB, free: 58.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005148/0.9761, allocations: 306 kB / 0.5878 GB, free: 58.31 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007396/0.9768, allocations: 344 kB / 0.5881 GB, free: 57.98 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 552 * 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 (685): * Single equations (assignments): 681 * 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 {(3,17,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003184/0.98, allocations: 1.806 MB / 0.5899 GB, free: 56.16 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007645/0.9808, allocations: 282.1 kB / 0.5902 GB, free: 55.88 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006552/0.9873, allocations: 3.338 MB / 0.5934 GB, free: 52.53 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.232e-05/0.9874, allocations: 21.08 kB / 0.5935 GB, free: 52.51 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.784e-05/0.9874, allocations: 7.984 kB / 0.5935 GB, free: 52.5 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-05/0.9874, allocations: 3.984 kB / 0.5935 GB, free: 52.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01368/1.001, allocations: 6.628 MB / 0.5999 GB, free: 45.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.447e-05/1.001, allocations: 3.562 kB / 0.5999 GB, free: 45.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00115/1.002, allocations: 243.7 kB / 0.6002 GB, free: 45.62 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003467/1.006, allocations: 1.115 MB / 0.6013 GB, free: 44.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001925/1.006, allocations: 28 kB / 0.6013 GB, free: 44.47 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007254/1.013, allocations: 6 MB / 0.6072 GB, free: 38.38 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/1.013, allocations: 0 / 0.6072 GB, free: 38.38 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009096/1.022, allocations: 5.713 MB / 0.6127 GB, free: 32.63 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001191/1.023, allocations: 246 kB / 0.613 GB, free: 32.39 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003488/1.024, allocations: 24 kB / 0.613 GB, free: 32.37 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001269/1.025, allocations: 95.86 kB / 0.6131 GB, free: 32.27 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003084/1.025, allocations: 88.83 kB / 0.6132 GB, free: 32.19 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001263/1.025, allocations: 51.98 kB / 0.6132 GB, free: 32.14 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002652/1.028, allocations: 1.822 MB / 0.615 GB, free: 30.31 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/1.028, allocations: 0 / 0.615 GB, free: 30.31 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006103/1.034, allocations: 0.8978 MB / 0.6159 GB, free: 29.42 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (129): * Single equations (assignments): 125 * 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,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005916/1.035, allocations: 162.9 kB / 0.616 GB, free: 29.25 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008071/1.043, allocations: 4.622 MB / 0.6205 GB, free: 24.65 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/1.043, allocations: 0 / 0.6205 GB, free: 24.65 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002161/1.045, allocations: 1.441 MB / 0.622 GB, free: 23.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002483/1.048, allocations: 304.3 kB / 0.6222 GB, free: 22.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01582/1.063, allocations: 8.149 MB / 0.6302 GB, free: 14.71 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002723/1.066, allocations: 2.299 MB / 0.6324 GB, free: 12.38 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003714/1.07, allocations: 1.658 MB / 0.6341 GB, free: 10.71 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006207/1.07, allocations: 199.4 kB / 0.6343 GB, free: 10.52 MB / 446.1 MB Notification: Performance of SimCode: time 3.697e-06/1.07, allocations: 0 / 0.6343 GB, free: 10.52 MB / 446.1 MB Notification: Performance of Templates: time 0.07214/1.143, allocations: 33.74 MB / 0.6672 GB, free: 9.191 MB / 478.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.122344458010048]