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.001044/0.001044, allocations: 196 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.26/1.26, allocations: 226.5 MB / 244.7 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007824/0.0007824, allocations: 108.1 kB / 296.8 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002088/0.0002089, allocations: 8 kB / 356.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1877/0.1879, allocations: 51.3 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.02967/0.2176, allocations: 42.54 MB / 450.6 MB, free: 1.055 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0189/0.2366, allocations: 9.462 MB / 460.1 MB, free: 7.57 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006212/0.2428, allocations: 199.5 kB / 460.2 MB, free: 7.375 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005578/0.2484, allocations: 2.193 MB / 462.4 MB, free: 5.172 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01506/0.2635, allocations: 6.591 MB / 469 MB, free: 14.55 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002931/0.2665, allocations: 0.7489 MB / 469.8 MB, free: 13.8 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.006292/0.2728, allocations: 5.338 MB / 475.1 MB, free: 8.457 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006346/0.2792, allocations: 4.734 MB / 479.9 MB, free: 3.645 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002341/0.2815, allocations: 1.393 MB / 481.2 MB, free: 2.246 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002486/0.284, allocations: 2.185 MB / 483.4 MB, free: 56 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004848/0.2845, allocations: 160 kB / 483.6 MB, free: 15.89 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001876/0.2864, allocations: 1.119 MB / 484.7 MB, free: 14.78 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001495/0.2879, allocations: 1.874 MB / 486.6 MB, free: 12.9 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001859/0.2898, allocations: 2.071 MB / 488.7 MB, free: 10.81 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005143/0.2949, allocations: 5.706 MB / 494.4 MB, free: 5.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.295, allocations: 0 / 494.4 MB, free: 5.09 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.295, allocations: 0 / 494.4 MB, free: 5.09 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001589/0.2952, allocations: 0 / 494.4 MB, free: 5.09 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.008176/0.3033, allocations: 4.322 MB / 498.7 MB, free: 0.6992 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.3034, allocations: 8.031 kB / 498.7 MB, free: 0.6914 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007708/0.3111, allocations: 2.221 MB / 0.4892 GB, free: 14.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004358/0.3155, allocations: 2.438 MB / 0.4916 GB, free: 11.96 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001959/0.3157, allocations: 274.9 kB / 0.4918 GB, free: 11.69 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008195/0.3165, allocations: 431.6 kB / 0.4922 GB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1817/0.4982, allocations: 12.2 MB / 0.5041 GB, free: 89.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001924/0.4985, allocations: 48.47 kB / 0.5042 GB, free: 89.7 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006868/0.4992, allocations: 177.4 kB / 0.5044 GB, free: 89.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003291/0.5025, allocations: 2.167 MB / 0.5065 GB, free: 89.42 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01912/0.5216, allocations: 10.18 MB / 0.5164 GB, free: 85.35 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03965/0.5613, allocations: 44.31 MB / 0.5597 GB, free: 40.94 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009789/0.5711, allocations: 4.602 MB / 0.5642 GB, free: 36.15 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002037/0.5732, allocations: 1.726 MB / 0.5659 GB, free: 34.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009892/0.5831, allocations: 8.233 MB / 0.5739 GB, free: 25.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.543e-05/0.5832, allocations: 55.88 kB / 0.574 GB, free: 25.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=183): time 5.58e-06/0.5832, allocations: 0 / 0.574 GB, free: 25.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=205): time 0.03487/0.6181, allocations: 15.92 MB / 0.5895 GB, free: 9.711 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008809/0.619, allocations: 1.597 MB / 0.5911 GB, free: 7.945 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004471/0.6235, allocations: 4.175 MB / 0.5951 GB, free: 3.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002998/0.6238, allocations: 53.7 kB / 0.5952 GB, free: 3.691 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001389/0.6252, allocations: 3.399 MB / 0.5985 GB, free: 304 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007763/0.626, allocations: 0.8071 MB / 0.5993 GB, free: 15.49 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002789/0.6263, allocations: 136 kB / 0.5994 GB, free: 15.36 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003554/0.6266, allocations: 0.5914 MB / 0.6 GB, free: 14.76 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003391/0.63, allocations: 2.239 MB / 0.6022 GB, free: 12.52 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006322/0.6364, allocations: 6.371 MB / 0.6084 GB, free: 4.102 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01063/0.6471, allocations: 9.299 MB / 0.6175 GB, free: 8.754 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001017/0.6472, allocations: 44.38 kB / 0.6175 GB, free: 8.711 MB / 410.7 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02287/0.6701, allocations: 10.07 MB / 0.6274 GB, free: 14.62 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000118/0.6702, allocations: 68.19 kB / 0.6274 GB, free: 14.55 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0107/0.6809, allocations: 3.859 MB / 0.6312 GB, free: 10.68 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009693/0.6907, allocations: 2.254 MB / 0.6334 GB, free: 8.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00505/0.6958, allocations: 1.583 MB / 0.635 GB, free: 6.824 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008261/0.7041, allocations: 6.075 MB / 0.6409 GB, free: 488 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005079/0.7092, allocations: 434.7 kB / 0.6413 GB, free: 56 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001157/0.7104, allocations: 420 kB / 0.6417 GB, free: 15.64 MB / 442.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.003829/0.7143, allocations: 2.216 MB / 0.6439 GB, free: 13.41 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006684/0.715, allocations: 371.2 kB / 0.6442 GB, free: 13.05 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006459/0.7214, allocations: 3.288 MB / 0.6474 GB, free: 9.738 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005129/0.7266, allocations: 2.738 MB / 0.6501 GB, free: 6.984 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.649e-05/0.7266, allocations: 8.062 kB / 0.6501 GB, free: 6.977 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-05/0.7267, allocations: 7.969 kB / 0.6501 GB, free: 6.969 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01982/0.7465, allocations: 10.34 MB / 0.6602 GB, free: 12.39 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.092e-05/0.7466, allocations: 12 kB / 0.6602 GB, free: 12.38 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001551/0.7481, allocations: 371.4 kB / 0.6606 GB, free: 12.02 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002906/0.7511, allocations: 0.9868 MB / 0.6615 GB, free: 11.02 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002962/0.7514, allocations: 55.98 kB / 0.6616 GB, free: 10.96 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004947/0.7563, allocations: 4.6 MB / 0.6661 GB, free: 6.102 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009897/0.7574, allocations: 1.47 MB / 0.6675 GB, free: 4.484 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1808/0.9382, allocations: 5.89 MB / 0.6733 GB, free: 151.3 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009742/0.9392, allocations: 443.5 kB / 0.6737 GB, free: 151.2 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004705/0.9397, allocations: 57.97 kB / 0.6738 GB, free: 151.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001577/0.9413, allocations: 150.6 kB / 0.6739 GB, free: 151.2 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002864/0.9416, allocations: 181.5 kB / 0.6741 GB, free: 151.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001353/0.9417, allocations: 75.83 kB / 0.6741 GB, free: 151.2 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003729/0.9454, allocations: 2.565 MB / 0.6767 GB, free: 150.7 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.9455, allocations: 1.375 kB / 0.6767 GB, free: 150.7 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005258/0.9507, allocations: 1.159 MB / 0.6778 GB, free: 150.6 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.0005835/0.9513, allocations: 223.4 kB / 0.678 GB, free: 150.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009159/0.9605, allocations: 5.94 MB / 0.6838 GB, free: 148.4 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.387e-05/0.9605, allocations: 3.938 kB / 0.6838 GB, free: 148.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00334/0.9639, allocations: 2.191 MB / 0.6859 GB, free: 147.4 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0104/0.9743, allocations: 493.3 kB / 0.6864 GB, free: 147.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01867/0.993, allocations: 13.08 MB / 0.6992 GB, free: 140.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004784/0.9979, allocations: 3.457 MB / 0.7026 GB, free: 138.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001087/0.999, allocations: 322.3 kB / 0.7029 GB, free: 138.1 MB / 458.7 MB Notification: Performance of SimCode: time 9.11e-07/0.999, allocations: 0 / 0.7029 GB, free: 138.1 MB / 458.7 MB Notification: Performance of Templates: time 0.315/1.314, allocations: 140.5 MB / 0.84 GB, free: 149.2 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