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.0009602/0.0009602, allocations: 94.17 kB / 17.31 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.001037/0.001037, allocations: 175.2 kB / 18.21 MB, free: 5.684 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.116/1.116, allocations: 223.3 MB / 242.2 MB, free: 208 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001986/0.0001986, allocations: 11.94 kB / 302.1 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07021/0.07042, allocations: 50.41 MB / 352.5 MB, free: 3.711 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01345/0.0839, allocations: 17.25 MB / 369.7 MB, free: 2.383 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1275/0.2114, allocations: 4.973 MB / 374.7 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001926/0.2133, allocations: 73.81 kB / 374.8 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00062/0.214, allocations: 283.4 kB / 375.1 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002286/0.2163, allocations: 1.29 MB / 376.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007606/0.217, allocations: 418.3 kB / 376.8 MB, free: 8.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003047/0.2201, allocations: 3.613 MB / 380.4 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001944/0.2221, allocations: 2.022 MB / 382.4 MB, free: 8.262 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006405/0.2227, allocations: 0.6703 MB / 383.1 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001085/0.2238, allocations: 1.218 MB / 384.3 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001683/0.224, allocations: 86.97 kB / 384.4 MB, free: 7.977 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001264/0.2252, allocations: 1.006 MB / 385.4 MB, free: 7.766 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000647/0.2259, allocations: 1.041 MB / 386.4 MB, free: 7.215 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006854/0.2266, allocations: 1.246 MB / 387.7 MB, free: 6.273 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001982/0.2286, allocations: 3.282 MB / 390.9 MB, free: 4.246 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.2286, allocations: 0 / 390.9 MB, free: 4.246 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2286, allocations: 0 / 390.9 MB, free: 4.246 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.361e-05/0.2286, allocations: 0 / 390.9 MB, free: 4.246 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.003256/0.2319, allocations: 2.53 MB / 393.5 MB, free: 2.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.991e-05/0.2319, allocations: 9.625 kB / 393.5 MB, free: 2.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005491/0.2374, allocations: 1.79 MB / 395.3 MB, free: 1.516 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001505/0.2389, allocations: 1.382 MB / 396.7 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.651e-05/0.239, allocations: 134.3 kB / 396.8 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005218/0.2396, allocations: 257.4 kB / 397 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007818/0.2474, allocations: 6.674 MB / 403.7 MB, free: 10.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.627e-05/0.2474, allocations: 35.64 kB / 403.7 MB, free: 10.63 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002306/0.2477, allocations: 87.06 kB / 403.8 MB, free: 10.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00185/0.2495, allocations: 1.372 MB / 405.2 MB, free: 9.199 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0087/0.2583, allocations: 6.041 MB / 411.2 MB, free: 3.156 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02167/0.2799, allocations: 25.61 MB / 436.9 MB, free: 8.898 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005995/0.2859, allocations: 2.672 MB / 439.5 MB, free: 6.086 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001155/0.2871, allocations: 1.04 MB / 440.6 MB, free: 5.035 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004185/0.2913, allocations: 3.901 MB / 444.5 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/0.2913, allocations: 43.06 kB / 444.5 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 2.645e-06/0.2914, allocations: 4 kB / 444.5 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.02236/0.3137, allocations: 10.31 MB / 454.8 MB, free: 6.379 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009848/0.3147, allocations: 1.584 MB / 456.4 MB, free: 4.621 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002766/0.3175, allocations: 2.729 MB / 459.1 MB, free: 1.871 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.561e-05/0.3176, allocations: 43.19 kB / 459.2 MB, free: 1.824 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001122/0.3187, allocations: 2.082 MB / 461.3 MB, free: 15.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003517/0.3191, allocations: 0.5081 MB / 461.8 MB, free: 15.23 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004025/0.3195, allocations: 398.3 kB / 462.2 MB, free: 14.84 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.096e-05/0.3196, allocations: 305.2 kB / 462.5 MB, free: 14.54 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002051/0.3216, allocations: 1.648 MB / 464.1 MB, free: 12.88 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003497/0.3251, allocations: 4.46 MB / 468.6 MB, free: 7.016 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005778/0.3309, allocations: 6.539 MB / 475.1 MB, free: 15.09 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.159e-05/0.331, allocations: 28 kB / 475.1 MB, free: 15.06 MB / 398.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01626/0.3472, allocations: 7.999 MB / 483.1 MB, free: 7.047 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.141e-05/0.3473, allocations: 48 kB / 483.2 MB, free: 7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01056/0.3579, allocations: 3.494 MB / 486.7 MB, free: 3.492 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01101/0.3689, allocations: 2.584 MB / 489.3 MB, free: 0.8984 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0023/0.3712, allocations: 1.018 MB / 490.3 MB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01188/0.3831, allocations: 8.856 MB / 499.1 MB, free: 6.762 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002464/0.3856, allocations: 331.5 kB / 499.5 MB, free: 6.438 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002945/0.3859, allocations: 289.7 kB / 499.7 MB, free: 6.156 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.001638/0.3875, allocations: 1.419 MB / 0.4894 GB, free: 4.723 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002829/0.3878, allocations: 229 kB / 0.4896 GB, free: 4.496 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006061/0.3939, allocations: 2.845 MB / 0.4924 GB, free: 1.617 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005358/0.3992, allocations: 2.514 MB / 0.4949 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.416e-06/0.3992, allocations: 8 kB / 0.4949 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.3993, allocations: 7.969 kB / 0.4949 GB, free: 15.07 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01073/0.41, allocations: 6.864 MB / 0.5016 GB, free: 8.148 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.41, allocations: 4.469 kB / 0.5016 GB, free: 8.145 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006799/0.4107, allocations: 175.7 kB / 0.5017 GB, free: 7.973 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004405/0.4151, allocations: 1.438 MB / 0.5032 GB, free: 6.527 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.534e-05/0.4152, allocations: 31.98 kB / 0.5032 GB, free: 6.496 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008627/0.4238, allocations: 7.333 MB / 0.5103 GB, free: 14.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008411/0.4247, allocations: 1.469 MB / 0.5118 GB, free: 13.28 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007515/0.4322, allocations: 4.847 MB / 0.5165 GB, free: 8.395 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000302/0.4325, allocations: 301.9 kB / 0.5168 GB, free: 8.078 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002207/0.4328, allocations: 31.92 kB / 0.5168 GB, free: 8.047 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/0.4338, allocations: 107.8 kB / 0.5169 GB, free: 7.941 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001883/0.434, allocations: 84.38 kB / 0.517 GB, free: 7.859 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.347e-05/0.4341, allocations: 35.98 kB / 0.517 GB, free: 7.824 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001905/0.436, allocations: 1.693 MB / 0.5187 GB, free: 6.121 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.436, allocations: 0 / 0.5187 GB, free: 6.121 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002692/0.4387, allocations: 0.7908 MB / 0.5195 GB, free: 5.332 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.0003075/0.439, allocations: 162.1 kB / 0.5196 GB, free: 5.168 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006166/0.4452, allocations: 4.423 MB / 0.5239 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.4452, allocations: 4 kB / 0.524 GB, free: 0.7148 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1291/0.5742, allocations: 1.722 MB / 0.5256 GB, free: 150.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002145/0.5764, allocations: 263.5 kB / 0.5259 GB, free: 150.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009615/0.5861, allocations: 8.26 MB / 0.534 GB, free: 147.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001721/0.5878, allocations: 2.294 MB / 0.5362 GB, free: 146.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004811/0.5883, allocations: 199.7 kB / 0.5364 GB, free: 146.8 MB / 446.1 MB Notification: Performance of SimCode: time 7.72e-07/0.5883, allocations: 0 / 0.5364 GB, free: 146.8 MB / 446.1 MB Notification: Performance of Templates: time 0.05376/0.6421, allocations: 75.19 MB / 0.6098 GB, free: 84.14 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/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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches