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.001204/0.001204, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001703/0.002907, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0009607/0.0009607, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001242/0.002202, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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 0.9741/0.9741, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08465/1.059, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] 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 1.333e-06/1.333e-06, allocations: 0 / 244.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.726e-06/1.006e-05, allocations: 2.312 kB / 244.7 MB, free: 14.21 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.006919/0.006929, allocations: 9.869 MB / 254.6 MB, free: 4.297 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00535/0.01228, allocations: 3.943 MB / 258.5 MB, free: 348 kB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000698/0.01298, allocations: 67.69 kB / 258.6 MB, free: 280 kB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00199/0.01497, allocations: 2.121 MB / 260.7 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002344/0.01731, allocations: 1.676 MB / 262.4 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009248/0.01824, allocations: 0.6897 MB / 263.1 MB, free: 11.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002732/0.02097, allocations: 3.662 MB / 266.7 MB, free: 8.094 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001581/0.02255, allocations: 2.333 MB / 269.1 MB, free: 5.691 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001494/0.02404, allocations: 2.051 MB / 271.1 MB, free: 3.637 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001371/0.02541, allocations: 1.753 MB / 272.9 MB, free: 1.879 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002739/0.02569, allocations: 260 kB / 273.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001104/0.02679, allocations: 1.073 MB / 274.2 MB, free: 0.5508 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1088/0.1356, allocations: 1.482 MB / 275.7 MB, free: 6.773 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001675/0.1373, allocations: 0.8504 MB / 276.5 MB, free: 6.773 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004526/0.1418, allocations: 3.68 MB / 280.2 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.028e-05/0.1418, allocations: 1.828 kB / 280.2 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.1418, allocations: 0 / 280.2 MB, free: 6.5 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001074/0.1419, allocations: 0 / 280.2 MB, free: 6.5 MB / 266.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.005738/0.1476, allocations: 4.637 MB / 284.9 MB, free: 4.766 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.012e-05/0.1477, allocations: 9.094 kB / 284.9 MB, free: 4.766 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002772/0.1504, allocations: 1.019 MB / 285.9 MB, free: 4.754 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001534/0.152, allocations: 1.43 MB / 287.3 MB, free: 4.312 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.534e-05/0.1521, allocations: 202 kB / 287.5 MB, free: 4.305 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003083/0.1524, allocations: 269.4 kB / 287.8 MB, free: 4.301 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004931/0.1573, allocations: 4.692 MB / 292.5 MB, free: 2.402 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.07e-05/0.1574, allocations: 38.33 kB / 292.5 MB, free: 2.398 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000245/0.1576, allocations: 133.9 kB / 292.6 MB, free: 2.398 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001216/0.1588, allocations: 1.495 MB / 294.1 MB, free: 2.395 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003902/0.1627, allocations: 2.41 MB / 296.5 MB, free: 2.277 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01957/0.1823, allocations: 28.95 MB / 325.5 MB, free: 8.066 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003552/0.1858, allocations: 1.741 MB / 327.2 MB, free: 6.34 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000462/0.1863, allocations: 404.5 kB / 327.6 MB, free: 5.949 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004092/0.1904, allocations: 3.386 MB / 331 MB, free: 2.602 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.115e-05/0.1904, allocations: 54.59 kB / 331.1 MB, free: 2.543 MB / 298.7 MB Notification: Performance of pre-optimization done (n=135): time 2.916e-06/0.1904, allocations: 0 / 331.1 MB, free: 2.543 MB / 298.7 MB Notification: Performance of matching and sorting (n=145): time 0.01033/0.2008, allocations: 4.844 MB / 335.9 MB, free: 13.74 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.186e-05/0.2008, allocations: 148.7 kB / 336.1 MB, free: 13.57 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00208/0.2029, allocations: 2.784 MB / 338.8 MB, free: 11.27 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.655e-05/0.203, allocations: 48.52 kB / 338.9 MB, free: 11.22 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001134/0.2041, allocations: 2.79 MB / 341.7 MB, free: 8.578 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003509/0.2044, allocations: 0.5968 MB / 342.3 MB, free: 8.012 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008763/0.2053, allocations: 1.065 MB / 343.3 MB, free: 7.055 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.998e-05/0.2054, allocations: 301.1 kB / 343.6 MB, free: 6.758 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001006/0.2064, allocations: 0.6749 MB / 344.3 MB, free: 6.074 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002666/0.2091, allocations: 4.127 MB / 348.4 MB, free: 372 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004551/0.2136, allocations: 5.744 MB / 354.2 MB, free: 9.238 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.81e-05/0.2137, allocations: 36 kB / 354.2 MB, free: 9.203 MB / 330.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.004453/0.2181, allocations: 3.849 MB / 358.1 MB, free: 5.34 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.64e-05/0.2182, allocations: 60 kB / 358.1 MB, free: 5.281 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000141/0.2183, allocations: 140.9 kB / 358.3 MB, free: 5.145 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005662/0.2189, allocations: 295 kB / 358.6 MB, free: 4.855 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002285/0.2212, allocations: 1.419 MB / 360 MB, free: 3.434 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001419/0.2226, allocations: 1.931 MB / 361.9 MB, free: 1.418 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002076/0.2247, allocations: 251.7 kB / 362.1 MB, free: 1.172 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002779/0.2249, allocations: 300 kB / 362.4 MB, free: 0.8789 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.001336/0.2263, allocations: 0.5942 MB / 363 MB, free: 280 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002733/0.2265, allocations: 191.7 kB / 363.2 MB, free: 88 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001009/0.2276, allocations: 0.7401 MB / 364 MB, free: 15.34 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.849e-05/0.2276, allocations: 12 kB / 364 MB, free: 15.32 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.2276, allocations: 4.062 kB / 364 MB, free: 15.32 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.38e-05/0.2276, allocations: 15.97 kB / 364 MB, free: 15.3 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004136/0.2317, allocations: 3.34 MB / 367.3 MB, free: 12.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.592e-05/0.2317, allocations: 19.97 kB / 367.4 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005024/0.2323, allocations: 235.7 kB / 367.6 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002598/0.2325, allocations: 261.3 kB / 367.8 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005058/0.233, allocations: 288.2 kB / 368.1 MB, free: 11.53 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.018e-05/0.2331, allocations: 31.98 kB / 368.2 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001127/0.2342, allocations: 1.701 MB / 369.9 MB, free: 9.723 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.841e-06/0.2342, allocations: 8 kB / 369.9 MB, free: 9.715 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001447/0.2357, allocations: 1.681 MB / 371.5 MB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001635/0.2358, allocations: 35.98 kB / 371.6 MB, free: 7.93 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004898/0.2363, allocations: 28 kB / 371.6 MB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.2364, allocations: 108.3 kB / 371.7 MB, free: 7.793 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.173e-05/0.2365, allocations: 36 kB / 371.7 MB, free: 7.758 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008091/0.2373, allocations: 0.9824 MB / 372.7 MB, free: 6.895 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2373, allocations: 0 / 372.7 MB, free: 6.895 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002539/0.2398, allocations: 0.8514 MB / 373.6 MB, free: 6.043 MB / 346.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.0002918/0.2401, allocations: 172.2 kB / 373.7 MB, free: 5.867 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002323/0.2424, allocations: 2.417 MB / 376.2 MB, free: 3.508 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001685/0.2426, allocations: 104.1 kB / 376.3 MB, free: 3.395 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005426/0.2432, allocations: 0.5648 MB / 376.8 MB, free: 2.816 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00204/0.2452, allocations: 2.336 MB / 379.2 MB, free: 184 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009334/0.2545, allocations: 6.497 MB / 385.7 MB, free: 9.523 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008907/0.2554, allocations: 1.025 MB / 386.7 MB, free: 8.473 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0009696/0.2564, allocations: 448.1 kB / 387.1 MB, free: 8.031 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007574/0.2571, allocations: 465.2 kB / 387.6 MB, free: 7.578 MB / 362.7 MB Notification: Performance of SimCode: time 8.12e-07/0.2572, allocations: 0 / 387.6 MB, free: 7.578 MB / 362.7 MB Notification: Performance of Templates: time 0.03458/0.2917, allocations: 22.32 MB / 409.9 MB, free: 1.398 MB / 378.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1080071860924363]