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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008332/0.0008332, allocations: 92.5 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009751/0.0009751, allocations: 201.8 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.8 MB / 246.8 MB, free: 11.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000219/0.0002193, allocations: 8 kB / 307.7 MB, free: 0.7812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1067, allocations: 51.52 MB / 359.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.2225/0.3292, allocations: 17.13 MB / 376.4 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0106/0.3399, allocations: 4.975 MB / 381.4 MB, free: 8.281 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003857/0.3438, allocations: 70.88 kB / 381.4 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000961/0.3448, allocations: 272.5 kB / 381.7 MB, free: 8.215 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003726/0.3485, allocations: 1.267 MB / 383 MB, free: 7.934 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001093/0.3496, allocations: 425.4 kB / 383.4 MB, free: 7.789 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00517/0.3548, allocations: 3.631 MB / 387 MB, free: 6.93 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003391/0.3582, allocations: 2.033 MB / 389.1 MB, free: 6.168 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001566/0.3598, allocations: 0.6626 MB / 389.7 MB, free: 5.949 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00219/0.362, allocations: 1.211 MB / 390.9 MB, free: 5.391 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005175/0.3626, allocations: 87.16 kB / 391 MB, free: 5.391 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001988/0.3646, allocations: 0.9837 MB / 392 MB, free: 4.938 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000984/0.3655, allocations: 1.027 MB / 393 MB, free: 4.391 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00102/0.3666, allocations: 1.232 MB / 394.3 MB, free: 3.453 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003823/0.3704, allocations: 4.019 MB / 398.3 MB, free: 0.875 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3704, allocations: 4 kB / 398.3 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3704, allocations: 0 / 398.3 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.149e-05/0.3705, allocations: 0 / 398.3 MB, free: 0.8711 MB / 302.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.005334/0.3759, allocations: 2.502 MB / 400.8 MB, free: 15.07 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.3759, allocations: 15.12 kB / 400.8 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007254/0.3832, allocations: 1.836 MB / 402.6 MB, free: 14.14 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002855/0.3861, allocations: 1.353 MB / 404 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001044/0.3862, allocations: 139.1 kB / 404.1 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007021/0.3869, allocations: 259.9 kB / 404.4 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01165/0.3986, allocations: 6.685 MB / 411.1 MB, free: 5.523 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.53e-05/0.3987, allocations: 31.69 kB / 411.1 MB, free: 5.492 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002667/0.3989, allocations: 87.19 kB / 411.2 MB, free: 5.434 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002196/0.4011, allocations: 1.365 MB / 412.5 MB, free: 4.07 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01279/0.4139, allocations: 6.07 MB / 418.6 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03169/0.4457, allocations: 25.61 MB / 444.2 MB, free: 3.742 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007554/0.4533, allocations: 2.702 MB / 446.9 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001584/0.4549, allocations: 1.029 MB / 448 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006725/0.4616, allocations: 3.982 MB / 451.9 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.544e-05/0.4617, allocations: 51.06 kB / 452 MB, free: 11.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=112): time 4.298e-06/0.4617, allocations: 4 kB / 452 MB, free: 11.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.03093/0.4926, allocations: 10.35 MB / 462.3 MB, free: 1.059 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001371/0.494, allocations: 1.584 MB / 463.9 MB, free: 15.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004875/0.4989, allocations: 2.721 MB / 466.6 MB, free: 12.56 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003265/0.4993, allocations: 45.64 kB / 466.7 MB, free: 12.51 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001543/0.5009, allocations: 2.084 MB / 468.8 MB, free: 10.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007839/0.5017, allocations: 0.5062 MB / 469.3 MB, free: 9.926 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008206/0.5025, allocations: 395.8 kB / 469.7 MB, free: 9.531 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.5026, allocations: 305.1 kB / 470 MB, free: 9.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002835/0.5055, allocations: 1.66 MB / 471.6 MB, free: 7.562 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004826/0.5103, allocations: 4.46 MB / 476.1 MB, free: 1.695 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007631/0.5179, allocations: 6.553 MB / 482.6 MB, free: 9.754 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.699e-05/0.5181, allocations: 28 kB / 482.7 MB, free: 9.727 MB / 398.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.0215/0.5396, allocations: 8.083 MB / 490.7 MB, free: 1.629 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001028/0.5397, allocations: 48 kB / 490.8 MB, free: 1.582 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0126/0.5523, allocations: 3.583 MB / 494.4 MB, free: 13.98 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01269/0.5651, allocations: 2.667 MB / 497 MB, free: 11.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003298/0.5684, allocations: 1.014 MB / 498.1 MB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01459/0.583, allocations: 8.901 MB / 0.4951 GB, free: 1.129 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003716/0.5867, allocations: 335.5 kB / 0.4954 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008023/0.5876, allocations: 287.9 kB / 0.4957 GB, free: 0.5195 MB / 414.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.002866/0.5904, allocations: 1.428 MB / 0.4971 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005122/0.591, allocations: 229.1 kB / 0.4973 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000829/0.5918, allocations: 325.9 kB / 0.4976 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006341/0.5982, allocations: 2.529 MB / 0.5001 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.474e-05/0.5982, allocations: 4 kB / 0.5001 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.542e-05/0.5982, allocations: 7.984 kB / 0.5001 GB, free: 11.97 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01442/0.6126, allocations: 6.879 MB / 0.5068 GB, free: 5.027 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-05/0.6127, allocations: 0 / 0.5068 GB, free: 5.027 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009175/0.6136, allocations: 179.9 kB / 0.507 GB, free: 4.852 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005093/0.6187, allocations: 1.43 MB / 0.5084 GB, free: 3.41 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001649/0.6189, allocations: 35.97 kB / 0.5084 GB, free: 3.375 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01006/0.629, allocations: 7.338 MB / 0.5156 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001022/0.63, allocations: 1.455 MB / 0.517 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009272/0.6393, allocations: 4.879 MB / 0.5217 GB, free: 5.258 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006655/0.64, allocations: 294 kB / 0.522 GB, free: 4.949 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004462/0.6405, allocations: 24 kB / 0.522 GB, free: 4.926 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001359/0.6419, allocations: 123.1 kB / 0.5222 GB, free: 4.809 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002739/0.6421, allocations: 84.31 kB / 0.5222 GB, free: 4.723 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/0.6423, allocations: 39.98 kB / 0.5223 GB, free: 4.684 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0032/0.6455, allocations: 1.689 MB / 0.5239 GB, free: 2.984 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.6455, allocations: 0 / 0.5239 GB, free: 2.984 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004074/0.6496, allocations: 0.7774 MB / 0.5247 GB, free: 2.207 MB / 446.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.0004739/0.65, allocations: 154 kB / 0.5248 GB, free: 2.051 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1895/0.8396, allocations: 4.43 MB / 0.5292 GB, free: 144.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/0.8396, allocations: 4.562 kB / 0.5292 GB, free: 144.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004039/0.8437, allocations: 1.721 MB / 0.5308 GB, free: 144 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002863/0.8466, allocations: 255.9 kB / 0.5311 GB, free: 144 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01424/0.8608, allocations: 7.975 MB / 0.5389 GB, free: 140.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003487/0.8644, allocations: 2.293 MB / 0.5411 GB, free: 139.6 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004175/0.8686, allocations: 1.401 MB / 0.5425 GB, free: 139.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007262/0.8693, allocations: 170.4 kB / 0.5427 GB, free: 139.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.372e-06/0.8693, allocations: 0 / 0.5427 GB, free: 139.4 MB / 446.1 MB Notification: Performance of Templates: time 0.04782/0.9172, allocations: 29.04 MB / 0.571 GB, free: 120.8 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches