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.001306/0.001306, allocations: 76.05 kB / 21.24 MB, free: 400 kB / 14.72 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.001418/0.001418, allocations: 156.9 kB / 24.48 MB, free: 3.465 MB / 14.72 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.435/1.435, allocations: 173.4 MB / 201.1 MB, free: 12.7 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001728/0.001728, allocations: 47.78 kB / 319.4 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09148/0.09321, allocations: 52.16 MB / 371.6 MB, free: 7.359 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01241/0.1056, allocations: 9.062 MB / 380.6 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007872/0.1135, allocations: 3.68 MB / 384.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001496/0.115, allocations: 63.69 kB / 384.4 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00441/0.1194, allocations: 2.032 MB / 386.4 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004408/0.1238, allocations: 1.681 MB / 388.1 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00175/0.1256, allocations: 0.6979 MB / 388.8 MB, free: 6.074 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00473/0.1303, allocations: 3.365 MB / 392.2 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003209/0.1335, allocations: 2.204 MB / 394.4 MB, free: 456 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002111/0.1356, allocations: 1.289 MB / 395.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002874/0.1385, allocations: 1.799 MB / 397.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000749/0.1392, allocations: 264 kB / 397.7 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002239/0.1415, allocations: 1.022 MB / 398.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001931/0.1434, allocations: 1.609 MB / 400.3 MB, free: 10.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00186/0.1453, allocations: 1.382 MB / 401.7 MB, free: 9.062 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006498/0.1518, allocations: 5.98 MB / 407.7 MB, free: 3.059 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1518, allocations: 0 / 407.7 MB, free: 3.059 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1518, allocations: 0 / 407.7 MB, free: 3.059 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.464e-05/0.1519, allocations: 3.938 kB / 407.7 MB, free: 3.055 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.007371/0.1592, allocations: 4.156 MB / 411.9 MB, free: 14.84 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.1593, allocations: 8.922 kB / 411.9 MB, free: 14.84 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007278/0.1665, allocations: 1.972 MB / 413.8 MB, free: 12.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004263/0.1708, allocations: 1.869 MB / 415.7 MB, free: 10.95 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000182/0.171, allocations: 205.2 kB / 415.9 MB, free: 10.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000586/0.1716, allocations: 271.8 kB / 416.2 MB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.018/0.1896, allocations: 10.04 MB / 426.2 MB, free: 15.76 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001022/0.1897, allocations: 35.69 kB / 426.2 MB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003745/0.19, allocations: 131.9 kB / 426.4 MB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003222/0.1933, allocations: 1.856 MB / 428.2 MB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01824/0.2115, allocations: 8.516 MB / 436.7 MB, free: 5.207 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04697/0.2585, allocations: 34.74 MB / 471.5 MB, free: 1.441 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2316/0.4901, allocations: 3.206 MB / 474.7 MB, free: 90.27 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004138/0.4942, allocations: 1.692 MB / 476.4 MB, free: 90.2 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01077/0.505, allocations: 6.217 MB / 482.6 MB, free: 87.61 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.302e-05/0.505, allocations: 59.34 kB / 482.7 MB, free: 87.56 MB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 4.388e-06/0.505, allocations: 0 / 482.7 MB, free: 87.56 MB / 430.1 MB Notification: Performance of matching and sorting (n=166): time 0.04608/0.5511, allocations: 17.89 MB / 0.4888 GB, free: 77.92 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.939e-05/0.5512, allocations: 145.5 kB / 0.489 GB, free: 77.75 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002994/0.5542, allocations: 3.232 MB / 0.4921 GB, free: 74.64 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002356/0.5544, allocations: 45.7 kB / 0.4922 GB, free: 74.59 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009722/0.5554, allocations: 2.878 MB / 0.495 GB, free: 71.8 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004184/0.5558, allocations: 0.6688 MB / 0.4956 GB, free: 71.14 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001018/0.5568, allocations: 1.127 MB / 0.4967 GB, free: 70.01 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 4.052e-05/0.5569, allocations: 305.1 kB / 0.497 GB, free: 69.71 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002196/0.5591, allocations: 1.959 MB / 0.4989 GB, free: 67.74 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003377/0.5624, allocations: 5.389 MB / 0.5042 GB, free: 60.64 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006582/0.569, allocations: 7.94 MB / 0.5119 GB, free: 51.01 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.404e-05/0.5691, allocations: 32 kB / 0.512 GB, free: 50.98 MB / 430.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01293/0.582, allocations: 8.166 MB / 0.5199 GB, free: 42.8 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.043e-05/0.5821, allocations: 61 kB / 0.52 GB, free: 42.75 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001279/0.5823, allocations: 120 kB / 0.5201 GB, free: 42.63 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003715/0.586, allocations: 1.296 MB / 0.5214 GB, free: 41.33 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003601/0.5896, allocations: 1.271 MB / 0.5226 GB, free: 40.06 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007406/0.597, allocations: 6.346 MB / 0.5288 GB, free: 33.61 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003908/0.6009, allocations: 323.6 kB / 0.5291 GB, free: 33.29 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000724/0.6016, allocations: 343.4 kB / 0.5295 GB, free: 32.96 MB / 430.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.00267/0.6043, allocations: 1.803 MB / 0.5312 GB, free: 31.14 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005945/0.6049, allocations: 301.9 kB / 0.5315 GB, free: 30.85 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006387/0.6113, allocations: 3.318 MB / 0.5347 GB, free: 27.52 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-05/0.6113, allocations: 16 kB / 0.5348 GB, free: 27.51 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.988e-06/0.6113, allocations: 4 kB / 0.5348 GB, free: 27.5 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.608e-05/0.6113, allocations: 7.984 kB / 0.5348 GB, free: 27.5 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01184/0.6231, allocations: 6.624 MB / 0.5412 GB, free: 20.84 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/0.6232, allocations: 4 kB / 0.5412 GB, free: 20.84 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001082/0.6242, allocations: 243.7 kB / 0.5415 GB, free: 20.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003421/0.6277, allocations: 1.119 MB / 0.5426 GB, free: 19.48 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001714/0.6278, allocations: 27.98 kB / 0.5426 GB, free: 19.45 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006916/0.6348, allocations: 5.98 MB / 0.5484 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/0.6348, allocations: 0 / 0.5484 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008365/0.6431, allocations: 5.674 MB / 0.554 GB, free: 7.672 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006306/0.6437, allocations: 250 kB / 0.5542 GB, free: 7.426 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004588/0.6442, allocations: 24 kB / 0.5542 GB, free: 7.402 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001418/0.6456, allocations: 103.7 kB / 0.5543 GB, free: 7.305 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002362/0.6459, allocations: 92.81 kB / 0.5544 GB, free: 7.215 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000119/0.646, allocations: 44 kB / 0.5545 GB, free: 7.172 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002369/0.6484, allocations: 1.826 MB / 0.5563 GB, free: 5.344 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6484, allocations: 0 / 0.5563 GB, free: 5.344 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00371/0.6521, allocations: 0.9139 MB / 0.5571 GB, free: 4.43 MB / 430.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.0003328/0.6524, allocations: 179.2 kB / 0.5573 GB, free: 4.25 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006057/0.6585, allocations: 4.607 MB / 0.5618 GB, free: 15.66 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.6585, allocations: 0 / 0.5618 GB, free: 15.66 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002486/0.6609, allocations: 1.429 MB / 0.5632 GB, free: 14.23 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001868/0.6628, allocations: 307.9 kB / 0.5635 GB, free: 13.94 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01499/0.6778, allocations: 8.135 MB / 0.5715 GB, free: 5.766 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003631/0.6814, allocations: 2.296 MB / 0.5737 GB, free: 3.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003937/0.6854, allocations: 1.666 MB / 0.5753 GB, free: 1.758 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006481/0.686, allocations: 204.5 kB / 0.5755 GB, free: 1.559 MB / 446.1 MB Notification: Performance of SimCode: time 6.51e-07/0.686, allocations: 3.938 kB / 0.5755 GB, free: 1.555 MB / 446.1 MB Notification: Performance of Templates: time 0.06049/0.7465, allocations: 27.81 MB / 0.6027 GB, free: 6.164 MB / 478.1 MB " [Timeout remaining time 659] 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 6.087043963954784]