Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.0009123/0.0009123, allocations: 80.8 kB / 22.29 MB, free: 2.203 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.0009551/0.0009551, allocations: 168 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.9038/0.9038, allocations: 158.6 MB / 187.6 MB, free: 2.777 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.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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.683e-06/1.683e-06, allocations: 0 / 251.5 MB, free: 7.258 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.78e-05/1.949e-05, allocations: 2.312 kB / 251.5 MB, free: 7.254 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.005396/0.005415, allocations: 7.077 MB / 258.6 MB, free: 140 kB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.004034/0.009449, allocations: 3.238 MB / 261.8 MB, free: 12.89 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003704/0.009819, allocations: 47.75 kB / 261.9 MB, free: 12.84 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001232/0.01105, allocations: 1.094 MB / 263 MB, free: 11.75 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001643/0.01269, allocations: 1.462 MB / 264.4 MB, free: 10.28 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005306/0.01322, allocations: 490.9 kB / 264.9 MB, free: 9.797 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001914/0.01514, allocations: 2.972 MB / 267.9 MB, free: 6.82 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001108/0.01625, allocations: 1.687 MB / 269.6 MB, free: 5.098 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001006/0.01725, allocations: 1.333 MB / 270.9 MB, free: 3.762 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001066/0.01832, allocations: 1.368 MB / 272.3 MB, free: 2.391 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001917/0.01851, allocations: 176 kB / 272.5 MB, free: 2.219 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009517/0.01946, allocations: 0.9671 MB / 273.4 MB, free: 1.25 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006328/0.02009, allocations: 1.192 MB / 274.6 MB, free: 56 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005353/0.02063, allocations: 0.7397 MB / 275.4 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002041/0.02267, allocations: 3.012 MB / 278.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.02267, allocations: 0 / 278.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.02268, allocations: 4 kB / 278.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.788e-05/0.0227, allocations: 0 / 278.4 MB, free: 12.29 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.002691/0.02539, allocations: 2.777 MB / 281.2 MB, free: 9.469 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.894e-05/0.02542, allocations: 11.98 kB / 281.2 MB, free: 9.457 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002281/0.0277, allocations: 0.8981 MB / 282.1 MB, free: 8.559 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001066/0.02877, allocations: 1.048 MB / 283.1 MB, free: 7.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.075e-05/0.02884, allocations: 139.4 kB / 283.2 MB, free: 7.344 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003969/0.02924, allocations: 251.6 kB / 283.5 MB, free: 7.098 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002956/0.03219, allocations: 3.267 MB / 286.8 MB, free: 3.355 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.901e-05/0.03224, allocations: 39.62 kB / 286.8 MB, free: 3.316 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001648/0.03241, allocations: 83.91 kB / 286.9 MB, free: 3.234 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001161/0.03357, allocations: 1.195 MB / 288.1 MB, free: 2.039 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00263/0.0362, allocations: 1.871 MB / 289.9 MB, free: 156 kB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0123/0.0485, allocations: 20.12 MB / 310.1 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001945/0.05045, allocations: 1.085 MB / 311.1 MB, free: 10.15 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002884/0.05073, allocations: 253 kB / 311.4 MB, free: 9.891 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002381/0.05311, allocations: 2.23 MB / 313.6 MB, free: 7.637 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.05315, allocations: 51.05 kB / 313.7 MB, free: 7.578 MB / 298.7 MB Notification: Performance of pre-optimization done (n=112): time 2.284e-06/0.05315, allocations: 0 / 313.7 MB, free: 7.578 MB / 298.7 MB Notification: Performance of matching and sorting (n=125): time 0.008274/0.06142, allocations: 3.976 MB / 317.7 MB, free: 3.539 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007571/0.06218, allocations: 1.475 MB / 319.1 MB, free: 1.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001642/0.06382, allocations: 2.184 MB / 321.3 MB, free: 15.7 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.264e-05/0.06389, allocations: 41.7 kB / 321.4 MB, free: 15.66 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009385/0.06483, allocations: 2.078 MB / 323.4 MB, free: 13.55 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003069/0.06514, allocations: 0.5271 MB / 324 MB, free: 13.02 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007098/0.06585, allocations: 0.8505 MB / 324.8 MB, free: 12.16 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.06597, allocations: 353.8 kB / 325.2 MB, free: 11.81 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009651/0.06693, allocations: 0.6283 MB / 325.8 MB, free: 11.17 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00199/0.06892, allocations: 3.312 MB / 329.1 MB, free: 6.449 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003064/0.07199, allocations: 4.402 MB / 333.5 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.396e-05/0.07201, allocations: 28 kB / 333.5 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.006528/0.07854, allocations: 3.749 MB / 337.3 MB, free: 12.85 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.589e-05/0.07858, allocations: 48 kB / 337.3 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003656/0.08224, allocations: 1.082 MB / 338.4 MB, free: 11.71 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004024/0.08626, allocations: 0.8562 MB / 339.3 MB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001495/0.08776, allocations: 0.9747 MB / 340.2 MB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004381/0.09214, allocations: 4.021 MB / 344.3 MB, free: 5.645 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001479/0.09362, allocations: 219.8 kB / 344.5 MB, free: 5.43 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000215/0.09383, allocations: 240 kB / 344.7 MB, free: 5.195 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.0007014/0.09454, allocations: 492.3 kB / 345.2 MB, free: 4.703 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002244/0.09476, allocations: 147.8 kB / 345.3 MB, free: 4.559 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002111/0.09687, allocations: 1.167 MB / 346.5 MB, free: 3.367 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001729/0.0986, allocations: 0.8431 MB / 347.3 MB, free: 2.504 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.595e-06/0.09861, allocations: 4 kB / 347.3 MB, free: 2.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.09862, allocations: 11.91 kB / 347.4 MB, free: 2.488 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1048/0.2034, allocations: 3.194 MB / 350.5 MB, free: 91.71 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.25e-05/0.2034, allocations: 1.156 kB / 350.5 MB, free: 91.71 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004827/0.2039, allocations: 143.3 kB / 350.7 MB, free: 91.71 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002102/0.206, allocations: 0.7839 MB / 351.5 MB, free: 91.67 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.956e-05/0.2061, allocations: 25.11 kB / 351.5 MB, free: 91.67 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002965/0.2091, allocations: 3.769 MB / 355.3 MB, free: 89.06 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0003418/0.2094, allocations: 1.346 MB / 356.6 MB, free: 87.75 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002589/0.212, allocations: 1.925 MB / 358.5 MB, free: 87.09 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003122/0.2123, allocations: 209.2 kB / 358.7 MB, free: 87.09 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001738/0.2125, allocations: 28.44 kB / 358.8 MB, free: 87.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005104/0.213, allocations: 21.88 kB / 358.8 MB, free: 87.09 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/0.2131, allocations: 85.83 kB / 358.9 MB, free: 87.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.518e-05/0.2132, allocations: 33.89 kB / 358.9 MB, free: 87.09 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006122/0.2138, allocations: 0.7558 MB / 359.7 MB, free: 87 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2138, allocations: 0 / 359.7 MB, free: 87 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002307/0.2161, allocations: 0.8764 MB / 360.5 MB, free: 87 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.0002863/0.2164, allocations: 160.8 kB / 360.7 MB, free: 86.93 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002417/0.2188, allocations: 2.303 MB / 363 MB, free: 86.62 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.935e-05/0.2189, allocations: 58.81 kB / 363.1 MB, free: 86.61 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009441/0.2198, allocations: 0.7852 MB / 363.8 MB, free: 86.34 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001011/0.2208, allocations: 387.2 kB / 364.2 MB, free: 86.32 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004409/0.2253, allocations: 4.973 MB / 369.2 MB, free: 83.26 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005342/0.2258, allocations: 0.7821 MB / 370 MB, free: 82.82 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000658/0.2264, allocations: 333.6 kB / 370.3 MB, free: 82.58 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004558/0.2269, allocations: 375.3 kB / 370.7 MB, free: 82.25 MB / 330.7 MB Notification: Performance of SimCode: time 1.102e-06/0.2269, allocations: 0 / 370.7 MB, free: 82.25 MB / 330.7 MB Notification: Performance of Templates: time 0.03772/0.2646, allocations: 30.96 MB / 401.6 MB, free: 52.36 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.5023955581709743]