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.001182/0.001182, allocations: 110.5 kB / 17.73 MB, free: 5.324 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.001124/0.001124, allocations: 187 kB / 18.66 MB, free: 4.395 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.502/1.502, allocations: 205.1 MB / 224.5 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.001297/0.001297, allocations: 51.92 kB / 328.5 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1088, allocations: 46.61 MB / 375.1 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.2324/0.3413, allocations: 7.436 MB / 382.6 MB, free: 9.418 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006958/0.3483, allocations: 3.246 MB / 385.8 MB, free: 7.977 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001642/0.35, allocations: 36.34 kB / 385.9 MB, free: 7.969 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002611/0.3527, allocations: 1.02 MB / 386.9 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004735/0.3574, allocations: 1.393 MB / 388.3 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001608/0.359, allocations: 454.7 kB / 388.7 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005301/0.3644, allocations: 2.639 MB / 391.4 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003149/0.3675, allocations: 1.535 MB / 392.9 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002237/0.3698, allocations: 0.8488 MB / 393.7 MB, free: 4.832 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002628/0.3724, allocations: 1.224 MB / 395 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000496/0.3729, allocations: 169.7 kB / 395.1 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003012/0.376, allocations: 1.021 MB / 396.2 MB, free: 4.141 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001783/0.3778, allocations: 1.115 MB / 397.3 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001476/0.3793, allocations: 1.309 MB / 398.6 MB, free: 2.809 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006239/0.3855, allocations: 4.36 MB / 402.9 MB, free: 15.97 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.53e-06/0.3855, allocations: 1.094 kB / 402.9 MB, free: 15.97 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3855, allocations: 4 kB / 402.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000114/0.3857, allocations: 0 / 402.9 MB, free: 15.96 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.008629/0.3943, allocations: 3.053 MB / 406 MB, free: 13.79 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.3944, allocations: 9.281 kB / 406 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007457/0.4018, allocations: 1.73 MB / 407.7 MB, free: 12.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003491/0.4053, allocations: 1.463 MB / 409.2 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001595/0.4055, allocations: 135.2 kB / 409.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009369/0.4065, allocations: 262.5 kB / 409.6 MB, free: 11.76 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01628/0.4228, allocations: 6.656 MB / 416.2 MB, free: 5.836 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001157/0.4229, allocations: 27.81 kB / 416.3 MB, free: 5.809 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005896/0.4235, allocations: 87.89 kB / 416.4 MB, free: 5.723 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002338/0.4259, allocations: 1.363 MB / 417.7 MB, free: 4.363 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01222/0.4381, allocations: 6.029 MB / 423.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03274/0.4709, allocations: 25.55 MB / 449.3 MB, free: 4.016 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007646/0.4786, allocations: 2.663 MB / 452 MB, free: 1.207 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001548/0.4802, allocations: 1.034 MB / 453 MB, free: 168 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007459/0.4876, allocations: 3.888 MB / 456.9 MB, free: 12.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.549e-05/0.4877, allocations: 47.06 kB / 456.9 MB, free: 11.96 MB / 382.1 MB Notification: Performance of pre-optimization done (n=112): time 4.398e-06/0.4877, allocations: 7.938 kB / 456.9 MB, free: 11.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=125): time 0.02972/0.5175, allocations: 10.29 MB / 467.2 MB, free: 1.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00146/0.5189, allocations: 1.694 MB / 468.9 MB, free: 15.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005164/0.5241, allocations: 2.733 MB / 471.6 MB, free: 12.87 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003528/0.5245, allocations: 41.7 kB / 471.7 MB, free: 12.82 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001778/0.5263, allocations: 2.091 MB / 473.8 MB, free: 10.7 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007329/0.5271, allocations: 0.4977 MB / 474.3 MB, free: 10.2 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001799/0.5289, allocations: 0.9164 MB / 475.2 MB, free: 9.266 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.529, allocations: 317 kB / 475.5 MB, free: 8.953 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002816/0.5318, allocations: 1.649 MB / 477.1 MB, free: 7.297 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004827/0.5367, allocations: 4.456 MB / 481.6 MB, free: 1.434 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007914/0.5446, allocations: 6.542 MB / 488.1 MB, free: 9.496 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001108/0.5447, allocations: 28 kB / 488.2 MB, free: 9.469 MB / 414.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02239/0.5671, allocations: 7.99 MB / 496.2 MB, free: 1.457 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001591/0.5674, allocations: 56.02 kB / 496.2 MB, free: 1.402 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01232/0.5797, allocations: 3.492 MB / 499.7 MB, free: 13.89 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01221/0.5919, allocations: 2.577 MB / 0.4905 GB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003618/0.5956, allocations: 1.018 MB / 0.4915 GB, free: 10.29 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01509/0.6107, allocations: 9.691 MB / 0.501 GB, free: 328 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005025/0.6158, allocations: 331.5 kB / 0.5013 GB, free: 15.99 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001179/0.617, allocations: 284 kB / 0.5016 GB, free: 15.72 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.004022/0.621, allocations: 1.423 MB / 0.503 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007908/0.6218, allocations: 237 kB / 0.5032 GB, free: 14.05 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007694/0.6296, allocations: 2.838 MB / 0.5059 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006122/0.6357, allocations: 2.517 MB / 0.5084 GB, free: 8.645 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.019e-05/0.6357, allocations: 4 kB / 0.5084 GB, free: 8.641 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.945e-05/0.6358, allocations: 3.984 kB / 0.5084 GB, free: 8.637 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01618/0.652, allocations: 6.875 MB / 0.5151 GB, free: 1.668 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.035e-05/0.652, allocations: 3.984 kB / 0.5151 GB, free: 1.664 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009642/0.653, allocations: 171.8 kB / 0.5153 GB, free: 1.496 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004983/0.658, allocations: 1.438 MB / 0.5167 GB, free: 48 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002549/0.6583, allocations: 35.97 kB / 0.5167 GB, free: 12 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01073/0.669, allocations: 7.915 MB / 0.5245 GB, free: 7.824 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001255/0.6703, allocations: 1.537 MB / 0.526 GB, free: 6.137 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009559/0.6799, allocations: 4.853 MB / 0.5307 GB, free: 1.242 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008253/0.6808, allocations: 297.9 kB / 0.531 GB, free: 0.9297 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006409/0.6814, allocations: 24.11 kB / 0.531 GB, free: 0.9062 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001574/0.683, allocations: 115.8 kB / 0.5311 GB, free: 0.793 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003309/0.6833, allocations: 84.31 kB / 0.5312 GB, free: 0.7109 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001335/0.6835, allocations: 35.98 kB / 0.5312 GB, free: 0.6758 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003427/0.6869, allocations: 1.701 MB / 0.5329 GB, free: 14.96 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.9e-07/0.6869, allocations: 4 kB / 0.5329 GB, free: 14.96 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004733/0.6917, allocations: 0.789 MB / 0.5337 GB, free: 14.17 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.0005011/0.6922, allocations: 163.1 kB / 0.5338 GB, free: 14 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008413/0.7006, allocations: 4.45 MB / 0.5382 GB, free: 9.516 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.877e-06/0.7007, allocations: 0 / 0.5382 GB, free: 9.516 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003595/0.7043, allocations: 1.725 MB / 0.5399 GB, free: 7.734 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002938/0.7072, allocations: 276.1 kB / 0.5401 GB, free: 7.465 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01491/0.7222, allocations: 6.542 MB / 0.5465 GB, free: 0.8633 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2268/0.949, allocations: 2.295 MB / 0.5488 GB, free: 151.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00514/0.9542, allocations: 1.405 MB / 0.5501 GB, free: 151.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007298/0.9549, allocations: 169.7 kB / 0.5503 GB, free: 151.7 MB / 478.1 MB Notification: Performance of SimCode: time 8.41e-07/0.9549, allocations: 0.9062 kB / 0.5503 GB, free: 151.7 MB / 478.1 MB Notification: Performance of Templates: time 0.05717/1.012, allocations: 28.59 MB / 0.5782 GB, free: 142.2 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/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