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.00115/0.00115, allocations: 110.6 kB / 17.73 MB, free: 5.332 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.001405/0.001405, allocations: 190.9 kB / 18.66 MB, free: 4.406 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.43/1.43, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001334/0.001334, allocations: 55.92 kB / 328.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09985/0.1012, allocations: 46.61 MB / 375.1 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.2259/0.3272, allocations: 7.433 MB / 382.6 MB, free: 9.418 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007268/0.3345, allocations: 3.239 MB / 385.8 MB, free: 7.98 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001721/0.3363, allocations: 36.56 kB / 385.9 MB, free: 7.973 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002994/0.3393, allocations: 1.028 MB / 386.9 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004938/0.3443, allocations: 1.366 MB / 388.3 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001445/0.3458, allocations: 458.8 kB / 388.7 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004704/0.3505, allocations: 2.639 MB / 391.3 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002914/0.3534, allocations: 1.527 MB / 392.9 MB, free: 5.211 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001984/0.3554, allocations: 0.8479 MB / 393.7 MB, free: 4.859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00262/0.3581, allocations: 1.224 MB / 394.9 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008815/0.359, allocations: 170.5 kB / 395.1 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002941/0.3619, allocations: 1.027 MB / 396.1 MB, free: 4.164 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001725/0.3636, allocations: 1.113 MB / 397.2 MB, free: 3.766 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00151/0.3652, allocations: 1.306 MB / 398.6 MB, free: 2.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005313/0.3705, allocations: 4.365 MB / 402.9 MB, free: 4 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.3705, allocations: 1.125 kB / 402.9 MB, free: 4 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.3705, allocations: 0 / 402.9 MB, free: 4 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001102/0.3706, allocations: 4 kB / 402.9 MB, free: 0 / 318.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.00766/0.3783, allocations: 3.046 MB / 406 MB, free: 13.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.3784, allocations: 9.531 kB / 406 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007566/0.3859, allocations: 1.735 MB / 407.7 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003778/0.3898, allocations: 1.455 MB / 409.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001473/0.3899, allocations: 141.7 kB / 409.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008649/0.3908, allocations: 258.8 kB / 409.6 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0131/0.4039, allocations: 6.661 MB / 416.2 MB, free: 5.887 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.241e-05/0.404, allocations: 23.81 kB / 416.2 MB, free: 5.863 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002959/0.4043, allocations: 83.91 kB / 416.3 MB, free: 5.781 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002272/0.4066, allocations: 1.363 MB / 417.7 MB, free: 4.422 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01193/0.4186, allocations: 6.037 MB / 423.7 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03573/0.4543, allocations: 25.54 MB / 449.3 MB, free: 4.074 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007617/0.462, allocations: 2.672 MB / 451.9 MB, free: 1.258 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001623/0.4637, allocations: 1.032 MB / 453 MB, free: 220 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007191/0.4709, allocations: 3.892 MB / 456.9 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.701e-05/0.471, allocations: 51 kB / 456.9 MB, free: 12.01 MB / 382.1 MB Notification: Performance of pre-optimization done (n=112): time 4.368e-06/0.471, allocations: 0 / 456.9 MB, free: 12.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=125): time 0.02986/0.5008, allocations: 10.3 MB / 467.2 MB, free: 1.543 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001565/0.5025, allocations: 1.686 MB / 468.9 MB, free: 15.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004433/0.5069, allocations: 2.737 MB / 471.6 MB, free: 12.92 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003028/0.5072, allocations: 37.7 kB / 471.7 MB, free: 12.88 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001587/0.5088, allocations: 2.091 MB / 473.8 MB, free: 10.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006878/0.5095, allocations: 0.5016 MB / 474.3 MB, free: 10.24 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001586/0.5111, allocations: 0.9164 MB / 475.2 MB, free: 9.312 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.382e-05/0.5112, allocations: 305.1 kB / 475.5 MB, free: 9.012 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002581/0.5138, allocations: 1.656 MB / 477.1 MB, free: 7.348 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004408/0.5183, allocations: 4.456 MB / 481.6 MB, free: 1.484 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007239/0.5255, allocations: 6.546 MB / 488.1 MB, free: 9.543 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.483e-05/0.5256, allocations: 28 kB / 488.2 MB, free: 9.516 MB / 414.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01975/0.5454, allocations: 7.994 MB / 496.1 MB, free: 1.5 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.349e-05/0.5455, allocations: 44.19 kB / 496.2 MB, free: 1.457 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01214/0.5576, allocations: 3.495 MB / 499.7 MB, free: 13.95 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01256/0.5702, allocations: 2.585 MB / 0.4905 GB, free: 11.35 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003509/0.5738, allocations: 1.006 MB / 0.4915 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0161/0.5899, allocations: 9.695 MB / 0.5009 GB, free: 380 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004331/0.5943, allocations: 327.4 kB / 0.5013 GB, free: 52 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001164/0.5955, allocations: 284 kB / 0.5015 GB, free: 15.77 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.003794/0.5993, allocations: 1.43 MB / 0.5029 GB, free: 14.33 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000729/0.6, allocations: 229 kB / 0.5031 GB, free: 14.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007474/0.6075, allocations: 2.838 MB / 0.5059 GB, free: 11.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006019/0.6136, allocations: 2.513 MB / 0.5084 GB, free: 8.703 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.67e-05/0.6136, allocations: 8 kB / 0.5084 GB, free: 8.695 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.831e-05/0.6136, allocations: 3.984 kB / 0.5084 GB, free: 8.691 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01457/0.6282, allocations: 6.875 MB / 0.5151 GB, free: 1.723 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.021e-05/0.6283, allocations: 8 kB / 0.5151 GB, free: 1.715 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009242/0.6292, allocations: 175.7 kB / 0.5153 GB, free: 1.543 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005035/0.6343, allocations: 1.438 MB / 0.5167 GB, free: 96 kB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001742/0.6345, allocations: 31.98 kB / 0.5167 GB, free: 64 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0105/0.645, allocations: 7.915 MB / 0.5244 GB, free: 7.875 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00106/0.6461, allocations: 1.533 MB / 0.5259 GB, free: 6.191 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009408/0.6555, allocations: 4.853 MB / 0.5307 GB, free: 1.297 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001056/0.6566, allocations: 294.1 kB / 0.531 GB, free: 0.9883 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007116/0.6573, allocations: 39.92 kB / 0.531 GB, free: 0.9492 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001574/0.6589, allocations: 107.8 kB / 0.5311 GB, free: 0.8438 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003098/0.6592, allocations: 84.31 kB / 0.5312 GB, free: 0.7617 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001316/0.6594, allocations: 39.98 kB / 0.5312 GB, free: 0.7227 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003497/0.6629, allocations: 1.693 MB / 0.5329 GB, free: 15.02 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6629, allocations: 0 / 0.5329 GB, free: 15.02 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004509/0.6674, allocations: 0.797 MB / 0.5336 GB, free: 14.22 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.0004953/0.6679, allocations: 159.1 kB / 0.5338 GB, free: 14.06 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.008175/0.6761, allocations: 4.458 MB / 0.5382 GB, free: 9.562 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.6761, allocations: 0 / 0.5382 GB, free: 9.562 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003399/0.6795, allocations: 1.721 MB / 0.5398 GB, free: 7.785 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002246/0.6818, allocations: 267.9 kB / 0.5401 GB, free: 7.523 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01206/0.6939, allocations: 6.55 MB / 0.5465 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2049/0.8989, allocations: 2.293 MB / 0.5487 GB, free: 151.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004039/0.9029, allocations: 1.408 MB / 0.5501 GB, free: 151.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005028/0.9035, allocations: 166.8 kB / 0.5503 GB, free: 151.8 MB / 478.1 MB Notification: Performance of SimCode: time 7.81e-07/0.9035, allocations: 1.5 kB / 0.5503 GB, free: 151.8 MB / 478.1 MB Notification: Performance of Templates: time 0.05607/0.9595, allocations: 28.6 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