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.001154/0.001154, allocations: 195.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.513/1.513, allocations: 226.5 MB / 245.4 MB, free: 8.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001075/0.001074, allocations: 99.8 kB / 297.4 MB, free: 6.875 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003825/0.000383, allocations: 4 kB / 357.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.2509, allocations: 51.3 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1122/0.3632, allocations: 94.16 MB / 0.491 GB, free: 13.39 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002704/0.3635, allocations: 97.45 kB / 0.4911 GB, free: 13.3 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2999/0.6634, allocations: 58.31 MB / 0.5481 GB, free: 63.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.6635, allocations: 0 / 0.5481 GB, free: 63.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.686e-05/0.6636, allocations: 44 kB / 0.5481 GB, free: 63.67 MB / 378.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.01049/0.6741, allocations: 3.141 MB / 0.5512 GB, free: 60.47 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.6741, allocations: 8.031 kB / 0.5512 GB, free: 60.46 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008506/0.6826, allocations: 2.08 MB / 0.5532 GB, free: 58.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005131/0.6878, allocations: 2.316 MB / 0.5555 GB, free: 56.01 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001339/0.688, allocations: 189.3 kB / 0.5557 GB, free: 55.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007182/0.6887, allocations: 248.3 kB / 0.5559 GB, free: 55.58 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01004/0.6987, allocations: 7.008 MB / 0.5627 GB, free: 47.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.395e-05/0.6989, allocations: 51.53 kB / 0.5628 GB, free: 47.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003554/0.6992, allocations: 123.9 kB / 0.5629 GB, free: 47.65 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008534/0.7001, allocations: 0.7228 MB / 0.5636 GB, free: 46.93 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009392/0.7095, allocations: 6.044 MB / 0.5695 GB, free: 40.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0261/0.7356, allocations: 32.69 MB / 0.6014 GB, free: 7.098 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005763/0.7414, allocations: 2.655 MB / 0.604 GB, free: 4.297 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001137/0.7426, allocations: 1.024 MB / 0.605 GB, free: 3.262 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004979/0.7476, allocations: 3.892 MB / 0.6088 GB, free: 15.11 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.115e-05/0.7477, allocations: 47.06 kB / 0.6089 GB, free: 15.06 MB / 394.7 MB Notification: Performance of pre-optimization done (n=112): time 3.948e-06/0.7477, allocations: 4 kB / 0.6089 GB, free: 15.05 MB / 394.7 MB Notification: Performance of matching and sorting (n=125): time 0.0248/0.7725, allocations: 10.27 MB / 0.6189 GB, free: 4.621 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001281/0.7738, allocations: 1.576 MB / 0.6205 GB, free: 2.875 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00417/0.778, allocations: 2.749 MB / 0.6231 GB, free: 108 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002582/0.7783, allocations: 45.73 kB / 0.6232 GB, free: 56 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001407/0.7797, allocations: 2.075 MB / 0.6252 GB, free: 13.95 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005547/0.7803, allocations: 0.5093 MB / 0.6257 GB, free: 13.43 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002026/0.7805, allocations: 88 kB / 0.6258 GB, free: 13.34 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000278/0.7808, allocations: 0.4961 MB / 0.6263 GB, free: 12.84 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002567/0.7833, allocations: 1.625 MB / 0.6279 GB, free: 11.21 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004102/0.7874, allocations: 4.415 MB / 0.6322 GB, free: 5.391 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007217/0.7947, allocations: 6.471 MB / 0.6385 GB, free: 13.53 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.955e-05/0.7948, allocations: 28 kB / 0.6385 GB, free: 13.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=589) (initialization): time 0.01382/0.8086, allocations: 7.042 MB / 0.6454 GB, free: 6.445 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.087e-05/0.8087, allocations: 50.5 kB / 0.6454 GB, free: 6.398 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005854/0.8146, allocations: 2.532 MB / 0.6479 GB, free: 3.855 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004925/0.8195, allocations: 1.485 MB / 0.6494 GB, free: 2.359 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003282/0.8228, allocations: 1.014 MB / 0.6504 GB, free: 1.344 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009383/0.8322, allocations: 7.235 MB / 0.6574 GB, free: 9.836 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003993/0.8363, allocations: 367.6 kB / 0.6578 GB, free: 9.477 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008606/0.8371, allocations: 280 kB / 0.658 GB, free: 9.203 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 450 * 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 (541): * Single equations (assignments): 533 * 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.003315/0.8405, allocations: 1.423 MB / 0.6594 GB, free: 7.77 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005616/0.841, allocations: 229 kB / 0.6597 GB, free: 7.543 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006878/0.8479, allocations: 2.838 MB / 0.6624 GB, free: 4.68 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005745/0.8537, allocations: 2.509 MB / 0.6649 GB, free: 2.152 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.335e-05/0.8538, allocations: 8 kB / 0.6649 GB, free: 2.145 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.529e-05/0.8538, allocations: 3.984 kB / 0.6649 GB, free: 2.141 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2024/1.056, allocations: 6.871 MB / 0.6716 GB, free: 121.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.557e-05/1.056, allocations: 1.75 kB / 0.6716 GB, free: 121.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008729/1.057, allocations: 179.2 kB / 0.6718 GB, free: 121.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004401/1.062, allocations: 1.432 MB / 0.6732 GB, free: 121.2 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000252/1.062, allocations: 34.48 kB / 0.6732 GB, free: 121.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008331/1.07, allocations: 7.34 MB / 0.6804 GB, free: 118.5 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007146/1.071, allocations: 1.444 MB / 0.6818 GB, free: 117.2 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007949/1.079, allocations: 4.837 MB / 0.6865 GB, free: 116.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005997/1.08, allocations: 298.7 kB / 0.6868 GB, free: 116.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002513/1.08, allocations: 26.5 kB / 0.6868 GB, free: 116.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00108/1.081, allocations: 125.6 kB / 0.6869 GB, free: 116.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002288/1.081, allocations: 79.12 kB / 0.687 GB, free: 116.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001004/1.081, allocations: 49.03 kB / 0.6871 GB, free: 116.6 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002328/1.084, allocations: 1.706 MB / 0.6887 GB, free: 116.5 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.9e-07/1.084, allocations: 3 kB / 0.6887 GB, free: 116.5 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003071/1.087, allocations: 0.7827 MB / 0.6895 GB, free: 116.5 MB / 442.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.0003598/1.087, allocations: 173.2 kB / 0.6897 GB, free: 116.4 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006187/1.093, allocations: 4.325 MB / 0.6939 GB, free: 115.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/1.093, allocations: 0 / 0.6939 GB, free: 115.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002725/1.096, allocations: 1.724 MB / 0.6956 GB, free: 114.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002208/1.098, allocations: 265.5 kB / 0.6958 GB, free: 114.4 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01027/1.109, allocations: 7.967 MB / 0.7036 GB, free: 110.5 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001855/1.11, allocations: 2.29 MB / 0.7058 GB, free: 109.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006381/1.111, allocations: 201.5 kB / 0.706 GB, free: 109.5 MB / 442.7 MB Notification: Performance of SimCode: time 1.132e-06/1.111, allocations: 0 / 0.706 GB, free: 109.5 MB / 442.7 MB Notification: Performance of Templates: time 0.06886/1.18, allocations: 74.42 MB / 0.7787 GB, free: 43.5 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/jenkins1/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