Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001732/0.001733, allocations: 109.4 kB / 18.4 MB, free: 4.695 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.001782/0.001782, allocations: 193.2 kB / 19.33 MB, free: 3.773 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.394/1.394, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 55.92 kB / 329.2 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07712/0.07835, allocations: 46.61 MB / 375.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.1704/0.2488, allocations: 7.443 MB / 383.3 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005534/0.2543, allocations: 3.242 MB / 386.5 MB, free: 7.953 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008168/0.2552, allocations: 37.69 kB / 386.5 MB, free: 7.945 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001906/0.2571, allocations: 1.019 MB / 387.6 MB, free: 7.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003711/0.2609, allocations: 1.369 MB / 388.9 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001354/0.2622, allocations: 459.1 kB / 389.4 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003828/0.2661, allocations: 2.64 MB / 392 MB, free: 5.785 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001882/0.268, allocations: 1.53 MB / 393.5 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001234/0.2692, allocations: 0.8473 MB / 394.4 MB, free: 4.828 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001575/0.2708, allocations: 1.224 MB / 395.6 MB, free: 4.371 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004069/0.2712, allocations: 171.7 kB / 395.8 MB, free: 4.371 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002113/0.2733, allocations: 1.02 MB / 396.8 MB, free: 4.137 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001062/0.2744, allocations: 1.118 MB / 397.9 MB, free: 3.734 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001049/0.2755, allocations: 1.303 MB / 399.2 MB, free: 2.805 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004063/0.2795, allocations: 4.366 MB / 403.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2796, allocations: 0.9375 kB / 403.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.2796, allocations: 0 / 403.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.998e-05/0.2796, allocations: 0 / 403.6 MB, free: 15.98 MB / 334.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.006134/0.2858, allocations: 3.053 MB / 406.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.2858, allocations: 10.12 kB / 406.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00673/0.2926, allocations: 1.725 MB / 408.4 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003042/0.2956, allocations: 1.465 MB / 409.8 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.77e-05/0.2957, allocations: 141.6 kB / 410 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006739/0.2964, allocations: 257.8 kB / 410.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01022/0.3066, allocations: 6.659 MB / 416.9 MB, free: 5.863 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.819e-05/0.3067, allocations: 23.81 kB / 416.9 MB, free: 5.84 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002683/0.307, allocations: 87.89 kB / 417 MB, free: 5.754 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002095/0.3091, allocations: 1.363 MB / 418.4 MB, free: 4.395 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01052/0.3196, allocations: 6.033 MB / 424.4 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02993/0.3496, allocations: 25.54 MB / 449.9 MB, free: 4.055 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007272/0.3569, allocations: 2.668 MB / 452.6 MB, free: 1.242 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00141/0.3583, allocations: 1.04 MB / 453.6 MB, free: 196 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00608/0.3644, allocations: 3.885 MB / 457.5 MB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.129e-05/0.3645, allocations: 51.06 kB / 457.6 MB, free: 11.99 MB / 382.1 MB Notification: Performance of pre-optimization done (n=112): time 3.597e-06/0.3645, allocations: 0 / 457.6 MB, free: 11.99 MB / 382.1 MB Notification: Performance of matching and sorting (n=125): time 0.02681/0.3913, allocations: 10.29 MB / 467.9 MB, free: 1.531 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001342/0.3927, allocations: 1.69 MB / 469.6 MB, free: 15.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003949/0.3967, allocations: 2.737 MB / 472.3 MB, free: 12.9 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003108/0.397, allocations: 41.7 kB / 472.3 MB, free: 12.86 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001395/0.3984, allocations: 2.087 MB / 474.4 MB, free: 10.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005624/0.399, allocations: 0.4977 MB / 474.9 MB, free: 10.23 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001207/0.4002, allocations: 0.9203 MB / 475.8 MB, free: 9.297 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.944e-05/0.4003, allocations: 317.1 kB / 476.1 MB, free: 8.984 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002337/0.4026, allocations: 1.648 MB / 477.8 MB, free: 7.328 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004097/0.4067, allocations: 4.452 MB / 482.2 MB, free: 1.469 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007038/0.4138, allocations: 6.542 MB / 488.8 MB, free: 9.527 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.874e-05/0.4138, allocations: 28 kB / 488.8 MB, free: 9.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02009/0.4339, allocations: 7.994 MB / 496.8 MB, free: 1.488 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.359e-05/0.434, allocations: 51.98 kB / 496.9 MB, free: 1.438 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01207/0.4461, allocations: 3.496 MB / 0.4886 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01248/0.4586, allocations: 2.581 MB / 0.4912 GB, free: 11.33 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003767/0.4624, allocations: 1.01 MB / 0.4921 GB, free: 10.32 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01471/0.4772, allocations: 9.691 MB / 0.5016 GB, free: 364 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003886/0.4811, allocations: 331.4 kB / 0.5019 GB, free: 32 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007004/0.4818, allocations: 284 kB / 0.5022 GB, free: 15.75 MB / 446.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.002229/0.4841, allocations: 1.427 MB / 0.5036 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004613/0.4845, allocations: 229 kB / 0.5038 GB, free: 14.09 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006605/0.4912, allocations: 2.835 MB / 0.5066 GB, free: 11.22 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006069/0.4972, allocations: 2.521 MB / 0.509 GB, free: 8.684 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.659e-05/0.4973, allocations: 4.125 kB / 0.509 GB, free: 8.68 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.343e-05/0.4973, allocations: 11.98 kB / 0.509 GB, free: 8.668 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01433/0.5117, allocations: 6.875 MB / 0.5158 GB, free: 1.699 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.568e-05/0.5117, allocations: 3.938 kB / 0.5158 GB, free: 1.695 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008918/0.5126, allocations: 175.7 kB / 0.5159 GB, free: 1.523 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00501/0.5176, allocations: 1.442 MB / 0.5173 GB, free: 72 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002114/0.5179, allocations: 27.97 kB / 0.5174 GB, free: 44 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01075/0.5286, allocations: 7.915 MB / 0.5251 GB, free: 7.855 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001145/0.5298, allocations: 1.533 MB / 0.5266 GB, free: 6.172 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01039/0.5402, allocations: 4.865 MB / 0.5313 GB, free: 1.266 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001044/0.5413, allocations: 294 kB / 0.5316 GB, free: 0.957 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004924/0.5418, allocations: 20 kB / 0.5316 GB, free: 0.9375 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001828/0.5436, allocations: 111.8 kB / 0.5318 GB, free: 0.8281 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004048/0.5441, allocations: 84.31 kB / 0.5318 GB, free: 0.7461 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001748/0.5442, allocations: 35.98 kB / 0.5319 GB, free: 0.7109 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003813/0.5481, allocations: 1.705 MB / 0.5335 GB, free: 14.99 MB / 478.1 MB Notification: Performance of sort global known variables: time 3e-07/0.5481, allocations: 0 / 0.5335 GB, free: 14.99 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006069/0.5542, allocations: 0.7852 MB / 0.5343 GB, free: 14.21 MB / 478.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.000438/0.5546, allocations: 167.2 kB / 0.5345 GB, free: 14.04 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01048/0.5651, allocations: 4.458 MB / 0.5388 GB, free: 9.543 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.967e-06/0.5652, allocations: 0 / 0.5388 GB, free: 9.543 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004997/0.5702, allocations: 1.729 MB / 0.5405 GB, free: 7.758 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003281/0.5735, allocations: 262.5 kB / 0.5407 GB, free: 7.504 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01876/0.5923, allocations: 6.845 MB / 0.5474 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1813/0.7736, allocations: 2.288 MB / 0.5497 GB, free: 151.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007643/0.7744, allocations: 206.9 kB / 0.5499 GB, free: 151.6 MB / 478.1 MB Notification: Performance of SimCode: time 8.51e-07/0.7744, allocations: 1.188 kB / 0.5499 GB, free: 151.6 MB / 478.1 MB Notification: Performance of Templates: time 0.07672/0.8512, allocations: 76.58 MB / 0.6246 GB, free: 95.59 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches