Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001397/0.001397, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001484/0.001484, allocations: 210 kB / 23.73 MB, free: 4.387 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.473/1.473, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|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.",fileNamePrefix="Modelica_4.1.0_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.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.",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001557/0.001557, allocations: 39.94 kB / 378.2 MB, free: 2.449 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2701, allocations: 53.37 MB / 431.6 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008751/0.2789, allocations: 6.585 MB / 438.2 MB, free: 84 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006051/0.2849, allocations: 3.079 MB / 441.2 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006049/0.2855, allocations: 43.81 kB / 441.3 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00208/0.2876, allocations: 1.008 MB / 442.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002792/0.2904, allocations: 1.378 MB / 443.7 MB, free: 10.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00092/0.2913, allocations: 455.1 kB / 444.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003297/0.2946, allocations: 2.664 MB / 446.8 MB, free: 7.441 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001992/0.2966, allocations: 1.316 MB / 448.1 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001437/0.2981, allocations: 0.8563 MB / 449 MB, free: 5.242 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001734/0.2998, allocations: 1.281 MB / 450.2 MB, free: 3.957 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003574/0.3002, allocations: 172 kB / 450.4 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001708/0.3019, allocations: 0.9165 MB / 451.3 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001137/0.303, allocations: 1.126 MB / 452.4 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00101/0.304, allocations: 0.9314 MB / 453.4 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004614/0.3086, allocations: 4.34 MB / 457.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3086, allocations: 4 kB / 457.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.3086, allocations: 0 / 457.7 MB, free: 12.45 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.861e-05/0.3087, allocations: 0 / 457.7 MB, free: 12.45 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: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 0.005704/0.3144, allocations: 3.031 MB / 460.8 MB, free: 9.371 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.3144, allocations: 16.02 kB / 460.8 MB, free: 9.355 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006859/0.3213, allocations: 1.801 MB / 462.6 MB, free: 7.551 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002878/0.3242, allocations: 1.325 MB / 463.9 MB, free: 6.195 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001267/0.3243, allocations: 135.3 kB / 464 MB, free: 6.062 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006943/0.325, allocations: 251.7 kB / 464.3 MB, free: 5.816 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0113/0.3363, allocations: 6.701 MB / 471 MB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.658e-05/0.3364, allocations: 35.64 kB / 471 MB, free: 14.61 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002541/0.3366, allocations: 87.89 kB / 471.1 MB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002313/0.3389, allocations: 1.367 MB / 472.5 MB, free: 13.16 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01178/0.3507, allocations: 6.033 MB / 478.5 MB, free: 7.121 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03114/0.3819, allocations: 24.04 MB / 0.4908 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007148/0.389, allocations: 2.145 MB / 0.4929 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00145/0.3905, allocations: 0.9906 MB / 0.4938 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005725/0.3962, allocations: 2.734 MB / 0.4965 GB, free: 8.375 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.972e-05/0.3962, allocations: 43.06 kB / 0.4965 GB, free: 8.324 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 3.657e-06/0.3962, allocations: 0 / 0.4965 GB, free: 8.324 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.02711/0.4233, allocations: 10.13 MB / 0.5064 GB, free: 14.12 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001446/0.4248, allocations: 1.545 MB / 0.5079 GB, free: 12.43 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003616/0.4284, allocations: 2.605 MB / 0.5105 GB, free: 9.785 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002384/0.4286, allocations: 45.69 kB / 0.5105 GB, free: 9.734 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001812/0.4304, allocations: 2.186 MB / 0.5127 GB, free: 7.523 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005694/0.431, allocations: 0.5234 MB / 0.5132 GB, free: 6.996 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001206/0.4322, allocations: 0.9292 MB / 0.5141 GB, free: 6.055 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001717/0.4324, allocations: 357.9 kB / 0.5144 GB, free: 5.699 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002541/0.4349, allocations: 1.656 MB / 0.516 GB, free: 4.035 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00478/0.4397, allocations: 4.46 MB / 0.5204 GB, free: 14.17 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008251/0.448, allocations: 6.557 MB / 0.5268 GB, free: 6.227 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.718e-05/0.448, allocations: 28 kB / 0.5268 GB, free: 6.199 MB / 446.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02161/0.4697, allocations: 8.047 MB / 0.5347 GB, free: 14.13 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.879e-05/0.4697, allocations: 48 kB / 0.5347 GB, free: 14.08 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01241/0.4821, allocations: 3.562 MB / 0.5382 GB, free: 10.51 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01263/0.4948, allocations: 2.68 MB / 0.5408 GB, free: 7.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003747/0.4985, allocations: 1.01 MB / 0.5418 GB, free: 6.809 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2406/0.7391, allocations: 9.358 MB / 0.5509 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003616/0.7428, allocations: 332.8 kB / 0.5513 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005513/0.7433, allocations: 285.8 kB / 0.5515 GB, free: 108.9 MB / 462.1 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.002248/0.7456, allocations: 1.432 MB / 0.5529 GB, free: 108.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004034/0.746, allocations: 220.3 kB / 0.5531 GB, free: 108.4 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005726/0.7465, allocations: 305.8 kB / 0.5534 GB, free: 108.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005799/0.7523, allocations: 2.519 MB / 0.5559 GB, free: 107.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.519e-05/0.7523, allocations: 3.5 kB / 0.5559 GB, free: 107.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.504e-05/0.7524, allocations: 7.297 kB / 0.5559 GB, free: 107.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01141/0.7638, allocations: 6.176 MB / 0.5619 GB, free: 105.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-05/0.7638, allocations: 2.906 kB / 0.5619 GB, free: 105.5 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000848/0.7646, allocations: 181.5 kB / 0.5621 GB, free: 105.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004388/0.769, allocations: 1.432 MB / 0.5635 GB, free: 105.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000155/0.7692, allocations: 34.92 kB / 0.5635 GB, free: 105.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008459/0.7776, allocations: 7.603 MB / 0.571 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000696/0.7783, allocations: 1.424 MB / 0.5724 GB, free: 99.95 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007429/0.7858, allocations: 4.849 MB / 0.5771 GB, free: 95.76 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005957/0.7863, allocations: 199.8 kB / 0.5773 GB, free: 95.69 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000249/0.7866, allocations: 27.98 kB / 0.5773 GB, free: 95.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/0.7876, allocations: 112.6 kB / 0.5774 GB, free: 95.55 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002565/0.7879, allocations: 82.34 kB / 0.5775 GB, free: 95.47 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.895e-05/0.788, allocations: 39.98 kB / 0.5775 GB, free: 95.43 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001664/0.7896, allocations: 1.479 MB / 0.579 GB, free: 93.94 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.7896, allocations: 0 / 0.579 GB, free: 93.94 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003262/0.7929, allocations: 0.7729 MB / 0.5797 GB, free: 93.18 MB / 462.1 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.0003229/0.7932, allocations: 159.8 kB / 0.5799 GB, free: 93.03 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00606/0.7993, allocations: 4.197 MB / 0.584 GB, free: 88.88 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.7993, allocations: 0 / 0.584 GB, free: 88.88 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002609/0.8019, allocations: 1.584 MB / 0.5855 GB, free: 87.29 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001433/0.8033, allocations: 237.2 kB / 0.5858 GB, free: 87.05 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008291/0.8116, allocations: 6.637 MB / 0.5922 GB, free: 80.43 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00163/0.8133, allocations: 1.724 MB / 0.5939 GB, free: 78.66 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00235/0.8156, allocations: 1.375 MB / 0.5953 GB, free: 77.28 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000334/0.8159, allocations: 163.4 kB / 0.5954 GB, free: 77.12 MB / 462.1 MB Notification: Performance of SimCode: time 6.91e-07/0.8159, allocations: 0 / 0.5954 GB, free: 77.12 MB / 462.1 MB Notification: Performance of Templates: time 0.04148/0.8574, allocations: 29.23 MB / 0.624 GB, free: 48.2 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.221098408102989]