Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009899/0.00099, allocations: 85.19 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 176.3 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.326/1.326, allocations: 223.3 MB / 241.6 MB, free: 14.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003401/0.0003396, allocations: 7.938 kB / 301.4 MB, free: 5.918 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1101, allocations: 50.42 MB / 351.8 MB, free: 3.488 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01751/0.1276, allocations: 17.25 MB / 369.1 MB, free: 2.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2186/0.3462, allocations: 4.973 MB / 374.1 MB, free: 8.805 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003369/0.3496, allocations: 74 kB / 374.1 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009934/0.3507, allocations: 280.7 kB / 374.4 MB, free: 8.801 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003694/0.3544, allocations: 1.28 MB / 375.7 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001264/0.3556, allocations: 414 kB / 376.1 MB, free: 8.727 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006238/0.3619, allocations: 3.614 MB / 379.7 MB, free: 8.523 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003212/0.3651, allocations: 2.028 MB / 381.7 MB, free: 8.168 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001568/0.3667, allocations: 0.673 MB / 382.4 MB, free: 8.062 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001788/0.3685, allocations: 1.216 MB / 383.6 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003031/0.3688, allocations: 91.69 kB / 383.7 MB, free: 7.879 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002196/0.371, allocations: 1.011 MB / 384.7 MB, free: 7.613 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001243/0.3723, allocations: 1.04 MB / 385.8 MB, free: 7.062 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001256/0.3736, allocations: 1.237 MB / 387 MB, free: 6.129 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00475/0.3783, allocations: 4.071 MB / 391.1 MB, free: 3.523 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3783, allocations: 0 / 391.1 MB, free: 3.523 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3784, allocations: 3 kB / 391.1 MB, free: 3.523 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000104/0.3785, allocations: 3.938 kB / 391.1 MB, free: 3.52 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.005377/0.3838, allocations: 2.535 MB / 393.6 MB, free: 1.699 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.3839, allocations: 9.625 kB / 393.6 MB, free: 1.699 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006581/0.3905, allocations: 1.78 MB / 395.4 MB, free: 0.793 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002622/0.3931, allocations: 1.388 MB / 396.8 MB, free: 15.89 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001019/0.3933, allocations: 131.7 kB / 396.9 MB, free: 15.85 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006261/0.3939, allocations: 258.6 kB / 397.2 MB, free: 15.78 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0106/0.4045, allocations: 6.668 MB / 403.8 MB, free: 9.891 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.645e-05/0.4046, allocations: 35.64 kB / 403.9 MB, free: 9.855 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002574/0.4049, allocations: 90.97 kB / 404 MB, free: 9.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002194/0.4071, allocations: 1.366 MB / 405.3 MB, free: 8.422 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01135/0.4184, allocations: 6.043 MB / 411.4 MB, free: 2.383 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03286/0.4513, allocations: 25.61 MB / 437 MB, free: 8.121 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007428/0.4588, allocations: 2.665 MB / 439.7 MB, free: 5.309 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00184/0.4607, allocations: 1.042 MB / 440.7 MB, free: 4.258 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006701/0.4674, allocations: 3.897 MB / 444.6 MB, free: 124 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.308e-05/0.4675, allocations: 47.11 kB / 444.6 MB, free: 68 kB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 6.021e-06/0.4675, allocations: 0 / 444.6 MB, free: 68 kB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.02764/0.4952, allocations: 10.31 MB / 455 MB, free: 5.605 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001327/0.4965, allocations: 1.588 MB / 456.5 MB, free: 3.844 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004141/0.5007, allocations: 2.721 MB / 459.3 MB, free: 1.102 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003202/0.501, allocations: 45.8 kB / 459.3 MB, free: 1.051 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001401/0.5024, allocations: 2.093 MB / 461.4 MB, free: 14.96 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006488/0.5031, allocations: 0.5011 MB / 461.9 MB, free: 14.46 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004954/0.5036, allocations: 393.9 kB / 462.3 MB, free: 14.07 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.745e-05/0.5037, allocations: 313.1 kB / 462.6 MB, free: 13.76 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002558/0.5063, allocations: 1.648 MB / 464.2 MB, free: 12.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004449/0.5107, allocations: 4.456 MB / 468.7 MB, free: 6.242 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008395/0.5191, allocations: 6.543 MB / 475.2 MB, free: 14.31 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.652e-05/0.5193, allocations: 28 kB / 475.3 MB, free: 14.28 MB / 398.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.023/0.5423, allocations: 8.005 MB / 483.3 MB, free: 6.266 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001347/0.5425, allocations: 48 kB / 483.3 MB, free: 6.219 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0122/0.5547, allocations: 3.488 MB / 486.8 MB, free: 2.719 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01259/0.5673, allocations: 2.591 MB / 489.4 MB, free: 120 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003275/0.5706, allocations: 1.006 MB / 490.4 MB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02169/0.5923, allocations: 8.862 MB / 499.3 MB, free: 5.984 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006345/0.5987, allocations: 339.5 kB / 499.6 MB, free: 5.652 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001081/0.5998, allocations: 283.9 kB / 499.9 MB, free: 5.375 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.003695/0.6035, allocations: 1.422 MB / 0.4895 GB, free: 3.941 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006961/0.6043, allocations: 229 kB / 0.4898 GB, free: 3.715 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01028/0.6145, allocations: 2.844 MB / 0.4925 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009236/0.6238, allocations: 2.511 MB / 0.495 GB, free: 14.31 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.767e-05/0.6239, allocations: 4.125 kB / 0.495 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-05/0.624, allocations: 11.97 kB / 0.495 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02078/0.6448, allocations: 6.859 MB / 0.5017 GB, free: 7.371 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.616e-05/0.6448, allocations: 4 kB / 0.5017 GB, free: 7.367 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001313/0.6462, allocations: 179.7 kB / 0.5019 GB, free: 7.191 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007474/0.6537, allocations: 1.438 MB / 0.5033 GB, free: 5.742 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000279/0.654, allocations: 31.98 kB / 0.5033 GB, free: 5.711 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01329/0.6673, allocations: 7.328 MB / 0.5105 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001056/0.6684, allocations: 1.466 MB / 0.5119 GB, free: 12.51 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009316/0.6777, allocations: 4.852 MB / 0.5166 GB, free: 7.617 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/0.6789, allocations: 297.9 kB / 0.5169 GB, free: 7.305 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002862/0.6792, allocations: 26.28 kB / 0.517 GB, free: 7.281 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001206/0.6804, allocations: 119.8 kB / 0.5171 GB, free: 7.164 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003161/0.6807, allocations: 72.44 kB / 0.5171 GB, free: 7.094 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001125/0.6809, allocations: 39.98 kB / 0.5172 GB, free: 7.055 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002904/0.6838, allocations: 1.697 MB / 0.5188 GB, free: 5.348 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.6838, allocations: 0 / 0.5188 GB, free: 5.348 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00443/0.6882, allocations: 0.7923 MB / 0.5196 GB, free: 4.559 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.0005133/0.6888, allocations: 170.2 kB / 0.5198 GB, free: 4.387 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.2139/0.9026, allocations: 4.411 MB / 0.5241 GB, free: 150.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.047e-05/0.9027, allocations: 0 / 0.5241 GB, free: 150.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004359/0.9071, allocations: 1.722 MB / 0.5258 GB, free: 150 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002588/0.9097, allocations: 259.5 kB / 0.526 GB, free: 150 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01274/0.9224, allocations: 7.976 MB / 0.5338 GB, free: 146.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00279/0.9253, allocations: 2.292 MB / 0.536 GB, free: 145.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00435/0.9296, allocations: 1.405 MB / 0.5374 GB, free: 145.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005316/0.9302, allocations: 170.1 kB / 0.5376 GB, free: 145.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.182e-06/0.9302, allocations: 0 / 0.5376 GB, free: 145.8 MB / 446.1 MB Notification: Performance of Templates: time 0.04774/0.9779, allocations: 29.17 MB / 0.5661 GB, free: 128.2 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches