Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001506/0.001506, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001766/0.001766, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 246.3 MB, free: 10.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001164/0.001164, allocations: 62.36 kB / 306.3 MB, free: 1.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1147, allocations: 50.53 MB / 356.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.2095/0.3243, allocations: 17.79 MB / 374.6 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009294/0.3336, allocations: 5.034 MB / 379.6 MB, free: 8.207 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003713/0.3374, allocations: 71.44 kB / 379.7 MB, free: 8.195 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002303/0.3398, allocations: 1 MB / 380.7 MB, free: 7.887 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003465/0.3433, allocations: 1.255 MB / 381.9 MB, free: 7.504 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001014/0.3443, allocations: 414.1 kB / 382.4 MB, free: 7.371 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004543/0.3489, allocations: 3.646 MB / 386 MB, free: 6.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002193/0.3511, allocations: 1.501 MB / 387.5 MB, free: 6.016 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001699/0.3528, allocations: 0.7259 MB / 388.2 MB, free: 5.766 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001835/0.3546, allocations: 1.299 MB / 389.5 MB, free: 5.254 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003872/0.355, allocations: 114.4 kB / 389.6 MB, free: 5.254 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002003/0.357, allocations: 1.007 MB / 390.6 MB, free: 4.805 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009775/0.358, allocations: 1.056 MB / 391.7 MB, free: 4.234 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001031/0.3591, allocations: 1.255 MB / 393 MB, free: 3.293 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004071/0.3631, allocations: 4.113 MB / 397.1 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.3632, allocations: 3.938 kB / 397.1 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.3632, allocations: 2.531 kB / 397.1 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001145/0.3633, allocations: 0 / 397.1 MB, free: 0.6172 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.007637/0.3709, allocations: 3.019 MB / 400.1 MB, free: 14.54 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.868e-05/0.371, allocations: 14.22 kB / 400.1 MB, free: 14.54 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006527/0.3776, allocations: 1.794 MB / 401.9 MB, free: 13.62 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002915/0.3805, allocations: 1.361 MB / 403.3 MB, free: 12.27 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001132/0.3806, allocations: 139.3 kB / 403.4 MB, free: 12.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000658/0.3813, allocations: 254.1 kB / 403.6 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01052/0.3918, allocations: 6.664 MB / 410.3 MB, free: 4.898 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.002e-05/0.3919, allocations: 31.69 kB / 410.3 MB, free: 4.867 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002455/0.3922, allocations: 88.11 kB / 410.4 MB, free: 4.809 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002038/0.3942, allocations: 1.374 MB / 411.8 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01131/0.4055, allocations: 6.041 MB / 417.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03808/0.4437, allocations: 25.63 MB / 443.5 MB, free: 3.121 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00802/0.4518, allocations: 2.676 MB / 446.1 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00161/0.4534, allocations: 1.035 MB / 447.2 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007269/0.4607, allocations: 3.981 MB / 451.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.252e-05/0.4608, allocations: 47.06 kB / 451.2 MB, free: 10.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=112): time 4.819e-06/0.4608, allocations: 4 kB / 451.2 MB, free: 10.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=125): time 0.02934/0.4902, allocations: 10.32 MB / 461.5 MB, free: 0.4961 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001636/0.4919, allocations: 1.58 MB / 463.1 MB, free: 14.74 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004744/0.4966, allocations: 2.721 MB / 465.8 MB, free: 12 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003672/0.497, allocations: 45.64 kB / 465.9 MB, free: 11.95 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00165/0.4987, allocations: 2.076 MB / 467.9 MB, free: 9.875 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006892/0.4994, allocations: 0.5038 MB / 468.5 MB, free: 9.375 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001256/0.5007, allocations: 0.9185 MB / 469.4 MB, free: 8.445 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.5008, allocations: 309.1 kB / 469.7 MB, free: 8.141 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002585/0.5034, allocations: 1.656 MB / 471.3 MB, free: 6.477 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00465/0.508, allocations: 4.46 MB / 475.8 MB, free: 0.6094 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007826/0.5159, allocations: 6.555 MB / 482.3 MB, free: 8.668 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.053e-05/0.516, allocations: 28 kB / 482.4 MB, free: 8.641 MB / 398.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01996/0.5359, allocations: 8.083 MB / 490.5 MB, free: 0.5469 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.64e-05/0.536, allocations: 48 kB / 490.5 MB, free: 0.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01137/0.5474, allocations: 3.571 MB / 494.1 MB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01173/0.5591, allocations: 2.673 MB / 496.7 MB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003467/0.5626, allocations: 1.014 MB / 497.8 MB, free: 9.215 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01425/0.5769, allocations: 8.902 MB / 0.4948 GB, free: 52 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004152/0.5811, allocations: 341.8 kB / 0.4951 GB, free: 15.72 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001243/0.5824, allocations: 280 kB / 0.4954 GB, free: 15.45 MB / 430.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.003024/0.5854, allocations: 1.417 MB / 0.4968 GB, free: 14.02 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004856/0.5859, allocations: 233.1 kB / 0.497 GB, free: 13.79 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005826/0.5865, allocations: 325.9 kB / 0.4973 GB, free: 13.46 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00593/0.5924, allocations: 2.536 MB / 0.4998 GB, free: 10.9 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.354e-05/0.5925, allocations: 4 kB / 0.4998 GB, free: 10.9 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.076e-05/0.5925, allocations: 7.969 kB / 0.4998 GB, free: 10.89 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0132/0.6057, allocations: 6.879 MB / 0.5065 GB, free: 3.945 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.658e-06/0.6057, allocations: 0 / 0.5065 GB, free: 3.945 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008512/0.6066, allocations: 175.7 kB / 0.5067 GB, free: 3.773 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00499/0.6116, allocations: 1.434 MB / 0.5081 GB, free: 2.328 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001418/0.6117, allocations: 27.98 kB / 0.5081 GB, free: 2.301 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01006/0.6218, allocations: 7.326 MB / 0.5153 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001084/0.6229, allocations: 1.455 MB / 0.5167 GB, free: 9.117 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009089/0.632, allocations: 4.875 MB / 0.5214 GB, free: 4.203 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006517/0.6327, allocations: 290 kB / 0.5217 GB, free: 3.898 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004516/0.6332, allocations: 25.94 kB / 0.5217 GB, free: 3.875 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001267/0.6344, allocations: 107.8 kB / 0.5218 GB, free: 3.77 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002835/0.6347, allocations: 92.31 kB / 0.5219 GB, free: 3.676 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001089/0.6348, allocations: 35.98 kB / 0.522 GB, free: 3.641 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003052/0.6379, allocations: 1.689 MB / 0.5236 GB, free: 1.941 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6379, allocations: 0 / 0.5236 GB, free: 1.941 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004244/0.6422, allocations: 0.7728 MB / 0.5244 GB, free: 1.172 MB / 446.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.0004505/0.6426, allocations: 161.2 kB / 0.5245 GB, free: 1.004 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1633/0.8059, allocations: 4.427 MB / 0.5288 GB, free: 145.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.146e-06/0.806, allocations: 1.375 kB / 0.5288 GB, free: 145.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003201/0.8092, allocations: 1.723 MB / 0.5305 GB, free: 145.3 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00189/0.8111, allocations: 252.1 kB / 0.5308 GB, free: 145.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01219/0.8233, allocations: 7.792 MB / 0.5384 GB, free: 141.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002663/0.826, allocations: 2.299 MB / 0.5406 GB, free: 140.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003726/0.8298, allocations: 1.404 MB / 0.542 GB, free: 140.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005091/0.8303, allocations: 166 kB / 0.5421 GB, free: 140.1 MB / 446.1 MB Notification: Performance of SimCode: time 8.61e-07/0.8303, allocations: 0 / 0.5421 GB, free: 140.1 MB / 446.1 MB Notification: Performance of Templates: time 0.04442/0.8747, allocations: 29.53 MB / 0.571 GB, free: 120.4 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches