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.001349/0.001349, allocations: 79.73 kB / 21.25 MB, free: 396 kB / 14.72 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.001429/0.001429, allocations: 164.3 kB / 24.5 MB, free: 3.453 MB / 14.72 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 1.508/1.508, allocations: 177.1 MB / 204.7 MB, free: 9.02 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001935/0.001935, allocations: 66.09 kB / 325.5 MB, free: 436 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09473/0.09666, allocations: 53.39 MB / 378.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.01102/0.1077, allocations: 9.044 MB / 388 MB, free: 6.578 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007085/0.1148, allocations: 3.688 MB / 391.6 MB, free: 2.879 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007522/0.1155, allocations: 63.69 kB / 391.7 MB, free: 2.816 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003746/0.1193, allocations: 2.024 MB / 393.7 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003368/0.1226, allocations: 1.658 MB / 395.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001379/0.124, allocations: 0.694 MB / 396.1 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004052/0.1281, allocations: 3.389 MB / 399.5 MB, free: 11.03 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002541/0.1306, allocations: 2.207 MB / 401.7 MB, free: 8.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001554/0.1322, allocations: 1.273 MB / 403 MB, free: 7.492 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002391/0.1345, allocations: 1.795 MB / 404.7 MB, free: 5.691 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004641/0.135, allocations: 264 kB / 405 MB, free: 5.434 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00186/0.1369, allocations: 1.006 MB / 406 MB, free: 4.426 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001579/0.1384, allocations: 1.601 MB / 407.6 MB, free: 2.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001554/0.14, allocations: 1.359 MB / 409 MB, free: 1.453 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007039/0.147, allocations: 5.929 MB / 414.9 MB, free: 11.5 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.147, allocations: 0 / 414.9 MB, free: 11.5 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.147, allocations: 0 / 414.9 MB, free: 11.5 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.461e-05/0.1471, allocations: 0 / 414.9 MB, free: 11.5 MB / 382.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.007305/0.1544, allocations: 4.153 MB / 419.1 MB, free: 7.293 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/0.1545, allocations: 15.98 kB / 419.1 MB, free: 7.277 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007161/0.1616, allocations: 1.972 MB / 421 MB, free: 5.301 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004502/0.1661, allocations: 1.826 MB / 422.9 MB, free: 3.434 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001941/0.1663, allocations: 205.2 kB / 423.1 MB, free: 3.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005346/0.1669, allocations: 275.8 kB / 423.3 MB, free: 2.961 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01956/0.1864, allocations: 10.06 MB / 433.4 MB, free: 8.211 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001081/0.1865, allocations: 39.64 kB / 433.4 MB, free: 8.172 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003544/0.1869, allocations: 131.9 kB / 433.6 MB, free: 8.043 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003329/0.1902, allocations: 1.86 MB / 435.4 MB, free: 6.184 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01856/0.2088, allocations: 8.544 MB / 444 MB, free: 13.63 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.238/0.4468, allocations: 34.73 MB / 478.7 MB, free: 59.83 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009423/0.4562, allocations: 3.218 MB / 481.9 MB, free: 59.73 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002026/0.4582, allocations: 1.691 MB / 483.6 MB, free: 59.7 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009098/0.4673, allocations: 6.251 MB / 489.8 MB, free: 57.57 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.661e-05/0.4673, allocations: 54.75 kB / 489.9 MB, free: 57.52 MB / 430.1 MB Notification: Performance of pre-optimization done (n=150): time 3.607e-06/0.4673, allocations: 0 / 489.9 MB, free: 57.52 MB / 430.1 MB Notification: Performance of matching and sorting (n=166): time 0.04525/0.5126, allocations: 17.99 MB / 0.496 GB, free: 48.52 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.489e-05/0.5126, allocations: 145.5 kB / 0.4961 GB, free: 48.35 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00293/0.5155, allocations: 3.23 MB / 0.4993 GB, free: 45.25 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.427e-05/0.5156, allocations: 45.7 kB / 0.4993 GB, free: 45.2 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008753/0.5165, allocations: 2.87 MB / 0.5021 GB, free: 42.43 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003128/0.5168, allocations: 0.674 MB / 0.5028 GB, free: 41.76 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00099/0.5178, allocations: 1.131 MB / 0.5039 GB, free: 40.62 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.101e-05/0.5179, allocations: 301.1 kB / 0.5042 GB, free: 40.33 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002302/0.5202, allocations: 1.971 MB / 0.5061 GB, free: 38.35 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003194/0.5233, allocations: 5.404 MB / 0.5114 GB, free: 31.29 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005838/0.5292, allocations: 7.969 MB / 0.5192 GB, free: 21.77 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.973e-05/0.5292, allocations: 36 kB / 0.5192 GB, free: 21.74 MB / 430.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01128/0.5405, allocations: 8.177 MB / 0.5272 GB, free: 13.55 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.256e-05/0.5406, allocations: 60.03 kB / 0.5272 GB, free: 13.5 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.522e-05/0.5406, allocations: 124 kB / 0.5274 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003517/0.5441, allocations: 1.299 MB / 0.5286 GB, free: 12.07 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003063/0.5472, allocations: 1.277 MB / 0.5299 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006992/0.5542, allocations: 6.354 MB / 0.5361 GB, free: 4.34 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003215/0.5574, allocations: 323.7 kB / 0.5364 GB, free: 4.023 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003416/0.5578, allocations: 347.3 kB / 0.5367 GB, free: 3.688 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.001938/0.5597, allocations: 1.806 MB / 0.5385 GB, free: 1.867 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003433/0.56, allocations: 283.8 kB / 0.5388 GB, free: 1.59 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006946/0.567, allocations: 3.338 MB / 0.542 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.332e-05/0.567, allocations: 16 kB / 0.542 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.315e-05/0.567, allocations: 11.98 kB / 0.542 GB, free: 14.22 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.489e-05/0.567, allocations: 3.984 kB / 0.542 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01379/0.5808, allocations: 6.633 MB / 0.5485 GB, free: 7.543 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.5808, allocations: 0 / 0.5485 GB, free: 7.543 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001157/0.582, allocations: 251.6 kB / 0.5488 GB, free: 7.297 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003949/0.5859, allocations: 1.116 MB / 0.5499 GB, free: 6.176 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001154/0.5861, allocations: 31.2 kB / 0.5499 GB, free: 6.148 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009738/0.5958, allocations: 5.986 MB / 0.5557 GB, free: 72 kB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.5958, allocations: 0 / 0.5557 GB, free: 72 kB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01039/0.6062, allocations: 5.726 MB / 0.5613 GB, free: 10.32 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005356/0.6067, allocations: 242 kB / 0.5616 GB, free: 10.08 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002582/0.607, allocations: 32 kB / 0.5616 GB, free: 10.05 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001228/0.6082, allocations: 99.22 kB / 0.5617 GB, free: 9.953 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002423/0.6085, allocations: 104.7 kB / 0.5618 GB, free: 9.852 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001252/0.6086, allocations: 44.86 kB / 0.5618 GB, free: 9.809 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002707/0.6113, allocations: 1.819 MB / 0.5636 GB, free: 7.988 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6113, allocations: 0 / 0.5636 GB, free: 7.988 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003685/0.615, allocations: 0.8983 MB / 0.5645 GB, free: 7.09 MB / 462.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.0003389/0.6153, allocations: 158.3 kB / 0.5646 GB, free: 6.93 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.007488/0.6228, allocations: 4.637 MB / 0.5692 GB, free: 2.309 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.6228, allocations: 0 / 0.5692 GB, free: 2.309 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002454/0.6253, allocations: 1.445 MB / 0.5706 GB, free: 0.8555 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001536/0.6268, allocations: 308.5 kB / 0.5709 GB, free: 0.5703 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01282/0.6396, allocations: 8.141 MB / 0.5788 GB, free: 8.391 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003017/0.6426, allocations: 2.3 MB / 0.5811 GB, free: 6.055 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003468/0.6461, allocations: 1.666 MB / 0.5827 GB, free: 4.383 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000492/0.6466, allocations: 196.5 kB / 0.5829 GB, free: 4.191 MB / 478.1 MB Notification: Performance of SimCode: time 7.21e-07/0.6466, allocations: 0 / 0.5829 GB, free: 4.191 MB / 478.1 MB Notification: Performance of Templates: time 0.05491/0.7015, allocations: 27.69 MB / 0.6099 GB, free: 8.91 MB / 0.4981 GB " [Timeout remaining time 659] 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=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.082642774912529]