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.001263/0.001263, allocations: 115.3 kB / 17.29 MB, free: 6.312 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.001265/0.001265, allocations: 197.3 kB / 18.21 MB, free: 5.395 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.34/1.34, allocations: 222.9 MB / 241.9 MB, free: 13.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001011/0.001011, allocations: 46.8 kB / 300.8 MB, free: 5.988 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1022, allocations: 49.45 MB / 350.3 MB, free: 4.531 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01824/0.1205, allocations: 17.9 MB / 368.2 MB, free: 2.547 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1801/0.3006, allocations: 4.932 MB / 373.1 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002844/0.3035, allocations: 69.22 kB / 373.2 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002082/0.3056, allocations: 0.9795 MB / 374.1 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003475/0.3091, allocations: 1.288 MB / 375.4 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00114/0.3103, allocations: 420 kB / 375.8 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004062/0.3143, allocations: 2.655 MB / 378.5 MB, free: 8.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002563/0.3169, allocations: 1.618 MB / 380.1 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001497/0.3184, allocations: 0.8555 MB / 381 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001772/0.3202, allocations: 1.354 MB / 382.3 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004003/0.3206, allocations: 171.1 kB / 382.5 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002091/0.3227, allocations: 1.061 MB / 383.5 MB, free: 7.805 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00107/0.3238, allocations: 1.13 MB / 384.7 MB, free: 7.418 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001105/0.3249, allocations: 1.317 MB / 386 MB, free: 6.496 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003347/0.3283, allocations: 3.387 MB / 389.4 MB, free: 4.648 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3283, allocations: 0 / 389.4 MB, free: 4.648 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3283, allocations: 0 / 389.4 MB, free: 4.648 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.41e-05/0.3284, allocations: 0 / 389.4 MB, free: 4.648 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.005334/0.3337, allocations: 3.054 MB / 392.4 MB, free: 2.551 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.3338, allocations: 13.22 kB / 392.4 MB, free: 2.547 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006135/0.3399, allocations: 1.733 MB / 394.2 MB, free: 1.645 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002421/0.3424, allocations: 1.394 MB / 395.6 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.072e-05/0.3425, allocations: 133.2 kB / 395.7 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006288/0.3431, allocations: 259 kB / 396 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01051/0.3536, allocations: 6.655 MB / 402.6 MB, free: 11.12 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.807e-05/0.3537, allocations: 39.64 kB / 402.6 MB, free: 11.08 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002662/0.354, allocations: 92.14 kB / 402.7 MB, free: 11.02 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002094/0.3561, allocations: 1.362 MB / 404.1 MB, free: 9.652 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01129/0.3674, allocations: 6.027 MB / 410.1 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03138/0.3988, allocations: 25.62 MB / 435.7 MB, free: 9.375 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007284/0.4061, allocations: 2.659 MB / 438.4 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00154/0.4077, allocations: 1.046 MB / 439.5 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006351/0.4141, allocations: 3.898 MB / 443.3 MB, free: 1.379 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.756e-05/0.4142, allocations: 50.98 kB / 443.4 MB, free: 1.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=112): time 3.947e-06/0.4142, allocations: 0 / 443.4 MB, free: 1.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=125): time 0.02756/0.4417, allocations: 10.27 MB / 453.7 MB, free: 6.898 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001345/0.4431, allocations: 1.675 MB / 455.3 MB, free: 5.043 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004748/0.4479, allocations: 2.733 MB / 458.1 MB, free: 2.289 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002142/0.4481, allocations: 41.7 kB / 458.1 MB, free: 2.242 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001558/0.4497, allocations: 2.083 MB / 460.2 MB, free: 164 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006646/0.4504, allocations: 0.5079 MB / 460.7 MB, free: 15.65 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001704/0.4521, allocations: 0.9193 MB / 461.6 MB, free: 14.72 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.394e-05/0.4522, allocations: 305.1 kB / 461.9 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002626/0.4548, allocations: 1.648 MB / 463.6 MB, free: 12.77 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004351/0.4592, allocations: 4.46 MB / 468 MB, free: 6.898 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007353/0.4666, allocations: 6.556 MB / 474.6 MB, free: 14.96 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.976e-05/0.4667, allocations: 28 kB / 474.6 MB, free: 14.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.0196/0.4863, allocations: 7.986 MB / 482.6 MB, free: 6.93 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001261/0.4864, allocations: 49 kB / 482.7 MB, free: 6.883 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01144/0.4979, allocations: 3.494 MB / 486.1 MB, free: 3.375 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0117/0.5096, allocations: 2.593 MB / 488.7 MB, free: 0.7695 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003454/0.5131, allocations: 1.01 MB / 489.8 MB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01479/0.5279, allocations: 9.71 MB / 499.5 MB, free: 5.777 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004327/0.5323, allocations: 333.6 kB / 499.8 MB, free: 5.453 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001004/0.5333, allocations: 284 kB / 0.4883 GB, free: 5.176 MB / 414.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.003481/0.5368, allocations: 1.418 MB / 0.4897 GB, free: 3.746 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006413/0.5375, allocations: 233 kB / 0.49 GB, free: 3.516 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007049/0.5445, allocations: 2.829 MB / 0.4927 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005905/0.5505, allocations: 2.517 MB / 0.4952 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.784e-05/0.5505, allocations: 7.938 kB / 0.4952 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.892e-05/0.5505, allocations: 3.984 kB / 0.4952 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01561/0.5661, allocations: 6.867 MB / 0.5019 GB, free: 7.184 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.156e-05/0.5662, allocations: 3.938 kB / 0.5019 GB, free: 7.18 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008567/0.567, allocations: 175.7 kB / 0.5021 GB, free: 7.008 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004935/0.572, allocations: 1.441 MB / 0.5035 GB, free: 5.559 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001868/0.5722, allocations: 33.94 kB / 0.5035 GB, free: 5.527 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0106/0.5828, allocations: 7.917 MB / 0.5112 GB, free: 13.33 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001122/0.584, allocations: 1.548 MB / 0.5127 GB, free: 11.63 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009171/0.5932, allocations: 4.869 MB / 0.5175 GB, free: 6.723 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008094/0.594, allocations: 286 kB / 0.5178 GB, free: 6.422 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005671/0.5946, allocations: 28 kB / 0.5178 GB, free: 6.395 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001457/0.596, allocations: 111.8 kB / 0.5179 GB, free: 6.285 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002813/0.5963, allocations: 80.38 kB / 0.518 GB, free: 6.207 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000117/0.5965, allocations: 42.11 kB / 0.518 GB, free: 6.168 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003584/0.6001, allocations: 1.693 MB / 0.5197 GB, free: 4.465 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6001, allocations: 0 / 0.5197 GB, free: 4.465 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005028/0.6051, allocations: 0.7968 MB / 0.5205 GB, free: 3.668 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.0004885/0.6056, allocations: 156.4 kB / 0.5206 GB, free: 3.512 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1883/0.7939, allocations: 4.765 MB / 0.5253 GB, free: 152.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/0.794, allocations: 3.281 kB / 0.5253 GB, free: 152.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003566/0.7975, allocations: 1.722 MB / 0.5269 GB, free: 152.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002062/0.7996, allocations: 270.4 kB / 0.5272 GB, free: 152.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01345/0.8131, allocations: 8.096 MB / 0.5351 GB, free: 148.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002382/0.8155, allocations: 2.296 MB / 0.5373 GB, free: 147.8 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007827/0.8163, allocations: 204.2 kB / 0.5375 GB, free: 147.8 MB / 446.1 MB Notification: Performance of SimCode: time 1.182e-06/0.8163, allocations: 0.9688 kB / 0.5375 GB, free: 147.8 MB / 446.1 MB Notification: Performance of Templates: time 0.07633/0.8926, allocations: 75.68 MB / 0.6115 GB, free: 82.78 MB / 446.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","/var/lib/jenkins1/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