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.001179/0.001179, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001143/0.001144, allocations: 192 kB / 18.51 MB, free: 4.508 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.367/1.367, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001321/0.001321, allocations: 59.91 kB / 280.7 MB, free: 3.164 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1092, allocations: 46.62 MB / 327.3 MB, free: 4.473 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.009624/0.1189, allocations: 7.433 MB / 334.7 MB, free: 12.99 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006514/0.1255, allocations: 3.235 MB / 337.9 MB, free: 9.742 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007706/0.1263, allocations: 39.88 kB / 338 MB, free: 9.703 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002267/0.1286, allocations: 1.027 MB / 339 MB, free: 8.672 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002904/0.1315, allocations: 1.37 MB / 340.4 MB, free: 7.297 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001061/0.1326, allocations: 451.1 kB / 340.8 MB, free: 6.855 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003596/0.1362, allocations: 2.645 MB / 343.5 MB, free: 4.203 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00223/0.1384, allocations: 1.535 MB / 345 MB, free: 2.652 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001249/0.1397, allocations: 0.8408 MB / 345.8 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00147/0.1412, allocations: 1.223 MB / 347.1 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003294/0.1415, allocations: 172 kB / 347.2 MB, free: 424 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001885/0.1434, allocations: 1.022 MB / 348.3 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001084/0.1445, allocations: 1.11 MB / 349.4 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001491/0.146, allocations: 1.312 MB / 350.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006011/0.1521, allocations: 4.178 MB / 354.9 MB, free: 8.766 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.106e-06/0.1521, allocations: 3.938 kB / 354.9 MB, free: 8.762 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.715e-06/0.1521, allocations: 0 / 354.9 MB, free: 8.762 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.47e-05/0.1522, allocations: 0 / 354.9 MB, free: 8.762 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.006566/0.1588, allocations: 3.055 MB / 357.9 MB, free: 5.648 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.269e-05/0.1588, allocations: 12.03 kB / 357.9 MB, free: 5.637 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006528/0.1654, allocations: 1.736 MB / 359.7 MB, free: 3.895 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003248/0.1686, allocations: 1.437 MB / 361.1 MB, free: 2.414 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001215/0.1688, allocations: 135.3 kB / 361.2 MB, free: 2.281 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000663/0.1695, allocations: 255.6 kB / 361.5 MB, free: 2.031 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0114/0.1809, allocations: 6.656 MB / 368.1 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001238/0.181, allocations: 27.72 kB / 368.2 MB, free: 10.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004262/0.1815, allocations: 91.89 kB / 368.3 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00239/0.1839, allocations: 1.359 MB / 369.6 MB, free: 9.422 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01254/0.1964, allocations: 6.037 MB / 375.7 MB, free: 3.387 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.235/0.4315, allocations: 25.64 MB / 401.3 MB, free: 32.2 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006518/0.438, allocations: 2.662 MB / 404 MB, free: 31.01 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00125/0.4393, allocations: 1.031 MB / 405 MB, free: 30.58 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005545/0.4449, allocations: 3.898 MB / 408.9 MB, free: 27.64 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.4449, allocations: 47 kB / 408.9 MB, free: 27.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=112): time 3.907e-06/0.4449, allocations: 0 / 408.9 MB, free: 27.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=125): time 0.02344/0.4684, allocations: 10.31 MB / 419.2 MB, free: 20.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0009591/0.4694, allocations: 1.677 MB / 420.9 MB, free: 18.49 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00283/0.4722, allocations: 2.737 MB / 423.6 MB, free: 15.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001923/0.4724, allocations: 41.92 kB / 423.7 MB, free: 15.69 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008566/0.4733, allocations: 2.079 MB / 425.8 MB, free: 13.61 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004156/0.4737, allocations: 0.505 MB / 426.3 MB, free: 13.11 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008759/0.4746, allocations: 0.9192 MB / 427.2 MB, free: 12.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.814e-05/0.4747, allocations: 309.1 kB / 427.5 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001808/0.4765, allocations: 1.648 MB / 429.1 MB, free: 10.22 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002826/0.4793, allocations: 4.456 MB / 433.6 MB, free: 4.355 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006045/0.4854, allocations: 6.548 MB / 440.1 MB, free: 12.42 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.345e-05/0.4854, allocations: 28 kB / 440.2 MB, free: 12.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.0192/0.5046, allocations: 7.994 MB / 448.2 MB, free: 4.379 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.464e-05/0.5047, allocations: 48 kB / 448.2 MB, free: 4.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01119/0.5159, allocations: 3.496 MB / 451.7 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01173/0.5277, allocations: 2.589 MB / 454.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003083/0.5308, allocations: 1.014 MB / 455.3 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0145/0.5453, allocations: 9.699 MB / 465 MB, free: 3.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003536/0.5489, allocations: 327.5 kB / 465.3 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000407/0.5493, allocations: 286.1 kB / 465.6 MB, free: 2.633 MB / 350.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.002023/0.5513, allocations: 1.427 MB / 467 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003797/0.5517, allocations: 233 kB / 467.3 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006211/0.5579, allocations: 2.836 MB / 470.1 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005571/0.5635, allocations: 2.518 MB / 472.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.5636, allocations: 4 kB / 472.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.783e-05/0.5636, allocations: 7.984 kB / 472.6 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01254/0.5761, allocations: 6.87 MB / 479.5 MB, free: 4.637 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.045e-05/0.5762, allocations: 4 kB / 479.5 MB, free: 4.633 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007727/0.5769, allocations: 183.7 kB / 479.7 MB, free: 4.453 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004597/0.5816, allocations: 1.44 MB / 481.1 MB, free: 3.008 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001577/0.5817, allocations: 35.97 kB / 481.2 MB, free: 2.973 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0104/0.5921, allocations: 7.921 MB / 489.1 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001196/0.5933, allocations: 1.541 MB / 490.6 MB, free: 9.086 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008971/0.6023, allocations: 4.852 MB / 495.5 MB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008576/0.6032, allocations: 294 kB / 495.8 MB, free: 3.891 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000279/0.6035, allocations: 28 kB / 495.8 MB, free: 3.863 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001125/0.6046, allocations: 107.8 kB / 495.9 MB, free: 3.758 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002868/0.6049, allocations: 84.31 kB / 496 MB, free: 3.676 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.643e-05/0.605, allocations: 47.92 kB / 496 MB, free: 3.629 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002893/0.6079, allocations: 1.693 MB / 497.7 MB, free: 1.926 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6079, allocations: 0 / 497.7 MB, free: 1.926 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004668/0.6126, allocations: 0.7942 MB / 498.5 MB, free: 1.137 MB / 382.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.0005372/0.6132, allocations: 153.7 kB / 498.7 MB, free: 0.9766 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008998/0.6222, allocations: 4.765 MB / 0.4916 GB, free: 12.19 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.6222, allocations: 0 / 0.4916 GB, free: 12.19 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003316/0.6255, allocations: 1.728 MB / 0.4933 GB, free: 10.41 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001881/0.6274, allocations: 265 kB / 0.4936 GB, free: 10.15 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01243/0.6399, allocations: 6.619 MB / 0.5 GB, free: 3.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002415/0.6423, allocations: 2.301 MB / 0.5023 GB, free: 1.148 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.003432/0.6458, allocations: 1.404 MB / 0.5036 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004059/0.6462, allocations: 175.3 kB / 0.5038 GB, free: 15.57 MB / 414.1 MB Notification: Performance of SimCode: time 1.182e-06/0.6462, allocations: 0 / 0.5038 GB, free: 15.57 MB / 414.1 MB Notification: Performance of Templates: time 0.05794/0.7042, allocations: 30.75 MB / 0.5338 GB, free: 0.7695 MB / 430.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins/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