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.001302/0.001302, allocations: 113.9 kB / 17.07 MB, free: 5.988 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.001395/0.001395, allocations: 196 kB / 18.01 MB, free: 5.066 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.363/1.363, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 55.91 kB / 351.3 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.3006, allocations: 49.42 MB / 400.7 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.008374/0.309, allocations: 7.44 MB / 408.2 MB, free: 1.371 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006053/0.3151, allocations: 3.242 MB / 411.4 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009463/0.3161, allocations: 35.88 kB / 411.4 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002203/0.3183, allocations: 1.024 MB / 412.5 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003166/0.3215, allocations: 1.393 MB / 413.9 MB, free: 11.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009254/0.3224, allocations: 467.1 kB / 414.3 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00308/0.3255, allocations: 2.628 MB / 416.9 MB, free: 8.566 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001596/0.3272, allocations: 1.52 MB / 418.5 MB, free: 7.016 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009602/0.3281, allocations: 0.8408 MB / 419.3 MB, free: 6.172 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001318/0.3295, allocations: 1.219 MB / 420.5 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003121/0.3298, allocations: 172 kB / 420.7 MB, free: 4.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001647/0.3314, allocations: 1.034 MB / 421.7 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009303/0.3324, allocations: 1.114 MB / 422.8 MB, free: 2.629 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001106/0.3335, allocations: 1.305 MB / 424.1 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004105/0.3376, allocations: 4.365 MB / 428.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3376, allocations: 0 / 428.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3376, allocations: 0 / 428.5 MB, free: 12.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.756e-05/0.3377, allocations: 0 / 428.5 MB, free: 12.94 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.005549/0.3432, allocations: 3.054 MB / 431.6 MB, free: 9.832 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.259e-05/0.3433, allocations: 12.03 kB / 431.6 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006802/0.3501, allocations: 1.732 MB / 433.3 MB, free: 8.082 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002595/0.3527, allocations: 1.409 MB / 434.7 MB, free: 6.629 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000111/0.3529, allocations: 135.3 kB / 434.8 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006754/0.3535, allocations: 255.7 kB / 435.1 MB, free: 6.246 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01082/0.3644, allocations: 6.66 MB / 441.8 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.958e-05/0.3645, allocations: 27.75 kB / 441.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002624/0.3648, allocations: 87.89 kB / 441.9 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002247/0.367, allocations: 1.363 MB / 443.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01177/0.3788, allocations: 6.041 MB / 449.3 MB, free: 7.602 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03355/0.4124, allocations: 25.53 MB / 474.8 MB, free: 13.3 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007457/0.4199, allocations: 2.667 MB / 477.5 MB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001454/0.4214, allocations: 1.036 MB / 478.5 MB, free: 9.445 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00629/0.4277, allocations: 3.888 MB / 482.4 MB, free: 5.301 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.049e-05/0.4278, allocations: 51.12 kB / 482.4 MB, free: 5.242 MB / 398.1 MB Notification: Performance of pre-optimization done (n=112): time 4.589e-06/0.4278, allocations: 0 / 482.4 MB, free: 5.242 MB / 398.1 MB Notification: Performance of matching and sorting (n=125): time 0.02801/0.4558, allocations: 10.3 MB / 492.7 MB, free: 10.77 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001341/0.4572, allocations: 1.663 MB / 494.4 MB, free: 8.934 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004111/0.4613, allocations: 2.725 MB / 497.1 MB, free: 6.188 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001806/0.4615, allocations: 41.7 kB / 497.2 MB, free: 6.141 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001474/0.463, allocations: 2.087 MB / 499.3 MB, free: 4.02 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005746/0.4636, allocations: 0.5054 MB / 499.8 MB, free: 3.508 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001387/0.465, allocations: 0.9165 MB / 0.4889 GB, free: 2.578 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.496e-05/0.4651, allocations: 305.1 kB / 0.4892 GB, free: 2.277 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002489/0.4676, allocations: 1.652 MB / 0.4909 GB, free: 0.6172 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004286/0.4719, allocations: 4.46 MB / 0.4952 GB, free: 10.75 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006965/0.4789, allocations: 6.541 MB / 0.5016 GB, free: 2.816 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.436e-05/0.4789, allocations: 32 kB / 0.5016 GB, free: 2.785 MB / 430.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.02028/0.4992, allocations: 7.998 MB / 0.5094 GB, free: 10.76 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001272/0.4994, allocations: 48 kB / 0.5095 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01255/0.512, allocations: 3.488 MB / 0.5129 GB, free: 7.215 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01342/0.5254, allocations: 2.58 MB / 0.5154 GB, free: 4.621 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00368/0.5291, allocations: 1.014 MB / 0.5164 GB, free: 3.605 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01544/0.5446, allocations: 9.693 MB / 0.5259 GB, free: 9.637 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003792/0.5484, allocations: 335.5 kB / 0.5262 GB, free: 9.309 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007165/0.5492, allocations: 284 kB / 0.5265 GB, free: 9.031 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.002959/0.5521, allocations: 1.427 MB / 0.5278 GB, free: 7.594 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006079/0.5528, allocations: 229.5 kB / 0.5281 GB, free: 7.367 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007522/0.5603, allocations: 2.834 MB / 0.5308 GB, free: 4.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006457/0.5668, allocations: 2.517 MB / 0.5333 GB, free: 1.965 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.691e-05/0.5668, allocations: 8 kB / 0.5333 GB, free: 1.957 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.129e-05/0.5669, allocations: 11.97 kB / 0.5333 GB, free: 1.945 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2695/0.8364, allocations: 6.864 MB / 0.54 GB, free: 129 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.657e-05/0.8364, allocations: 0 / 0.54 GB, free: 129 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008846/0.8373, allocations: 175.4 kB / 0.5402 GB, free: 129 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004716/0.842, allocations: 1.437 MB / 0.5416 GB, free: 128.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001419/0.8422, allocations: 30.88 kB / 0.5416 GB, free: 128.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009508/0.8517, allocations: 7.911 MB / 0.5493 GB, free: 124.4 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007747/0.8525, allocations: 1.548 MB / 0.5509 GB, free: 122.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007681/0.8602, allocations: 4.852 MB / 0.5556 GB, free: 120.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006306/0.8609, allocations: 292.3 kB / 0.5559 GB, free: 120.4 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002636/0.8611, allocations: 24 kB / 0.5559 GB, free: 120.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001126/0.8623, allocations: 115.8 kB / 0.556 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000255/0.8625, allocations: 72.44 kB / 0.5561 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-05/0.8626, allocations: 41.62 kB / 0.5561 GB, free: 120.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002115/0.8648, allocations: 1.693 MB / 0.5578 GB, free: 118.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 7.41e-07/0.8648, allocations: 0 / 0.5578 GB, free: 118.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003274/0.8681, allocations: 0.7957 MB / 0.5585 GB, free: 117.7 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.0003625/0.8684, allocations: 162.9 kB / 0.5587 GB, free: 117.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006228/0.8747, allocations: 4.45 MB / 0.563 GB, free: 113.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.8747, allocations: 2 kB / 0.563 GB, free: 113.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003069/0.8778, allocations: 1.728 MB / 0.5647 GB, free: 111.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001794/0.8796, allocations: 259.9 kB / 0.565 GB, free: 111.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009306/0.8889, allocations: 6.539 MB / 0.5714 GB, free: 104.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001675/0.8906, allocations: 2.285 MB / 0.5736 GB, free: 102.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002576/0.8932, allocations: 1.404 MB / 0.575 GB, free: 100.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003479/0.8936, allocations: 171.3 kB / 0.5751 GB, free: 100.7 MB / 462.1 MB Notification: Performance of SimCode: time 9.22e-07/0.8936, allocations: 0 / 0.5751 GB, free: 100.7 MB / 462.1 MB Notification: Performance of Templates: time 0.04238/0.936, allocations: 28.58 MB / 0.603 GB, free: 72.28 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