Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001785/0.001785, allocations: 108.3 kB / 17.7 MB, free: 5.496 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.002107/0.002107, allocations: 187.1 kB / 18.62 MB, free: 4.578 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.367/1.367, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009816/0.0009816, allocations: 43.94 kB / 351.9 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2631, allocations: 49.44 MB / 401.4 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01252/0.2757, allocations: 12 MB / 413.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008148/0.2839, allocations: 4.2 MB / 417.6 MB, free: 8.609 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001662/0.2856, allocations: 67.81 kB / 417.6 MB, free: 8.543 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005003/0.2907, allocations: 2.764 MB / 420.4 MB, free: 5.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004772/0.2955, allocations: 1.957 MB / 422.3 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001767/0.2972, allocations: 0.8112 MB / 423.2 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006063/0.3033, allocations: 4.603 MB / 427.8 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003918/0.3073, allocations: 3.541 MB / 431.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002362/0.3097, allocations: 1.69 MB / 433 MB, free: 9.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00296/0.3126, allocations: 2.336 MB / 435.3 MB, free: 6.746 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008324/0.3135, allocations: 352 kB / 435.7 MB, free: 6.402 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002277/0.3158, allocations: 1.283 MB / 437 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001975/0.3178, allocations: 2.1 MB / 439.1 MB, free: 3.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002547/0.3203, allocations: 2.423 MB / 441.5 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007209/0.3276, allocations: 7.536 MB / 449 MB, free: 9.012 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3276, allocations: 4 kB / 449 MB, free: 9.008 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3276, allocations: 0 / 449 MB, free: 9.008 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001984/0.3278, allocations: 0 / 449 MB, free: 9.008 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.0101/0.3379, allocations: 5.27 MB / 454.3 MB, free: 3.668 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.338, allocations: 12.03 kB / 454.3 MB, free: 3.656 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008023/0.346, allocations: 2.104 MB / 456.4 MB, free: 1.543 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004631/0.3507, allocations: 2.539 MB / 458.9 MB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001962/0.3509, allocations: 274.8 kB / 459.2 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001111/0.352, allocations: 439.6 kB / 459.6 MB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02174/0.3738, allocations: 12.22 MB / 471.9 MB, free: 1.215 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001353/0.3739, allocations: 51.52 kB / 471.9 MB, free: 1.164 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004806/0.3744, allocations: 175.8 kB / 472.1 MB, free: 0.9922 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003127/0.3776, allocations: 2.162 MB / 474.2 MB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02114/0.3987, allocations: 10.2 MB / 484.4 MB, free: 4.605 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04911/0.4479, allocations: 44.12 MB / 0.5162 GB, free: 7.238 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01182/0.4598, allocations: 4.605 MB / 0.5207 GB, free: 2.438 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002532/0.4623, allocations: 1.716 MB / 0.5223 GB, free: 0.7148 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01145/0.4738, allocations: 8.234 MB / 0.5304 GB, free: 8.09 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.023e-05/0.4739, allocations: 59.81 kB / 0.5304 GB, free: 8.023 MB / 462.1 MB Notification: Performance of pre-optimization done (n=183): time 4.639e-06/0.4739, allocations: 0 / 0.5304 GB, free: 8.023 MB / 462.1 MB Notification: Performance of matching and sorting (n=205): time 0.2767/0.7506, allocations: 15.91 MB / 0.546 GB, free: 128.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001269/0.7519, allocations: 1.691 MB / 0.5476 GB, free: 126.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00568/0.7576, allocations: 4.198 MB / 0.5517 GB, free: 125 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000449/0.7581, allocations: 49.58 kB / 0.5518 GB, free: 125 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001718/0.7598, allocations: 3.399 MB / 0.5551 GB, free: 122.4 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000897/0.7607, allocations: 0.8107 MB / 0.5559 GB, free: 121.8 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001609/0.7623, allocations: 1.362 MB / 0.5572 GB, free: 121.1 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.524e-05/0.7624, allocations: 301.1 kB / 0.5575 GB, free: 120.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003047/0.7655, allocations: 2.268 MB / 0.5597 GB, free: 120.1 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005077/0.7706, allocations: 6.392 MB / 0.566 GB, free: 113.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008766/0.7794, allocations: 9.325 MB / 0.5751 GB, free: 102.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001346/0.7796, allocations: 40 kB / 0.5751 GB, free: 102.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02295/0.8025, allocations: 10.06 MB / 0.5849 GB, free: 92.18 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002039/0.8028, allocations: 68 kB / 0.585 GB, free: 92.11 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01123/0.814, allocations: 3.788 MB / 0.5887 GB, free: 88.31 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009892/0.824, allocations: 2.168 MB / 0.5908 GB, free: 86.13 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00494/0.829, allocations: 1.583 MB / 0.5924 GB, free: 84.54 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007826/0.8368, allocations: 6.604 MB / 0.5988 GB, free: 77.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005385/0.8422, allocations: 430.9 kB / 0.5992 GB, free: 77.25 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001179/0.8435, allocations: 420 kB / 0.5996 GB, free: 76.84 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (856): * Single equations (assignments): 847 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004226/0.8477, allocations: 2.21 MB / 0.6018 GB, free: 74.62 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001051/0.8488, allocations: 383.1 kB / 0.6022 GB, free: 74.24 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006965/0.8557, allocations: 3.281 MB / 0.6054 GB, free: 70.93 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005034/0.8608, allocations: 2.738 MB / 0.608 GB, free: 68.18 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.825e-05/0.8609, allocations: 15.88 kB / 0.608 GB, free: 68.16 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.977e-05/0.8609, allocations: 7.969 kB / 0.6081 GB, free: 68.15 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01864/0.8796, allocations: 10.33 MB / 0.6181 GB, free: 57.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.613e-05/0.8796, allocations: 16.22 kB / 0.6182 GB, free: 57.58 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00145/0.8811, allocations: 371.4 kB / 0.6185 GB, free: 57.21 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002736/0.8839, allocations: 0.9863 MB / 0.6195 GB, free: 56.21 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002936/0.8842, allocations: 63.97 kB / 0.6195 GB, free: 56.15 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004149/0.8883, allocations: 4.887 MB / 0.6243 GB, free: 50.99 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007444/0.8891, allocations: 1.561 MB / 0.6258 GB, free: 49.28 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00904/0.8982, allocations: 5.921 MB / 0.6316 GB, free: 43.16 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00115/0.8993, allocations: 444 kB / 0.632 GB, free: 42.71 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008535/0.9002, allocations: 59.98 kB / 0.6321 GB, free: 42.65 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002456/0.9027, allocations: 143.8 kB / 0.6322 GB, free: 42.51 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003938/0.9031, allocations: 172.4 kB / 0.6324 GB, free: 42.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001766/0.9033, allocations: 87.28 kB / 0.6325 GB, free: 42.26 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004571/0.9079, allocations: 2.585 MB / 0.635 GB, free: 39.66 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.7e-07/0.9079, allocations: 7.938 kB / 0.635 GB, free: 39.66 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.007365/0.9153, allocations: 1.165 MB / 0.6361 GB, free: 38.5 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * 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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * 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): 2 systems {(4,100.0%), (3,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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001026/0.9163, allocations: 215.2 kB / 0.6364 GB, free: 38.29 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01022/0.9266, allocations: 6.038 MB / 0.6422 GB, free: 32.22 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.53e-05/0.9266, allocations: 4 kB / 0.6423 GB, free: 32.21 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003805/0.9304, allocations: 2.197 MB / 0.6444 GB, free: 29.95 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004423/0.9349, allocations: 499.2 kB / 0.6449 GB, free: 29.46 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02291/0.9578, allocations: 11.09 MB / 0.6557 GB, free: 18.17 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006697/0.9646, allocations: 3.457 MB / 0.6591 GB, free: 14.68 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001536/0.9662, allocations: 319.4 kB / 0.6594 GB, free: 14.36 MB / 462.1 MB Notification: Performance of SimCode: time 1.623e-06/0.9662, allocations: 0 / 0.6594 GB, free: 14.36 MB / 462.1 MB Notification: Performance of Templates: time 0.358/1.324, allocations: 141.2 MB / 0.7973 GB, free: 118.2 MB / 0.5137 GB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches