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.0009939/0.0009935, allocations: 96.91 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001091/0.001091, allocations: 207.1 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002476/0.000248, allocations: 4 kB / 306.6 MB, free: 1.398 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1093, allocations: 51.49 MB / 358.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.1934/0.3028, allocations: 15.26 MB / 373.3 MB, free: 8.617 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01212/0.315, allocations: 4.831 MB / 378.2 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003213/0.3182, allocations: 71.22 kB / 378.2 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002419/0.3207, allocations: 0.7123 MB / 378.9 MB, free: 8.223 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009538/0.3302, allocations: 2.406 MB / 381.4 MB, free: 8.043 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001719/0.332, allocations: 368 kB / 381.7 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00389/0.3359, allocations: 1.543 MB / 383.3 MB, free: 7.961 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003478/0.3394, allocations: 1.853 MB / 385.1 MB, free: 7.652 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001494/0.3409, allocations: 0.6248 MB / 385.7 MB, free: 7.551 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00119/0.3421, allocations: 0.8844 MB / 386.6 MB, free: 7.422 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002969/0.3424, allocations: 87.16 kB / 386.7 MB, free: 7.422 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001832/0.3443, allocations: 0.8136 MB / 387.5 MB, free: 7.309 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001016/0.3453, allocations: 0.9444 MB / 388.5 MB, free: 7.016 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004998/0.3458, allocations: 0.5157 MB / 389 MB, free: 6.879 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00349/0.3493, allocations: 3.279 MB / 392.3 MB, free: 4.887 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.156e-06/0.3493, allocations: 0 / 392.3 MB, free: 4.887 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3493, allocations: 1.094 kB / 392.3 MB, free: 4.887 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.533e-05/0.3494, allocations: 4 kB / 392.3 MB, free: 4.883 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.006638/0.3561, allocations: 2.588 MB / 394.8 MB, free: 3.055 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.3561, allocations: 8.25 kB / 394.9 MB, free: 3.055 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008389/0.3645, allocations: 2.139 MB / 397 MB, free: 2.004 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003743/0.3683, allocations: 1.455 MB / 398.4 MB, free: 1.098 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001038/0.3684, allocations: 145.4 kB / 398.6 MB, free: 1.051 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008582/0.3693, allocations: 257.8 kB / 398.8 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01131/0.3806, allocations: 6.707 MB / 405.5 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.313e-05/0.3807, allocations: 19.81 kB / 405.6 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002738/0.381, allocations: 90.28 kB / 405.7 MB, free: 11.11 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002085/0.3831, allocations: 1.373 MB / 407 MB, free: 9.746 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01134/0.3945, allocations: 6.087 MB / 413.1 MB, free: 3.652 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03378/0.4283, allocations: 25.65 MB / 438.8 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00702/0.4353, allocations: 2.7 MB / 441.5 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007819/0.4432, allocations: 4.003 MB / 445.5 MB, free: 2.258 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.635e-05/0.4433, allocations: 47.06 kB / 445.5 MB, free: 2.203 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 5.24e-06/0.4433, allocations: 0 / 445.5 MB, free: 2.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.02759/0.4709, allocations: 10.61 MB / 456.1 MB, free: 7.375 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001303/0.4723, allocations: 1.603 MB / 457.7 MB, free: 5.602 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004374/0.4767, allocations: 2.835 MB / 460.6 MB, free: 2.746 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004572/0.4772, allocations: 44.36 kB / 460.6 MB, free: 2.699 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001385/0.4786, allocations: 2.078 MB / 462.7 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006624/0.4792, allocations: 0.5038 MB / 463.2 MB, free: 124 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001947/0.4794, allocations: 90.89 kB / 463.3 MB, free: 36 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003135/0.4798, allocations: 0.5 MB / 463.8 MB, free: 15.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002517/0.4823, allocations: 1.66 MB / 465.4 MB, free: 13.86 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004105/0.4864, allocations: 4.436 MB / 469.9 MB, free: 8.016 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003872/0.4903, allocations: 2.655 MB / 472.5 MB, free: 5.359 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.294e-05/0.4904, allocations: 28 kB / 472.6 MB, free: 5.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.01992/0.5103, allocations: 8.076 MB / 480.6 MB, free: 13.24 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.204e-05/0.5104, allocations: 49 kB / 480.7 MB, free: 13.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01182/0.5222, allocations: 3.587 MB / 484.3 MB, free: 9.594 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01233/0.5346, allocations: 2.689 MB / 487 MB, free: 6.895 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003501/0.5382, allocations: 1.006 MB / 488 MB, free: 5.887 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01524/0.5534, allocations: 9.337 MB / 497.3 MB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004379/0.5578, allocations: 327.6 kB / 497.6 MB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001049/0.5589, allocations: 286.7 kB / 497.9 MB, free: 11.68 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 (543): * Single equations (assignments): 535 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003535/0.5625, allocations: 1.427 MB / 499.3 MB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005857/0.5631, allocations: 236.9 kB / 499.6 MB, free: 10 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007989/0.5639, allocations: 334 kB / 499.9 MB, free: 9.668 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005869/0.5698, allocations: 2.528 MB / 0.4906 GB, free: 7.125 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.933e-05/0.5698, allocations: 4 kB / 0.4906 GB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.362e-05/0.5699, allocations: 3.984 kB / 0.4907 GB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01419/0.584, allocations: 6.881 MB / 0.4974 GB, free: 172 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.599e-05/0.5841, allocations: 4 kB / 0.4974 GB, free: 168 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008695/0.585, allocations: 183.8 kB / 0.4975 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004631/0.5896, allocations: 1.434 MB / 0.499 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002238/0.5899, allocations: 32.59 kB / 0.499 GB, free: 14.51 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009552/0.5994, allocations: 7.541 MB / 0.5063 GB, free: 6.707 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001002/0.6005, allocations: 1.462 MB / 0.5078 GB, free: 5.102 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008597/0.6091, allocations: 4.985 MB / 0.5126 GB, free: 36 kB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009597/0.6101, allocations: 301.9 kB / 0.5129 GB, free: 15.72 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002878/0.6104, allocations: 31.97 kB / 0.513 GB, free: 15.69 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001207/0.6116, allocations: 112.5 kB / 0.5131 GB, free: 15.58 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002549/0.6119, allocations: 88.33 kB / 0.5132 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/0.612, allocations: 37.39 kB / 0.5132 GB, free: 15.45 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002721/0.6147, allocations: 1.771 MB / 0.5149 GB, free: 13.67 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.6147, allocations: 0 / 0.5149 GB, free: 13.67 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004334/0.6191, allocations: 0.7977 MB / 0.5157 GB, free: 12.88 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005222/0.6196, allocations: 170.1 kB / 0.5159 GB, free: 12.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007865/0.6275, allocations: 4.407 MB / 0.5202 GB, free: 8.273 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.242e-06/0.6275, allocations: 0 / 0.5202 GB, free: 8.273 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003263/0.6308, allocations: 1.73 MB / 0.5219 GB, free: 6.492 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001568/0.6324, allocations: 239.2 kB / 0.5221 GB, free: 6.258 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1819/0.8143, allocations: 7.662 MB / 0.5296 GB, free: 144.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003197/0.8176, allocations: 2.348 MB / 0.5319 GB, free: 144 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003622/0.8212, allocations: 1.413 MB / 0.5332 GB, free: 144 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000527/0.8218, allocations: 165.4 kB / 0.5334 GB, free: 144 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.8218, allocations: 3.938 kB / 0.5334 GB, free: 144 MB / 446.1 MB Notification: Performance of Templates: time 0.04875/0.8705, allocations: 29.14 MB / 0.5619 GB, free: 129.5 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","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches