Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00132/0.00132, allocations: 112.4 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001284/0.001284, allocations: 208 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.452/1.452, allocations: 227.7 MB / 247.9 MB, free: 10.18 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001919/0.001919, allocations: 63.89 kB / 359.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2475, allocations: 50.55 MB / 410.2 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.009287/0.2568, allocations: 7.436 MB / 417.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006426/0.2632, allocations: 3.257 MB / 420.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001013/0.2642, allocations: 35.88 kB / 420.9 MB, free: 6.809 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002176/0.2664, allocations: 1.039 MB / 422 MB, free: 5.766 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002887/0.2693, allocations: 1.366 MB / 423.3 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000891/0.2702, allocations: 459.1 kB / 423.8 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003297/0.2735, allocations: 2.664 MB / 426.5 MB, free: 1.277 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001523/0.275, allocations: 1.313 MB / 427.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009222/0.2759, allocations: 0.8407 MB / 428.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001446/0.2774, allocations: 1.223 MB / 429.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003046/0.2777, allocations: 168 kB / 430 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001731/0.2794, allocations: 1.01 MB / 431 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00101/0.2804, allocations: 1.114 MB / 432.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001142/0.2815, allocations: 1.285 MB / 433.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004497/0.286, allocations: 4.338 MB / 437.7 MB, free: 5.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.286, allocations: 4 kB / 437.8 MB, free: 5.914 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.286, allocations: 3.938 kB / 437.8 MB, free: 5.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.451e-05/0.2861, allocations: 0 / 437.8 MB, free: 5.91 MB / 350.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.005595/0.2917, allocations: 3.105 MB / 440.9 MB, free: 2.742 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.255e-05/0.2917, allocations: 12.03 kB / 440.9 MB, free: 2.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006963/0.2987, allocations: 1.805 MB / 442.7 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002841/0.3016, allocations: 1.387 MB / 444.1 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/0.3017, allocations: 131.3 kB / 444.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006853/0.3024, allocations: 255.8 kB / 444.4 MB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01064/0.313, allocations: 6.672 MB / 451.1 MB, free: 7.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.563e-05/0.3131, allocations: 35.7 kB / 451.1 MB, free: 7.945 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002631/0.3133, allocations: 83.89 kB / 451.2 MB, free: 7.863 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002297/0.3156, allocations: 1.363 MB / 452.6 MB, free: 6.504 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01127/0.3269, allocations: 6.048 MB / 458.6 MB, free: 460 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03159/0.3585, allocations: 25.58 MB / 484.2 MB, free: 6.113 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007387/0.3659, allocations: 2.608 MB / 486.8 MB, free: 3.355 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001429/0.3673, allocations: 0.9888 MB / 487.8 MB, free: 2.355 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006035/0.3734, allocations: 3.98 MB / 491.8 MB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.571e-05/0.3734, allocations: 39.12 kB / 491.8 MB, free: 14.05 MB / 414.1 MB Notification: Performance of pre-optimization done (n=112): time 2.665e-06/0.3734, allocations: 4 kB / 491.8 MB, free: 14.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=125): time 0.02782/0.4012, allocations: 10.45 MB / 0.4905 GB, free: 3.449 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001516/0.4027, allocations: 1.671 MB / 0.4921 GB, free: 1.602 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003838/0.4066, allocations: 2.722 MB / 0.4948 GB, free: 14.86 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002152/0.4068, allocations: 45.97 kB / 0.4948 GB, free: 14.81 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00173/0.4085, allocations: 2.171 MB / 0.497 GB, free: 12.61 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005964/0.4091, allocations: 0.5234 MB / 0.4975 GB, free: 12.09 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001242/0.4103, allocations: 0.9368 MB / 0.4984 GB, free: 11.14 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.4105, allocations: 305.1 kB / 0.4987 GB, free: 10.84 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002565/0.413, allocations: 1.656 MB / 0.5003 GB, free: 9.172 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005181/0.4182, allocations: 4.456 MB / 0.5047 GB, free: 3.309 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008421/0.4266, allocations: 6.554 MB / 0.5111 GB, free: 11.36 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-05/0.4267, allocations: 32 kB / 0.5111 GB, free: 11.33 MB / 446.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02074/0.4474, allocations: 8.068 MB / 0.519 GB, free: 3.25 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.499e-05/0.4475, allocations: 48 kB / 0.519 GB, free: 3.203 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01249/0.46, allocations: 3.562 MB / 0.5225 GB, free: 15.62 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01286/0.4729, allocations: 2.678 MB / 0.5251 GB, free: 12.93 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00392/0.4768, allocations: 1.01 MB / 0.5261 GB, free: 11.92 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01663/0.4934, allocations: 9.726 MB / 0.5356 GB, free: 1.918 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003769/0.4972, allocations: 331.7 kB / 0.5359 GB, free: 1.594 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005892/0.4978, allocations: 288 kB / 0.5362 GB, free: 1.312 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.2311/0.7289, allocations: 1.425 MB / 0.5376 GB, free: 122.6 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001104/0.73, allocations: 240.8 kB / 0.5378 GB, free: 122.6 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00131/0.7313, allocations: 328.5 kB / 0.5381 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009816/0.7411, allocations: 2.509 MB / 0.5406 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.306e-05/0.7411, allocations: 5.5 kB / 0.5406 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.929e-05/0.7412, allocations: 7.797 kB / 0.5406 GB, free: 122.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01717/0.7583, allocations: 6.856 MB / 0.5473 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.034e-05/0.7584, allocations: 2.812 kB / 0.5473 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001157/0.7595, allocations: 179.8 kB / 0.5474 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006679/0.7662, allocations: 1.429 MB / 0.5488 GB, free: 120.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001437/0.7663, allocations: 34.56 kB / 0.5489 GB, free: 120 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01153/0.7779, allocations: 7.927 MB / 0.5566 GB, free: 115.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008075/0.7787, allocations: 1.538 MB / 0.5581 GB, free: 113.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01135/0.79, allocations: 4.861 MB / 0.5629 GB, free: 109 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007558/0.7908, allocations: 313 kB / 0.5632 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003803/0.7912, allocations: 27.98 kB / 0.5632 GB, free: 108.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00171/0.7929, allocations: 111.8 kB / 0.5633 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003436/0.7932, allocations: 87.27 kB / 0.5634 GB, free: 108.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001379/0.7933, allocations: 39.98 kB / 0.5634 GB, free: 108.5 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002806/0.7962, allocations: 1.681 MB / 0.5651 GB, free: 106.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7962, allocations: 0 / 0.5651 GB, free: 106.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005386/0.8015, allocations: 0.7816 MB / 0.5658 GB, free: 106.1 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.0004306/0.802, allocations: 159 kB / 0.566 GB, free: 105.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.008616/0.8106, allocations: 4.267 MB / 0.5701 GB, free: 101.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/0.8106, allocations: 4 kB / 0.5701 GB, free: 101.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003874/0.8145, allocations: 1.651 MB / 0.5718 GB, free: 99.96 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002432/0.8169, allocations: 274.1 kB / 0.572 GB, free: 99.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009637/0.8265, allocations: 6.624 MB / 0.5785 GB, free: 93.07 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001502/0.828, allocations: 2.289 MB / 0.5807 GB, free: 90.75 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002401/0.8304, allocations: 1.404 MB / 0.5821 GB, free: 89.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003444/0.8308, allocations: 171.4 kB / 0.5823 GB, free: 89.18 MB / 462.1 MB Notification: Performance of SimCode: time 6.31e-07/0.8308, allocations: 0 / 0.5823 GB, free: 89.18 MB / 462.1 MB Notification: Performance of Templates: time 0.0439/0.8747, allocations: 28.6 MB / 0.6102 GB, free: 60.72 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches