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.001383/0.001383, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001472/0.001472, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.538/1.538, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.00155/0.00155, allocations: 48.06 kB / 373.5 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09578/0.09733, allocations: 53.33 MB / 426.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.2164/0.3138, allocations: 10.3 MB / 437.1 MB, free: 5.812 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00722/0.321, allocations: 3.893 MB / 441 MB, free: 3.879 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00163/0.3226, allocations: 62.03 kB / 441.1 MB, free: 3.863 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004066/0.3267, allocations: 2.107 MB / 443.2 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00511/0.3318, allocations: 1.638 MB / 444.8 MB, free: 2.184 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001969/0.3337, allocations: 0.6955 MB / 445.5 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005501/0.3393, allocations: 3.384 MB / 448.9 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003469/0.3427, allocations: 2.299 MB / 451.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002273/0.345, allocations: 1.277 MB / 452.5 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002622/0.3476, allocations: 1.895 MB / 454.4 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005431/0.3482, allocations: 262.9 kB / 454.6 MB, free: 14.33 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002241/0.3504, allocations: 1.141 MB / 455.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001682/0.3521, allocations: 1.609 MB / 457.4 MB, free: 12.9 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002034/0.3541, allocations: 1.842 MB / 459.2 MB, free: 11.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007673/0.3618, allocations: 5.912 MB / 465.1 MB, free: 7.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.3618, allocations: 9.172 kB / 465.1 MB, free: 7.422 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3618, allocations: 0 / 465.1 MB, free: 7.422 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.00013/0.3619, allocations: 0 / 465.1 MB, free: 7.422 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.009688/0.3716, allocations: 4.209 MB / 469.3 MB, free: 4.438 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.3717, allocations: 13.03 kB / 469.4 MB, free: 4.434 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007389/0.379, allocations: 1.875 MB / 471.2 MB, free: 3.441 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004348/0.3834, allocations: 1.898 MB / 473.1 MB, free: 1.98 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000201/0.3836, allocations: 209.2 kB / 473.3 MB, free: 1.773 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000587/0.3842, allocations: 267.8 kB / 473.6 MB, free: 1.512 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02046/0.4046, allocations: 10 MB / 483.6 MB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.692e-05/0.4047, allocations: 43.64 kB / 483.6 MB, free: 6.785 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004088/0.4051, allocations: 135.9 kB / 483.8 MB, free: 6.652 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003571/0.4087, allocations: 1.856 MB / 485.6 MB, free: 4.789 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02052/0.4292, allocations: 8.562 MB / 494.2 MB, free: 12.23 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05235/0.4816, allocations: 36.75 MB / 0.5185 GB, free: 6.469 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01115/0.4927, allocations: 3.786 MB / 0.5222 GB, free: 2.492 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002726/0.4955, allocations: 1.697 MB / 0.5238 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01236/0.5078, allocations: 7.617 MB / 0.5313 GB, free: 8.867 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.082e-05/0.5079, allocations: 51.55 kB / 0.5313 GB, free: 8.809 MB / 446.1 MB Notification: Performance of pre-optimization done (n=150): time 5.41e-06/0.5079, allocations: 0 / 0.5313 GB, free: 8.809 MB / 446.1 MB Notification: Performance of matching and sorting (n=166): time 0.06164/0.5695, allocations: 17.73 MB / 0.5487 GB, free: 6.984 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001019/0.5696, allocations: 149.5 kB / 0.5488 GB, free: 6.809 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006076/0.5757, allocations: 3.466 MB / 0.5522 GB, free: 3.34 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002564/0.576, allocations: 53.7 kB / 0.5522 GB, free: 3.281 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0024/0.5784, allocations: 2.846 MB / 0.555 GB, free: 420 kB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001012/0.5794, allocations: 0.671 MB / 0.5557 GB, free: 15.73 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001908/0.5813, allocations: 1.128 MB / 0.5568 GB, free: 14.6 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.5814, allocations: 301.1 kB / 0.5571 GB, free: 14.3 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003416/0.5848, allocations: 1.971 MB / 0.559 GB, free: 12.32 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006208/0.591, allocations: 5.385 MB / 0.5642 GB, free: 5.223 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01074/0.6018, allocations: 7.956 MB / 0.572 GB, free: 11.57 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001122/0.6019, allocations: 40 kB / 0.572 GB, free: 11.53 MB / 494.1 MB Notification: Performance of matching and sorting (n=728) (initialization): time 0.01767/0.6195, allocations: 8.199 MB / 0.5801 GB, free: 3.324 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001212/0.6197, allocations: 56 kB / 0.5801 GB, free: 3.27 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002111/0.6199, allocations: 124.8 kB / 0.5802 GB, free: 3.148 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004606/0.6245, allocations: 1.3 MB / 0.5815 GB, free: 1.844 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004551/0.629, allocations: 1.267 MB / 0.5827 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01062/0.6397, allocations: 6.545 MB / 0.5891 GB, free: 9.891 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004451/0.6441, allocations: 307.6 kB / 0.5894 GB, free: 9.59 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001029/0.6451, allocations: 340 kB / 0.5897 GB, free: 9.258 MB / 0.4981 GB 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.00412/0.6493, allocations: 1.813 MB / 0.5915 GB, free: 7.434 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000819/0.6501, allocations: 317.8 kB / 0.5918 GB, free: 7.121 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009047/0.6591, allocations: 3.377 MB / 0.5951 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-05/0.6592, allocations: 20 kB / 0.5951 GB, free: 3.711 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.6592, allocations: 4 kB / 0.5951 GB, free: 3.707 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.199e-05/0.6592, allocations: 7.969 kB / 0.5951 GB, free: 3.699 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01796/0.6772, allocations: 7.571 MB / 0.6025 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.239e-05/0.6772, allocations: 0 / 0.6025 GB, free: 12.04 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001293/0.6785, allocations: 243.7 kB / 0.6028 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004302/0.6828, allocations: 1.124 MB / 0.6039 GB, free: 10.67 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001814/0.6829, allocations: 29.73 kB / 0.6039 GB, free: 10.64 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01025/0.6932, allocations: 6.178 MB / 0.6099 GB, free: 4.328 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.648e-06/0.6932, allocations: 3.938 kB / 0.6099 GB, free: 4.324 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2233/0.9165, allocations: 5.742 MB / 0.6155 GB, free: 163.8 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007836/0.9172, allocations: 368.8 kB / 0.6159 GB, free: 163.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007709/0.918, allocations: 21.81 kB / 0.6159 GB, free: 163.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001777/0.9198, allocations: 97.34 kB / 0.616 GB, free: 163.7 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003559/0.9202, allocations: 88.31 kB / 0.6161 GB, free: 163.7 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001261/0.9203, allocations: 47.17 kB / 0.6161 GB, free: 163.7 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003134/0.9234, allocations: 2.141 MB / 0.6182 GB, free: 163.6 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9234, allocations: 0.75 kB / 0.6182 GB, free: 163.6 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004191/0.9276, allocations: 0.8966 MB / 0.6191 GB, free: 163.6 MB / 0.5137 GB 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.0003781/0.928, allocations: 164.7 kB / 0.6193 GB, free: 163.5 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007414/0.9354, allocations: 4.639 MB / 0.6238 GB, free: 162.2 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.96e-06/0.9354, allocations: 1.031 kB / 0.6238 GB, free: 162.2 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.002314/0.9377, allocations: 1.444 MB / 0.6252 GB, free: 161.7 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002227/0.9399, allocations: 352.9 kB / 0.6255 GB, free: 161.5 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01506/0.955, allocations: 8.131 MB / 0.6335 GB, free: 158.2 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004242/0.9592, allocations: 2.852 MB / 0.6363 GB, free: 157 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004018/0.9633, allocations: 1.694 MB / 0.6379 GB, free: 156.9 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007551/0.964, allocations: 217.5 kB / 0.6381 GB, free: 156.9 MB / 0.5137 GB Notification: Performance of SimCode: time 1.352e-06/0.964, allocations: 5.25 kB / 0.6381 GB, free: 156.9 MB / 0.5137 GB Notification: Performance of Templates: time 0.05536/1.019, allocations: 31.5 MB / 0.6689 GB, free: 135.4 MB / 0.5137 GB " [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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","/var/lib/jenkins/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: 6.768235117197037]