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.001419/0.001419, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001722/0.001722, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 247.5 MB, free: 10.37 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001171/0.001171, allocations: 60.19 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08812/0.08931, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.007808/0.09715, allocations: 7.398 MB / 366.3 MB, free: 5.922 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005584/0.1028, allocations: 3.277 MB / 369.6 MB, free: 2.633 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008412/0.1036, allocations: 39.88 kB / 369.6 MB, free: 2.594 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001988/0.1057, allocations: 1.02 MB / 370.6 MB, free: 1.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002831/0.1085, allocations: 1.343 MB / 372 MB, free: 228 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1593/0.2679, allocations: 448.4 kB / 372.4 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00396/0.2719, allocations: 2.666 MB / 375.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001808/0.2737, allocations: 1.524 MB / 376.6 MB, free: 9.945 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001081/0.2748, allocations: 0.83 MB / 377.4 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001379/0.2762, allocations: 1.213 MB / 378.6 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003258/0.2765, allocations: 170.3 kB / 378.8 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001577/0.2781, allocations: 1.012 MB / 379.8 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00105/0.2792, allocations: 1.091 MB / 380.9 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001122/0.2803, allocations: 1.292 MB / 382.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003972/0.2843, allocations: 4.318 MB / 386.5 MB, free: 7.484 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.2843, allocations: 1.859 kB / 386.5 MB, free: 7.484 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2843, allocations: 4 kB / 386.5 MB, free: 7.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.82e-05/0.2844, allocations: 3.938 kB / 386.5 MB, free: 7.477 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.004894/0.2893, allocations: 3.019 MB / 389.6 MB, free: 5.621 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/0.2893, allocations: 10.22 kB / 389.6 MB, free: 5.621 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006088/0.2954, allocations: 1.792 MB / 391.4 MB, free: 4.703 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002787/0.2982, allocations: 1.372 MB / 392.7 MB, free: 3.887 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.97e-05/0.2983, allocations: 135.5 kB / 392.9 MB, free: 3.848 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006076/0.2989, allocations: 261.2 kB / 393.1 MB, free: 3.777 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008332/0.3073, allocations: 6.673 MB / 399.8 MB, free: 15.67 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.134e-05/0.3074, allocations: 28.84 kB / 399.8 MB, free: 15.66 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002643/0.3076, allocations: 92.33 kB / 399.9 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001925/0.3096, allocations: 1.361 MB / 401.3 MB, free: 14.24 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01023/0.3198, allocations: 6.053 MB / 407.3 MB, free: 8.266 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03011/0.3499, allocations: 25.53 MB / 432.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006709/0.3567, allocations: 2.673 MB / 435.5 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001382/0.3581, allocations: 1.038 MB / 436.6 MB, free: 10.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006244/0.3643, allocations: 3.976 MB / 440.5 MB, free: 6.012 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.491e-05/0.3644, allocations: 43.12 kB / 440.6 MB, free: 5.961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 3.867e-06/0.3644, allocations: 4 kB / 440.6 MB, free: 5.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.02784/0.3922, allocations: 10.32 MB / 450.9 MB, free: 11.49 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001226/0.3935, allocations: 1.669 MB / 452.6 MB, free: 9.645 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00428/0.3978, allocations: 2.717 MB / 455.3 MB, free: 6.906 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000243/0.3981, allocations: 45.69 kB / 455.3 MB, free: 6.855 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001507/0.3996, allocations: 2.075 MB / 457.4 MB, free: 4.781 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006019/0.4002, allocations: 0.5055 MB / 457.9 MB, free: 4.281 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001435/0.4016, allocations: 0.9233 MB / 458.8 MB, free: 3.348 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.628e-05/0.4017, allocations: 305.1 kB / 459.1 MB, free: 3.047 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002356/0.4041, allocations: 1.66 MB / 460.8 MB, free: 1.379 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003865/0.408, allocations: 4.462 MB / 465.3 MB, free: 11.52 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00659/0.4146, allocations: 6.55 MB / 471.8 MB, free: 3.594 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.041e-05/0.4146, allocations: 32 kB / 471.8 MB, free: 3.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.0179/0.4325, allocations: 8.08 MB / 479.9 MB, free: 11.46 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.694e-05/0.4326, allocations: 48 kB / 480 MB, free: 11.42 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01098/0.4436, allocations: 3.57 MB / 483.5 MB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01142/0.455, allocations: 2.674 MB / 486.2 MB, free: 5.145 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003109/0.4582, allocations: 1.01 MB / 487.2 MB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01406/0.4722, allocations: 9.714 MB / 496.9 MB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003801/0.4761, allocations: 327.6 kB / 497.2 MB, free: 9.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009483/0.477, allocations: 287.5 kB / 497.5 MB, free: 9.543 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.003087/0.4801, allocations: 1.43 MB / 499 MB, free: 8.102 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006305/0.4808, allocations: 232.9 kB / 499.2 MB, free: 7.871 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000952/0.4817, allocations: 329.9 kB / 499.5 MB, free: 7.543 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005864/0.4876, allocations: 2.521 MB / 0.4903 GB, free: 5.004 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.338e-05/0.4877, allocations: 8 kB / 0.4903 GB, free: 4.996 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.575e-05/0.4877, allocations: 7.984 kB / 0.4903 GB, free: 4.988 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01401/0.5017, allocations: 6.887 MB / 0.497 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.361e-05/0.5017, allocations: 4 kB / 0.497 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008882/0.5026, allocations: 179.7 kB / 0.4972 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004782/0.5074, allocations: 1.434 MB / 0.4986 GB, free: 12.42 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001624/0.5076, allocations: 34.41 kB / 0.4986 GB, free: 12.39 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00993/0.5175, allocations: 7.909 MB / 0.5063 GB, free: 4.195 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009935/0.5186, allocations: 1.549 MB / 0.5078 GB, free: 2.5 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008671/0.5273, allocations: 4.857 MB / 0.5126 GB, free: 13.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006909/0.528, allocations: 294 kB / 0.5129 GB, free: 13.29 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004602/0.5284, allocations: 23.98 kB / 0.5129 GB, free: 13.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001172/0.5296, allocations: 111 kB / 0.513 GB, free: 13.16 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002705/0.5299, allocations: 80.38 kB / 0.5131 GB, free: 13.09 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001092/0.53, allocations: 47.97 kB / 0.5131 GB, free: 13.04 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002413/0.5324, allocations: 1.685 MB / 0.5148 GB, free: 11.34 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.5324, allocations: 0 / 0.5148 GB, free: 11.34 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003484/0.5359, allocations: 0.7697 MB / 0.5155 GB, free: 10.57 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.0003645/0.5363, allocations: 161.1 kB / 0.5157 GB, free: 10.41 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007479/0.5438, allocations: 4.465 MB / 0.52 GB, free: 5.918 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.185e-06/0.5438, allocations: 4 kB / 0.52 GB, free: 5.914 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003194/0.547, allocations: 1.73 MB / 0.5217 GB, free: 4.141 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001987/0.5491, allocations: 276.3 kB / 0.522 GB, free: 3.879 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1605/0.7095, allocations: 6.519 MB / 0.5284 GB, free: 144.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002162/0.7117, allocations: 2.292 MB / 0.5306 GB, free: 143.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00279/0.7145, allocations: 1.411 MB / 0.532 GB, free: 143.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004465/0.715, allocations: 170.1 kB / 0.5321 GB, free: 143.7 MB / 446.1 MB Notification: Performance of SimCode: time 7.02e-07/0.715, allocations: 1.25 kB / 0.5321 GB, free: 143.7 MB / 446.1 MB Notification: Performance of Templates: time 0.04648/0.7615, allocations: 26.92 MB / 0.5584 GB, free: 131.3 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/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