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.001065/0.001065, allocations: 109.7 kB / 17.06 MB, free: 5.824 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.001015/0.001015, allocations: 191 kB / 18 MB, free: 4.977 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.323/1.323, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 51.92 kB / 351.3 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.2516, allocations: 49.43 MB / 400.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008058/0.2597, allocations: 7.439 MB / 408.2 MB, free: 1.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005413/0.2651, allocations: 3.242 MB / 411.4 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000619/0.2657, allocations: 39.88 kB / 411.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001951/0.2678, allocations: 1.016 MB / 412.5 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002835/0.2706, allocations: 1.401 MB / 413.9 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001039/0.2717, allocations: 467.1 kB / 414.3 MB, free: 11.24 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003286/0.275, allocations: 2.633 MB / 416.9 MB, free: 8.605 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001716/0.2767, allocations: 1.52 MB / 418.5 MB, free: 7.055 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001099/0.2778, allocations: 0.8447 MB / 419.3 MB, free: 6.207 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001429/0.2792, allocations: 1.215 MB / 420.5 MB, free: 4.988 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002998/0.2796, allocations: 172 kB / 420.7 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001717/0.2813, allocations: 1.037 MB / 421.7 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008571/0.2821, allocations: 1.106 MB / 422.8 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001018/0.2832, allocations: 1.308 MB / 424.1 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004001/0.2872, allocations: 4.365 MB / 428.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2872, allocations: 0 / 428.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.2872, allocations: 0 / 428.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.422e-05/0.2873, allocations: 0 / 428.5 MB, free: 12.98 MB / 350.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.005235/0.2925, allocations: 3.059 MB / 431.6 MB, free: 9.863 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.2926, allocations: 8.031 kB / 431.6 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006203/0.2988, allocations: 1.732 MB / 433.3 MB, free: 8.117 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002949/0.3018, allocations: 1.406 MB / 434.7 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001443/0.3019, allocations: 135.2 kB / 434.8 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007585/0.3027, allocations: 255.7 kB / 435.1 MB, free: 6.285 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01155/0.3143, allocations: 6.66 MB / 441.8 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001358/0.3144, allocations: 27.75 kB / 441.8 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004094/0.3149, allocations: 87.89 kB / 441.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002038/0.3169, allocations: 1.367 MB / 443.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01257/0.3295, allocations: 6.029 MB / 449.3 MB, free: 7.652 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03463/0.3642, allocations: 25.54 MB / 474.8 MB, free: 13.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007392/0.3716, allocations: 2.671 MB / 477.5 MB, free: 10.53 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001797/0.3734, allocations: 1.036 MB / 478.5 MB, free: 9.484 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007397/0.3809, allocations: 3.892 MB / 482.4 MB, free: 5.336 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.049e-05/0.3809, allocations: 43.12 kB / 482.4 MB, free: 5.285 MB / 398.1 MB Notification: Performance of pre-optimization done (n=112): time 4.187e-06/0.381, allocations: 0 / 482.4 MB, free: 5.285 MB / 398.1 MB Notification: Performance of matching and sorting (n=125): time 0.02761/0.4086, allocations: 10.29 MB / 492.7 MB, free: 10.82 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001816/0.4104, allocations: 1.667 MB / 494.4 MB, free: 8.977 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005675/0.4161, allocations: 2.725 MB / 497.1 MB, free: 6.23 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003288/0.4165, allocations: 37.73 kB / 497.2 MB, free: 6.188 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002035/0.4186, allocations: 2.095 MB / 499.3 MB, free: 4.059 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008267/0.4194, allocations: 0.5054 MB / 499.8 MB, free: 3.547 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001962/0.4214, allocations: 0.9126 MB / 0.4889 GB, free: 2.621 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.4215, allocations: 309.1 kB / 0.4892 GB, free: 2.316 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002991/0.4245, allocations: 1.648 MB / 0.4909 GB, free: 0.6602 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005252/0.4298, allocations: 4.464 MB / 0.4952 GB, free: 10.79 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008696/0.4385, allocations: 6.549 MB / 0.5016 GB, free: 2.848 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.4e-05/0.4386, allocations: 28 kB / 0.5016 GB, free: 2.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.0199/0.4585, allocations: 7.993 MB / 0.5094 GB, free: 10.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001506/0.4587, allocations: 48 kB / 0.5095 GB, free: 10.76 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01168/0.4704, allocations: 3.492 MB / 0.5129 GB, free: 7.254 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01125/0.4817, allocations: 2.577 MB / 0.5154 GB, free: 4.664 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003383/0.4851, allocations: 1.014 MB / 0.5164 GB, free: 3.648 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01423/0.4994, allocations: 9.692 MB / 0.5259 GB, free: 9.68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003383/0.5028, allocations: 335.5 kB / 0.5262 GB, free: 9.352 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006651/0.5035, allocations: 284 kB / 0.5265 GB, free: 9.074 MB / 462.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.002455/0.5059, allocations: 1.429 MB / 0.5279 GB, free: 7.637 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005124/0.5065, allocations: 229 kB / 0.5281 GB, free: 7.41 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00668/0.5131, allocations: 2.831 MB / 0.5308 GB, free: 4.547 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005686/0.5189, allocations: 2.517 MB / 0.5333 GB, free: 2.012 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.679e-05/0.5189, allocations: 8 kB / 0.5333 GB, free: 2.004 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.217e-05/0.5189, allocations: 12.05 kB / 0.5333 GB, free: 1.992 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2368/0.7557, allocations: 6.861 MB / 0.54 GB, free: 129 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.268e-05/0.7558, allocations: 1.594 kB / 0.54 GB, free: 129 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007748/0.7565, allocations: 180 kB / 0.5402 GB, free: 129 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004358/0.7609, allocations: 1.432 MB / 0.5416 GB, free: 128.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001718/0.7611, allocations: 29.81 kB / 0.5416 GB, free: 128.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008304/0.7694, allocations: 7.922 MB / 0.5493 GB, free: 124.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007212/0.7702, allocations: 1.532 MB / 0.5508 GB, free: 122.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007266/0.7775, allocations: 4.854 MB / 0.5556 GB, free: 120.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006048/0.7781, allocations: 292.3 kB / 0.5559 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002412/0.7784, allocations: 23.98 kB / 0.5559 GB, free: 120.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001042/0.7794, allocations: 112.6 kB / 0.556 GB, free: 120.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002416/0.7797, allocations: 76.39 kB / 0.5561 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001029/0.7798, allocations: 45.61 kB / 0.5561 GB, free: 120.3 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002068/0.7818, allocations: 1.685 MB / 0.5578 GB, free: 118.6 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.132e-06/0.7819, allocations: 0 / 0.5578 GB, free: 118.6 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003201/0.7851, allocations: 0.8017 MB / 0.5585 GB, free: 117.8 MB / 462.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.0003305/0.7854, allocations: 153.6 kB / 0.5587 GB, free: 117.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005854/0.7913, allocations: 4.466 MB / 0.563 GB, free: 113.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.7913, allocations: 0 / 0.563 GB, free: 113.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002613/0.7939, allocations: 1.728 MB / 0.5647 GB, free: 111.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001637/0.7956, allocations: 261.4 kB / 0.565 GB, free: 111.2 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007554/0.8032, allocations: 6.531 MB / 0.5714 GB, free: 104.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001574/0.8048, allocations: 2.296 MB / 0.5736 GB, free: 102.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002413/0.8072, allocations: 1.404 MB / 0.575 GB, free: 101 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003292/0.8075, allocations: 167.4 kB / 0.5751 GB, free: 100.8 MB / 462.1 MB Notification: Performance of SimCode: time 6.52e-07/0.8075, allocations: 0 / 0.5751 GB, free: 100.8 MB / 462.1 MB Notification: Performance of Templates: time 0.04183/0.8494, allocations: 28.58 MB / 0.603 GB, free: 72.38 MB / 462.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins/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