Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_cpp_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_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003707/0.003713, allocations: 182.5 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.75/3.75, allocations: 205.4 MB / 222.5 MB, free: 9.109 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.002195/0.002195, allocations: 97.48 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006889/0.0006895, allocations: 11.98 kB / 327 MB, free: 192 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6423/0.643, allocations: 47.56 MB / 374.5 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.03897/0.6821, allocations: 15.26 MB / 389.8 MB, free: 33.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02262/0.7048, allocations: 4.797 MB / 394.6 MB, free: 28.76 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005594/0.7105, allocations: 75.81 kB / 394.7 MB, free: 28.69 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004507/0.7151, allocations: 0.7077 MB / 395.4 MB, free: 27.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01657/0.7317, allocations: 2.404 MB / 397.8 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003484/0.7353, allocations: 379.3 kB / 398.1 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006234/0.7416, allocations: 1.496 MB / 399.6 MB, free: 23.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006123/0.7478, allocations: 1.858 MB / 401.5 MB, free: 21.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002558/0.7504, allocations: 0.6229 MB / 402.1 MB, free: 21.17 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003133/0.7537, allocations: 0.8839 MB / 403 MB, free: 20.28 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00109/0.7548, allocations: 88 kB / 403.1 MB, free: 20.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004003/0.7589, allocations: 0.8347 MB / 403.9 MB, free: 19.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002778/0.7618, allocations: 0.9469 MB / 404.9 MB, free: 18.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001767/0.7636, allocations: 0.5156 MB / 405.4 MB, free: 17.89 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008687/0.7724, allocations: 3.29 MB / 408.7 MB, free: 14.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.7725, allocations: 0 / 408.7 MB, free: 14.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.757e-06/0.7725, allocations: 0 / 408.7 MB, free: 14.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000192/0.7727, allocations: 0 / 408.7 MB, free: 14.59 MB / 298.7 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.01426/0.787, allocations: 2.598 MB / 411.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.206e-05/0.7871, allocations: 11.97 kB / 411.3 MB, free: 11.92 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02199/0.8091, allocations: 2.087 MB / 413.4 MB, free: 9.828 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007019/0.8162, allocations: 1.608 MB / 415 MB, free: 8.172 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000325/0.8167, allocations: 131.3 kB / 415.1 MB, free: 8.043 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002771/0.8195, allocations: 259.7 kB / 415.4 MB, free: 7.789 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02807/0.8476, allocations: 6.695 MB / 422.1 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002006/0.8479, allocations: 27.75 kB / 422.1 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001331/0.8493, allocations: 83.91 kB / 422.2 MB, free: 0.5234 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006334/0.8557, allocations: 1.367 MB / 423.5 MB, free: 15.16 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03257/0.8883, allocations: 6.06 MB / 429.6 MB, free: 9.094 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08089/0.9693, allocations: 25.68 MB / 455.3 MB, free: 14.64 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01955/0.9889, allocations: 2.674 MB / 458 MB, free: 11.83 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01593/1.005, allocations: 3.916 MB / 461.9 MB, free: 7.656 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.092e-05/1.005, allocations: 47.12 kB / 461.9 MB, free: 7.602 MB / 346.7 MB Notification: Performance of pre-optimization done (n=112): time 1.206e-05/1.005, allocations: 0 / 461.9 MB, free: 7.602 MB / 346.7 MB Notification: Performance of matching and sorting (n=125): time 0.07925/1.084, allocations: 10.64 MB / 472.6 MB, free: 12.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002835/1.087, allocations: 1.611 MB / 474.2 MB, free: 10.96 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01167/1.099, allocations: 2.843 MB / 477 MB, free: 8.094 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005463/1.1, allocations: 41.7 kB / 477.1 MB, free: 8.047 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003601/1.103, allocations: 2.081 MB / 479.1 MB, free: 5.934 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001526/1.105, allocations: 0.5054 MB / 479.6 MB, free: 5.422 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001006/1.106, allocations: 87.98 kB / 479.7 MB, free: 5.336 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0007455/1.107, allocations: 0.5052 MB / 480.2 MB, free: 4.82 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008163/1.115, allocations: 1.645 MB / 481.9 MB, free: 3.168 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.013/1.128, allocations: 4.436 MB / 486.3 MB, free: 13.32 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01337/1.142, allocations: 2.649 MB / 489 MB, free: 10.67 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001603/1.142, allocations: 32 kB / 489 MB, free: 10.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=591) (initialization): time 0.06071/1.203, allocations: 7.918 MB / 496.9 MB, free: 2.707 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001727/1.203, allocations: 48 kB / 497 MB, free: 2.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.04006/1.243, allocations: 3.508 MB / 0.4887 GB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04242/1.286, allocations: 2.599 MB / 0.4913 GB, free: 12.53 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009472/1.295, allocations: 1.006 MB / 0.4923 GB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04394/1.339, allocations: 9.317 MB / 0.5014 GB, free: 1.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01041/1.35, allocations: 335.5 kB / 0.5017 GB, free: 1.602 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001788/1.351, allocations: 280 kB / 0.5019 GB, free: 1.328 MB / 394.7 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 (543): * Single equations (assignments): 535 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.4827/1.834, allocations: 1.412 MB / 0.5033 GB, free: 118.9 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001434/1.836, allocations: 238.9 kB / 0.5035 GB, free: 118.9 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02435/1.86, allocations: 2.842 MB / 0.5063 GB, free: 118.7 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02009/1.88, allocations: 2.513 MB / 0.5088 GB, free: 118.3 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.952e-05/1.88, allocations: 4.125 kB / 0.5088 GB, free: 118.3 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.11e-05/1.881, allocations: 5.078 kB / 0.5088 GB, free: 118.3 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04164/1.922, allocations: 6.879 MB / 0.5155 GB, free: 116 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.347e-05/1.922, allocations: 1.938 kB / 0.5155 GB, free: 116 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002718/1.925, allocations: 181.7 kB / 0.5157 GB, free: 116 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01424/1.939, allocations: 1.426 MB / 0.5171 GB, free: 115.4 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005641/1.94, allocations: 32.8 kB / 0.5171 GB, free: 115.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04035/1.98, allocations: 7.537 MB / 0.5245 GB, free: 110.2 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002298/1.983, allocations: 1.465 MB / 0.5259 GB, free: 108.8 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02958/2.012, allocations: 4.967 MB / 0.5307 GB, free: 104.7 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001753/2.014, allocations: 304.2 kB / 0.531 GB, free: 104.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001751/2.016, allocations: 27.44 kB / 0.5311 GB, free: 104.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005512/2.022, allocations: 111.8 kB / 0.5312 GB, free: 104.4 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001218/2.023, allocations: 88.2 kB / 0.5313 GB, free: 104.3 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004613/2.023, allocations: 41.16 kB / 0.5313 GB, free: 104.3 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.009025/2.033, allocations: 1.776 MB / 0.533 GB, free: 102.5 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.515e-06/2.033, allocations: 0 / 0.533 GB, free: 102.5 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.01445/2.047, allocations: 0.8031 MB / 0.5338 GB, free: 101.7 MB / 394.7 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 (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00161/2.049, allocations: 180.6 kB / 0.534 GB, free: 101.5 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.02396/2.073, allocations: 4.394 MB / 0.5383 GB, free: 97.14 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.544e-05/2.073, allocations: 0 / 0.5383 GB, free: 97.14 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0113/2.084, allocations: 1.722 MB / 0.54 GB, free: 95.37 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004859/2.089, allocations: 249.8 kB / 0.5402 GB, free: 95.13 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0356/2.125, allocations: 7.982 MB / 0.548 GB, free: 87.16 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008454/2.133, allocations: 2.36 MB / 0.5503 GB, free: 84.77 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002073/2.136, allocations: 203.4 kB / 0.5505 GB, free: 84.57 MB / 394.7 MB Notification: Performance of SimCode: time 3.056e-06/2.136, allocations: 0 / 0.5505 GB, free: 84.57 MB / 394.7 MB Notification: Performance of Templates: time 0.2309/2.367, allocations: 72.44 MB / 0.6212 GB, free: 12.03 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringWithMass/SpringWithMass.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches