Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001035/0.001035, allocations: 80.92 kB / 22.29 MB, free: 2.207 MB / 18.57 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.001036/0.001036, allocations: 167.6 kB / 25.7 MB, free: 8.438 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8997/0.8997, allocations: 158.6 MB / 187.6 MB, free: 2.781 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.443e-06/1.443e-06, allocations: 0 / 251.5 MB, free: 7.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.91e-05/2.054e-05, allocations: 6.25 kB / 251.5 MB, free: 7.254 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.007841/0.007862, allocations: 9.789 MB / 261.3 MB, free: 13.42 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007191/0.01505, allocations: 3.897 MB / 265.2 MB, free: 9.508 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001494/0.01655, allocations: 59.75 kB / 265.3 MB, free: 9.449 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002678/0.01922, allocations: 2.23 MB / 267.5 MB, free: 7.211 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003204/0.02243, allocations: 1.773 MB / 269.3 MB, free: 5.43 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001095/0.02352, allocations: 0.7483 MB / 270 MB, free: 4.68 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003337/0.02686, allocations: 3.738 MB / 273.8 MB, free: 0.9336 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002529/0.02939, allocations: 2.626 MB / 276.4 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002377/0.03177, allocations: 2.007 MB / 278.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002025/0.03379, allocations: 1.777 MB / 280.2 MB, free: 10.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005111/0.0343, allocations: 260 kB / 280.4 MB, free: 10.19 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001358/0.03566, allocations: 1.034 MB / 281.5 MB, free: 9.156 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001115/0.03677, allocations: 1.691 MB / 283.2 MB, free: 7.461 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001182/0.03796, allocations: 1.079 MB / 284.2 MB, free: 6.379 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004011/0.04197, allocations: 4.024 MB / 288.3 MB, free: 2.34 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.04197, allocations: 0 / 288.3 MB, free: 2.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.04197, allocations: 0 / 288.3 MB, free: 2.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001277/0.0421, allocations: 0 / 288.3 MB, free: 2.34 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.004422/0.04652, allocations: 3.861 MB / 292.1 MB, free: 14.43 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.615e-05/0.04656, allocations: 15.98 kB / 292.1 MB, free: 14.41 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002402/0.04896, allocations: 1.019 MB / 293.2 MB, free: 13.39 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001616/0.05058, allocations: 1.441 MB / 294.6 MB, free: 11.92 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001077/0.05068, allocations: 213.1 kB / 294.8 MB, free: 11.71 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003058/0.05099, allocations: 267.9 kB / 295.1 MB, free: 11.45 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005295/0.05629, allocations: 4.67 MB / 299.7 MB, free: 6.086 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.393e-05/0.05635, allocations: 47.61 kB / 299.8 MB, free: 6.039 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002202/0.05657, allocations: 131.9 kB / 299.9 MB, free: 5.91 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001362/0.05793, allocations: 1.579 MB / 301.5 MB, free: 4.324 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004287/0.06222, allocations: 2.397 MB / 303.9 MB, free: 1.91 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02148/0.0837, allocations: 28.9 MB / 332.8 MB, free: 3.926 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003533/0.08723, allocations: 1.748 MB / 334.5 MB, free: 2.137 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000479/0.08771, allocations: 406 kB / 334.9 MB, free: 1.73 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004536/0.09225, allocations: 3.396 MB / 338.3 MB, free: 14.3 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.112e-05/0.09228, allocations: 43.22 kB / 338.4 MB, free: 14.25 MB / 330.7 MB Notification: Performance of pre-optimization done (n=135): time 3.496e-06/0.09228, allocations: 4 kB / 338.4 MB, free: 14.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=145): time 0.01056/0.1028, allocations: 4.783 MB / 343.2 MB, free: 9.398 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.296e-05/0.1029, allocations: 149.5 kB / 343.3 MB, free: 9.223 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002396/0.1053, allocations: 2.802 MB / 346.1 MB, free: 6.395 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.371e-05/0.1054, allocations: 41.7 kB / 346.1 MB, free: 6.348 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001095/0.1065, allocations: 2.806 MB / 348.9 MB, free: 3.516 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000342/0.1068, allocations: 0.5931 MB / 349.5 MB, free: 2.918 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000796/0.1076, allocations: 1.065 MB / 350.6 MB, free: 1.84 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.512e-05/0.1077, allocations: 301.1 kB / 350.9 MB, free: 1.543 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00115/0.1088, allocations: 0.6749 MB / 351.6 MB, free: 0.8594 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1165/0.2253, allocations: 4.122 MB / 355.7 MB, free: 90.32 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003724/0.229, allocations: 5.317 MB / 361 MB, free: 85.47 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.228e-05/0.2291, allocations: 38.38 kB / 361.1 MB, free: 85.47 MB / 330.7 MB Notification: Performance of matching and sorting (n=736) (initialization): time 0.004769/0.2338, allocations: 3.863 MB / 364.9 MB, free: 84.46 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.86e-05/0.2339, allocations: 62.44 kB / 365 MB, free: 84.46 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.274e-05/0.234, allocations: 125.8 kB / 365.1 MB, free: 84.46 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000537/0.2345, allocations: 304.8 kB / 365.4 MB, free: 84.44 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001969/0.2365, allocations: 1.265 MB / 366.7 MB, free: 84.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001267/0.2378, allocations: 1.924 MB / 368.6 MB, free: 82.88 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002182/0.2399, allocations: 253.5 kB / 368.8 MB, free: 82.87 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002301/0.2402, allocations: 305.9 kB / 369.1 MB, free: 82.87 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.0009138/0.2411, allocations: 0.5898 MB / 369.7 MB, free: 82.62 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002361/0.2413, allocations: 182 kB / 369.9 MB, free: 82.62 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009064/0.2422, allocations: 0.7579 MB / 370.7 MB, free: 82.52 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.615e-05/0.2422, allocations: 18.38 kB / 370.7 MB, free: 82.52 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.2422, allocations: 3.188 kB / 370.7 MB, free: 82.52 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.946e-06/0.2423, allocations: 6.141 kB / 370.7 MB, free: 82.52 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003621/0.2459, allocations: 3.368 MB / 374.1 MB, free: 80.95 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.2459, allocations: 12.78 kB / 374.1 MB, free: 80.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004093/0.2463, allocations: 202.5 kB / 374.3 MB, free: 80.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004436/0.2467, allocations: 287.1 kB / 374.5 MB, free: 80.6 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.271e-05/0.2468, allocations: 35.5 kB / 374.6 MB, free: 80.58 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008972/0.2477, allocations: 1.685 MB / 376.3 MB, free: 78.99 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.2477, allocations: 15.88 kB / 376.3 MB, free: 78.98 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001181/0.2489, allocations: 1.675 MB / 378 MB, free: 77.49 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003727/0.2492, allocations: 349.4 kB / 378.3 MB, free: 77.39 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000179/0.2494, allocations: 29.38 kB / 378.3 MB, free: 77.38 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004768/0.2499, allocations: 32.94 kB / 378.4 MB, free: 77.36 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.235e-05/0.25, allocations: 105.2 kB / 378.5 MB, free: 77.31 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.856e-05/0.25, allocations: 41.16 kB / 378.5 MB, free: 77.29 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006766/0.2507, allocations: 0.9901 MB / 379.5 MB, free: 76.65 MB / 330.7 MB Notification: Performance of sort global known variables: time 3e-08/0.2507, allocations: 0 / 379.5 MB, free: 76.65 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002767/0.2535, allocations: 0.8844 MB / 380.4 MB, free: 75.88 MB / 330.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.0002713/0.2538, allocations: 187.8 kB / 380.6 MB, free: 75.74 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002308/0.2561, allocations: 2.298 MB / 382.9 MB, free: 73.78 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001268/0.2562, allocations: 92.16 kB / 382.9 MB, free: 73.68 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004162/0.2566, allocations: 0.4951 MB / 383.4 MB, free: 73.21 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001322/0.2579, allocations: 0.4957 MB / 383.9 MB, free: 72.74 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006636/0.2646, allocations: 6.332 MB / 390.3 MB, free: 66.34 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007706/0.2653, allocations: 1.028 MB / 391.3 MB, free: 65.29 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.00117/0.2665, allocations: 455.5 kB / 391.7 MB, free: 64.84 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005795/0.2671, allocations: 477.2 kB / 392.2 MB, free: 64.37 MB / 330.7 MB Notification: Performance of SimCode: time 2.815e-06/0.2671, allocations: 0 / 392.2 MB, free: 64.37 MB / 330.7 MB Notification: Performance of Templates: time 0.0336/0.3007, allocations: 24.05 MB / 416.3 MB, free: 40.44 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PendulumWithSpringDamper/PendulumWithSpringDamper.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.5496222809888422]