Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|p2.s|p2.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|p2.s|p2.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009039/0.0009039, allocations: 197.1 kB / 17.05 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.237/1.237, allocations: 226.6 MB / 244.3 MB, free: 8.312 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008034/0.0008037, allocations: 101 kB / 296.4 MB, free: 6.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002141/0.0002141, allocations: 8 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2148/0.2151, allocations: 51.3 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.03296/0.2481, allocations: 42.53 MB / 450 MB, free: 1.18 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02061/0.2687, allocations: 9.455 MB / 459.5 MB, free: 7.699 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006938/0.2757, allocations: 195.5 kB / 459.7 MB, free: 7.508 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005825/0.2816, allocations: 2.193 MB / 461.9 MB, free: 5.305 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01564/0.2972, allocations: 6.579 MB / 468.5 MB, free: 14.7 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002642/0.2999, allocations: 0.6904 MB / 469.1 MB, free: 14.01 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.006186/0.3061, allocations: 5.302 MB / 474.4 MB, free: 8.699 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006464/0.3126, allocations: 4.503 MB / 479 MB, free: 4.133 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002544/0.3151, allocations: 1.393 MB / 480.3 MB, free: 2.734 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00318/0.3183, allocations: 2.177 MB / 482.5 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000914/0.3193, allocations: 164 kB / 482.7 MB, free: 400 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002523/0.3218, allocations: 0.9791 MB / 483.7 MB, free: 15.41 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002393/0.3242, allocations: 1.866 MB / 485.5 MB, free: 13.54 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001495/0.3257, allocations: 0.8933 MB / 486.4 MB, free: 12.64 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005856/0.3316, allocations: 5.698 MB / 492.1 MB, free: 6.926 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3316, allocations: 0 / 492.1 MB, free: 6.926 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.115e-06/0.3316, allocations: 0 / 492.1 MB, free: 6.926 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002707/0.3319, allocations: 7.938 kB / 492.1 MB, free: 6.918 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.008883/0.3408, allocations: 4.377 MB / 496.5 MB, free: 2.473 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.3408, allocations: 8.031 kB / 496.5 MB, free: 2.465 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007625/0.3484, allocations: 2.22 MB / 498.7 MB, free: 240 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004153/0.3526, allocations: 2.388 MB / 0.4894 GB, free: 13.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001891/0.3528, allocations: 270.9 kB / 0.4896 GB, free: 13.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008084/0.3536, allocations: 431.6 kB / 0.49 GB, free: 13.1 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0202/0.3738, allocations: 12.22 MB / 0.502 GB, free: 64 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00012/0.374, allocations: 51.48 kB / 0.502 GB, free: 12 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.161/0.5351, allocations: 170 kB / 0.5022 GB, free: 92.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003223/0.5383, allocations: 2.166 MB / 0.5043 GB, free: 92.24 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01688/0.5552, allocations: 10.19 MB / 0.5142 GB, free: 87.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0339/0.5891, allocations: 44.29 MB / 0.5575 GB, free: 42.56 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008945/0.5981, allocations: 4.605 MB / 0.562 GB, free: 37.77 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001808/0.6, allocations: 1.714 MB / 0.5637 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00852/0.6085, allocations: 8.23 MB / 0.5717 GB, free: 27.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.362e-05/0.6085, allocations: 51.88 kB / 0.5718 GB, free: 27.44 MB / 378.7 MB Notification: Performance of pre-optimization done (n=183): time 3.787e-06/0.6085, allocations: 0 / 0.5718 GB, free: 27.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=205): time 0.03156/0.6401, allocations: 15.91 MB / 0.5873 GB, free: 11.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0007957/0.6409, allocations: 1.597 MB / 0.5889 GB, free: 9.59 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003976/0.6449, allocations: 4.171 MB / 0.5929 GB, free: 5.398 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002326/0.6452, allocations: 61.22 kB / 0.593 GB, free: 5.336 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001246/0.6464, allocations: 3.397 MB / 0.5963 GB, free: 1.941 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005315/0.647, allocations: 0.8081 MB / 0.5971 GB, free: 1.137 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002119/0.6472, allocations: 139.8 kB / 0.5972 GB, free: 1.004 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002229/0.6474, allocations: 0.5975 MB / 0.5978 GB, free: 412 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003042/0.6505, allocations: 2.239 MB / 0.6 GB, free: 14.16 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005455/0.6559, allocations: 6.371 MB / 0.6062 GB, free: 5.742 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004654/0.6606, allocations: 3.657 MB / 0.6098 GB, free: 2.082 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-05/0.6607, allocations: 44 kB / 0.6098 GB, free: 2.039 MB / 394.7 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.01956/0.6802, allocations: 10.07 MB / 0.6197 GB, free: 7.949 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.141e-05/0.6804, allocations: 68 kB / 0.6197 GB, free: 7.883 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01028/0.6906, allocations: 3.856 MB / 0.6235 GB, free: 4.012 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009579/0.7003, allocations: 2.273 MB / 0.6257 GB, free: 1.723 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004803/0.7051, allocations: 1.591 MB / 0.6273 GB, free: 132 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007977/0.7131, allocations: 6.082 MB / 0.6332 GB, free: 9.781 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004405/0.7175, allocations: 427.3 kB / 0.6336 GB, free: 9.363 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006638/0.7182, allocations: 420 kB / 0.634 GB, free: 8.953 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (856): * Single equations (assignments): 847 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003112/0.7213, allocations: 2.209 MB / 0.6362 GB, free: 6.73 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005508/0.7219, allocations: 371.2 kB / 0.6365 GB, free: 6.363 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00582/0.7277, allocations: 3.291 MB / 0.6397 GB, free: 3.055 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00483/0.7326, allocations: 2.734 MB / 0.6424 GB, free: 304 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.231e-05/0.7326, allocations: 7.984 kB / 0.6424 GB, free: 296 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.182e-05/0.7326, allocations: 7.969 kB / 0.6424 GB, free: 288 kB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01695/0.7496, allocations: 10.34 MB / 0.6525 GB, free: 5.699 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.12e-05/0.7496, allocations: 12 kB / 0.6525 GB, free: 5.688 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001399/0.751, allocations: 367.4 kB / 0.6529 GB, free: 5.328 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002774/0.7538, allocations: 0.9871 MB / 0.6538 GB, free: 4.328 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000147/0.754, allocations: 59.97 kB / 0.6539 GB, free: 4.27 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004487/0.7585, allocations: 4.597 MB / 0.6584 GB, free: 15.41 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009348/0.7594, allocations: 1.477 MB / 0.6598 GB, free: 13.78 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008276/0.7677, allocations: 5.887 MB / 0.6656 GB, free: 7.684 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008268/0.7686, allocations: 448 kB / 0.666 GB, free: 7.223 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003476/0.7689, allocations: 63.92 kB / 0.6661 GB, free: 7.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001452/0.7704, allocations: 147.8 kB / 0.6662 GB, free: 7.016 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002472/0.7707, allocations: 172.5 kB / 0.6664 GB, free: 6.848 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001318/0.7708, allocations: 79.97 kB / 0.6665 GB, free: 6.77 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003412/0.7742, allocations: 2.566 MB / 0.669 GB, free: 4.195 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.7742, allocations: 0 / 0.669 GB, free: 4.195 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004369/0.7786, allocations: 1.173 MB / 0.6701 GB, free: 3.031 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * 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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004097/0.779, allocations: 219.6 kB / 0.6703 GB, free: 2.816 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.1633/0.9423, allocations: 5.933 MB / 0.6761 GB, free: 155.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.816e-05/0.9424, allocations: 1.375 kB / 0.6761 GB, free: 155.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003594/0.946, allocations: 2.183 MB / 0.6782 GB, free: 155.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002826/0.9488, allocations: 492.6 kB / 0.6787 GB, free: 155.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01408/0.9629, allocations: 13.09 MB / 0.6915 GB, free: 148.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002629/0.9656, allocations: 3.454 MB / 0.6949 GB, free: 146.9 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008344/0.9664, allocations: 323.8 kB / 0.6952 GB, free: 146.9 MB / 458.7 MB Notification: Performance of SimCode: time 8.31e-07/0.9664, allocations: 0 / 0.6952 GB, free: 146.9 MB / 458.7 MB Notification: Performance of Templates: time 0.1094/1.076, allocations: 140.6 MB / 0.8325 GB, free: 8.992 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches