Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.001518/0.001518, allocations: 85.91 kB / 22.22 MB, free: 2.285 MB / 18.57 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.001879/0.001879, allocations: 154.4 kB / 25.61 MB, free: 8.578 MB / 18.57 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 0.9275/0.9275, allocations: 177 MB / 205.9 MB, free: 4.453 MB / 186.7 MB " [Timeout remaining time 179] 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.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.frame_a.r_0.[0-9,]+.|body.v_0.[0-9,]+.|body.w_a.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.frame_a.r_0.[0-9,]+.|body.v_0.[0-9,]+.|body.w_a.[0-9,]+.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 274.1 MB, free: 4.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.227e-05/2.394e-05, allocations: 2.312 kB / 274.1 MB, free: 4.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.006433/0.006457, allocations: 7.05 MB / 281.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005088/0.01155, allocations: 3.148 MB / 284.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007677/0.01231, allocations: 39.81 kB / 284.4 MB, free: 10 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0017/0.01401, allocations: 1.094 MB / 285.5 MB, free: 8.906 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002319/0.01633, allocations: 1.427 MB / 286.9 MB, free: 7.473 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007313/0.01706, allocations: 494.9 kB / 287.4 MB, free: 6.988 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002726/0.01979, allocations: 3.026 MB / 290.4 MB, free: 3.957 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001986/0.02177, allocations: 1.632 MB / 292 MB, free: 2.297 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00136/0.02314, allocations: 1.321 MB / 293.3 MB, free: 0.9727 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001308/0.02444, allocations: 1.418 MB / 294.8 MB, free: 15.55 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000194/0.02464, allocations: 176 kB / 294.9 MB, free: 15.38 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001206/0.02584, allocations: 0.9631 MB / 295.9 MB, free: 14.41 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006826/0.02653, allocations: 1.176 MB / 297.1 MB, free: 13.23 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006176/0.02714, allocations: 0.7203 MB / 297.8 MB, free: 12.51 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003113/0.03026, allocations: 2.962 MB / 300.8 MB, free: 9.539 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.03026, allocations: 0 / 300.8 MB, free: 9.539 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.03026, allocations: 4 kB / 300.8 MB, free: 9.535 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.228e-05/0.03031, allocations: 0 / 300.8 MB, free: 9.535 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.003396/0.0337, allocations: 3.175 MB / 303.9 MB, free: 6.309 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.03374, allocations: 12.03 kB / 303.9 MB, free: 6.297 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00305/0.03679, allocations: 1.224 MB / 305.2 MB, free: 5.07 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001241/0.03803, allocations: 1.12 MB / 306.3 MB, free: 3.922 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.113e-05/0.03811, allocations: 135.4 kB / 306.4 MB, free: 3.789 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006617/0.03877, allocations: 251.6 kB / 306.7 MB, free: 3.543 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004126/0.04289, allocations: 3.732 MB / 310.4 MB, free: 15.17 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.242e-05/0.04295, allocations: 31.7 kB / 310.4 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001742/0.04312, allocations: 87.89 kB / 310.5 MB, free: 15.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001079/0.0442, allocations: 1.191 MB / 311.7 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003659/0.04786, allocations: 1.991 MB / 313.7 MB, free: 11.87 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02183/0.06969, allocations: 28.2 MB / 341.9 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004293/0.07398, allocations: 1.292 MB / 343.2 MB, free: 13.39 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004955/0.07448, allocations: 312.4 kB / 343.5 MB, free: 13.07 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003529/0.07801, allocations: 2.434 MB / 345.9 MB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.592e-05/0.07804, allocations: 49.83 kB / 346 MB, free: 10.54 MB / 330.7 MB Notification: Performance of pre-optimization done (n=112): time 3.417e-06/0.07805, allocations: 4 kB / 346 MB, free: 10.54 MB / 330.7 MB Notification: Performance of matching and sorting (n=125): time 0.0145/0.09255, allocations: 4.728 MB / 350.7 MB, free: 5.746 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000983/0.09353, allocations: 2 MB / 352.7 MB, free: 3.582 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002526/0.09606, allocations: 2.434 MB / 355.1 MB, free: 1.105 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.359e-05/0.09615, allocations: 41.7 kB / 355.2 MB, free: 1.059 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1284/0.2245, allocations: 2.306 MB / 357.5 MB, free: 78.91 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008981/0.2254, allocations: 0.5505 MB / 358 MB, free: 78.66 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001487/0.2269, allocations: 1.012 MB / 359.1 MB, free: 78.54 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.2271, allocations: 0.5297 MB / 359.6 MB, free: 78.06 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001175/0.2283, allocations: 0.4938 MB / 360.1 MB, free: 78.05 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002573/0.2309, allocations: 4.68 MB / 364.8 MB, free: 72.67 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003798/0.2347, allocations: 5.701 MB / 370.5 MB, free: 67.27 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.458e-05/0.2347, allocations: 32.11 kB / 370.5 MB, free: 67.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.008372/0.2431, allocations: 4.325 MB / 374.8 MB, free: 66.32 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.776e-05/0.2432, allocations: 45.97 kB / 374.9 MB, free: 66.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00411/0.2473, allocations: 1.181 MB / 376 MB, free: 66.23 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00456/0.2518, allocations: 0.8632 MB / 376.9 MB, free: 66.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001808/0.2536, allocations: 0.9726 MB / 377.9 MB, free: 66.08 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004583/0.2582, allocations: 5.214 MB / 383.1 MB, free: 62.01 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002281/0.2605, allocations: 215.8 kB / 383.3 MB, free: 61.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002865/0.2608, allocations: 251.2 kB / 383.5 MB, free: 61.58 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 452 * Number of states: 0 () * Number of discrete variables: 21 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[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],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (547): * Single equations (assignments): 539 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008102/0.2616, allocations: 0.5255 MB / 384.1 MB, free: 61.12 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002845/0.2619, allocations: 250.5 kB / 384.3 MB, free: 60.87 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002451/0.2621, allocations: 264.4 kB / 384.6 MB, free: 60.64 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00201/0.2641, allocations: 0.959 MB / 385.5 MB, free: 59.98 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.2641, allocations: 4 kB / 385.5 MB, free: 59.98 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.2642, allocations: 3 kB / 385.5 MB, free: 59.98 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005083/0.2692, allocations: 3.707 MB / 389.2 MB, free: 56.9 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.2692, allocations: 0 / 389.2 MB, free: 56.9 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003957/0.2696, allocations: 147.8 kB / 389.4 MB, free: 56.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001957/0.2716, allocations: 0.663 MB / 390.1 MB, free: 56.09 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.876e-05/0.2717, allocations: 31.97 kB / 390.1 MB, free: 56.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003231/0.2749, allocations: 4.926 MB / 395 MB, free: 50.96 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0004079/0.2753, allocations: 1.868 MB / 396.9 MB, free: 48.99 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002887/0.2782, allocations: 2.192 MB / 399.1 MB, free: 46.77 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003159/0.2785, allocations: 201.5 kB / 399.3 MB, free: 46.58 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001689/0.2787, allocations: 27.98 kB / 399.3 MB, free: 46.55 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005285/0.2792, allocations: 23.94 kB / 399.3 MB, free: 46.53 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001621/0.2794, allocations: 87.47 kB / 399.4 MB, free: 46.45 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.759e-05/0.2794, allocations: 31.98 kB / 399.4 MB, free: 46.41 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007675/0.2802, allocations: 0.9659 MB / 400.4 MB, free: 45.52 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.2802, allocations: 0 / 400.4 MB, free: 45.52 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002731/0.2829, allocations: 0.8495 MB / 401.3 MB, free: 44.68 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],body.w_a[1],body.w_a[2],body.w_a[3]) * 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 (83): * Single equations (assignments): 77 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(4,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002923/0.2832, allocations: 173.5 kB / 401.4 MB, free: 44.51 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003135/0.2863, allocations: 2.584 MB / 404 MB, free: 41.96 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.2864, allocations: 0 / 404 MB, free: 41.96 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001082/0.2874, allocations: 0.9652 MB / 405 MB, free: 40.97 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009439/0.2884, allocations: 242.8 kB / 405.2 MB, free: 40.73 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005723/0.2941, allocations: 5.199 MB / 410.4 MB, free: 35.5 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006651/0.2948, allocations: 0.7917 MB / 411.2 MB, free: 34.68 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008456/0.2956, allocations: 329.9 kB / 411.5 MB, free: 34.35 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004659/0.2961, allocations: 410.1 kB / 411.9 MB, free: 33.95 MB / 330.7 MB Notification: Performance of SimCode: time 1.743e-06/0.2961, allocations: 0 / 411.9 MB, free: 33.95 MB / 330.7 MB Notification: Performance of Templates: time 0.03595/0.332, allocations: 31.41 MB / 443.3 MB, free: 2.852 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.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.7304176473990083]