Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.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.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_trunk_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001007/0.001007, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 226.6 MB / 244.3 MB, free: 8.273 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007814/0.0007815, allocations: 99.5 kB / 296.4 MB, free: 7.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000239/0.0002394, allocations: 8 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2401/0.2403, allocations: 51.3 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.01041/0.2508, allocations: 16.11 MB / 423.6 MB, free: 11.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00808/0.2589, allocations: 4.699 MB / 428.3 MB, free: 6.973 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001976/0.2609, allocations: 67.81 kB / 428.4 MB, free: 6.906 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001243/0.2622, allocations: 0.7776 MB / 429.2 MB, free: 6.125 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004403/0.2666, allocations: 2.658 MB / 431.8 MB, free: 3.461 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007525/0.2674, allocations: 371.4 kB / 432.2 MB, free: 3.098 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002256/0.2696, allocations: 2.918 MB / 435.1 MB, free: 176 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002119/0.2718, allocations: 1.861 MB / 437 MB, free: 14.26 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008597/0.2726, allocations: 0.7433 MB / 437.7 MB, free: 13.52 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001226/0.2739, allocations: 1.207 MB / 438.9 MB, free: 12.3 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001791/0.2741, allocations: 88 kB / 439 MB, free: 12.22 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001342/0.2754, allocations: 0.8386 MB / 439.8 MB, free: 11.38 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007415/0.2762, allocations: 1.017 MB / 440.8 MB, free: 10.36 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003853/0.2766, allocations: 0.5156 MB / 441.4 MB, free: 9.836 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002617/0.2792, allocations: 3.278 MB / 444.6 MB, free: 6.551 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2792, allocations: 0 / 444.6 MB, free: 6.551 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2792, allocations: 0 / 444.6 MB, free: 6.551 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.728e-05/0.2793, allocations: 0 / 444.6 MB, free: 6.551 MB / 314.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.004142/0.2834, allocations: 2.56 MB / 447.2 MB, free: 3.934 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.2835, allocations: 12.03 kB / 447.2 MB, free: 3.922 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006119/0.2896, allocations: 1.829 MB / 449 MB, free: 2.086 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002422/0.292, allocations: 1.331 MB / 450.4 MB, free: 0.7109 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.787e-05/0.2921, allocations: 139.2 kB / 450.5 MB, free: 0.5742 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005564/0.2927, allocations: 259.6 kB / 450.8 MB, free: 328 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009516/0.3022, allocations: 6.656 MB / 457.4 MB, free: 9.195 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.934e-05/0.3023, allocations: 27.72 kB / 457.4 MB, free: 9.168 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002473/0.3026, allocations: 87.84 kB / 457.5 MB, free: 9.082 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001999/0.3046, allocations: 1.37 MB / 458.9 MB, free: 7.707 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01028/0.3149, allocations: 6.021 MB / 464.9 MB, free: 1.68 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02789/0.3428, allocations: 25.6 MB / 490.5 MB, free: 7.309 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006577/0.3494, allocations: 2.66 MB / 493.2 MB, free: 4.504 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0014/0.3509, allocations: 1.028 MB / 494.2 MB, free: 3.465 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005867/0.3568, allocations: 3.893 MB / 498.1 MB, free: 15.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.306e-05/0.3568, allocations: 51.06 kB / 498.2 MB, free: 15.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=112): time 3.857e-06/0.3568, allocations: 0 / 498.2 MB, free: 15.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.02537/0.3822, allocations: 10.31 MB / 0.4965 GB, free: 4.785 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001215/0.3835, allocations: 1.588 MB / 0.4981 GB, free: 3.027 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004194/0.3877, allocations: 2.713 MB / 0.5007 GB, free: 300 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000194/0.3879, allocations: 45.8 kB / 0.5008 GB, free: 248 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1943/0.5822, allocations: 2.085 MB / 0.5028 GB, free: 92.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007031/0.583, allocations: 0.505 MB / 0.5033 GB, free: 92.06 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002171/0.5832, allocations: 89.09 kB / 0.5034 GB, free: 92.06 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002732/0.5835, allocations: 0.4968 MB / 0.5039 GB, free: 91.75 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002608/0.5861, allocations: 1.634 MB / 0.5055 GB, free: 91.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003292/0.5894, allocations: 4.439 MB / 0.5098 GB, free: 86.95 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003531/0.593, allocations: 2.637 MB / 0.5124 GB, free: 85.95 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.834e-05/0.593, allocations: 27.59 kB / 0.5124 GB, free: 85.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.01579/0.6088, allocations: 8.037 MB / 0.5203 GB, free: 83.11 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.648e-05/0.6089, allocations: 48 kB / 0.5203 GB, free: 83.06 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009611/0.6185, allocations: 3.556 MB / 0.5238 GB, free: 79.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01028/0.6288, allocations: 2.696 MB / 0.5264 GB, free: 76.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002866/0.6317, allocations: 1.006 MB / 0.5274 GB, free: 75.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01035/0.6421, allocations: 8.88 MB / 0.5361 GB, free: 66.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003238/0.6453, allocations: 331.5 kB / 0.5364 GB, free: 66.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00031/0.6457, allocations: 292.3 kB / 0.5367 GB, free: 66.12 MB / 378.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 (547): * Single equations (assignments): 539 * 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.001677/0.6474, allocations: 1.429 MB / 0.5381 GB, free: 64.69 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002854/0.6477, allocations: 229 kB / 0.5383 GB, free: 64.46 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005309/0.653, allocations: 2.842 MB / 0.5411 GB, free: 61.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004752/0.6577, allocations: 2.513 MB / 0.5435 GB, free: 59.06 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.6578, allocations: 4 kB / 0.5435 GB, free: 59.06 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.09e-05/0.6578, allocations: 3.984 kB / 0.5435 GB, free: 59.05 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01003/0.6678, allocations: 6.866 MB / 0.5502 GB, free: 52.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.735e-06/0.6678, allocations: 7.984 kB / 0.5502 GB, free: 52.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006952/0.6685, allocations: 169 kB / 0.5504 GB, free: 51.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004101/0.6726, allocations: 1.438 MB / 0.5518 GB, free: 50.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.237e-05/0.6727, allocations: 31.97 kB / 0.5518 GB, free: 50.49 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007375/0.6801, allocations: 7.327 MB / 0.559 GB, free: 42.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006369/0.6808, allocations: 1.455 MB / 0.5604 GB, free: 41.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006857/0.6876, allocations: 4.84 MB / 0.5651 GB, free: 36.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005298/0.6882, allocations: 294 kB / 0.5654 GB, free: 36.12 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002115/0.6884, allocations: 31.94 kB / 0.5654 GB, free: 36.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/0.6894, allocations: 111.8 kB / 0.5655 GB, free: 35.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001765/0.6896, allocations: 80.44 kB / 0.5656 GB, free: 35.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.37e-05/0.6897, allocations: 39.17 kB / 0.5657 GB, free: 35.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00187/0.6916, allocations: 1.677 MB / 0.5673 GB, free: 34.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6916, allocations: 0 / 0.5673 GB, free: 34.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003072/0.6947, allocations: 0.7941 MB / 0.5681 GB, free: 33.39 MB / 378.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.0003271/0.695, allocations: 163.8 kB / 0.5682 GB, free: 33.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005932/0.7009, allocations: 4.403 MB / 0.5725 GB, free: 28.79 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.701, allocations: 0 / 0.5725 GB, free: 28.79 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002537/0.7035, allocations: 1.727 MB / 0.5742 GB, free: 27.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001402/0.7049, allocations: 275 kB / 0.5745 GB, free: 26.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008349/0.7133, allocations: 7.987 MB / 0.5823 GB, free: 18.71 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001542/0.7148, allocations: 2.289 MB / 0.5845 GB, free: 16.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005023/0.7154, allocations: 207.4 kB / 0.5847 GB, free: 16.18 MB / 378.7 MB Notification: Performance of SimCode: time 9.92e-07/0.7154, allocations: 0 / 0.5847 GB, free: 16.18 MB / 378.7 MB Notification: Performance of Templates: time 0.0748/0.7902, allocations: 75.3 MB / 0.6583 GB, free: 4.863 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches