Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.562/1.562, allocations: 221.5 MB / 230.3 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009159/0.000916, allocations: 96.84 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.784e-05/1.787e-05, allocations: 4 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09615/0.09618, allocations: 50.42 MB / 387.5 MB, free: 7.57 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3376/0.4339, allocations: 92.76 MB / 480.2 MB, free: 2.074 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/0.4342, allocations: 83.95 kB / 480.3 MB, free: 1.992 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1513/0.5855, allocations: 57.9 MB / 0.5256 GB, free: 7.652 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.5856, allocations: 0 / 0.5256 GB, free: 7.652 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.749e-05/0.5857, allocations: 44 kB / 0.5256 GB, free: 7.609 MB / 410.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.01048/0.5962, allocations: 2.951 MB / 0.5285 GB, free: 4.602 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.5962, allocations: 12.03 kB / 0.5285 GB, free: 4.59 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009624/0.6059, allocations: 2.055 MB / 0.5305 GB, free: 2.527 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009883/0.6158, allocations: 3.474 MB / 0.5339 GB, free: 15 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001793/0.616, allocations: 80 kB / 0.534 GB, free: 14.93 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001268/0.6173, allocations: 151.9 kB / 0.5342 GB, free: 14.78 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006971/0.6243, allocations: 4.085 MB / 0.5381 GB, free: 10.69 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009618/0.6339, allocations: 6.265 MB / 0.5443 GB, free: 3.691 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001139/0.6341, allocations: 43.62 kB / 0.5443 GB, free: 3.648 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003282/0.6344, allocations: 20 kB / 0.5443 GB, free: 3.629 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001056/0.6355, allocations: 0.7268 MB / 0.545 GB, free: 2.898 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2326/0.8681, allocations: 31.37 MB / 0.5757 GB, free: 88.02 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002349/0.8705, allocations: 2 MB / 0.5776 GB, free: 87.36 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001171/0.8717, allocations: 0.9792 MB / 0.5786 GB, free: 87.33 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009607/0.8727, allocations: 0.9825 MB / 0.5795 GB, free: 86.47 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.916e-05/0.8727, allocations: 45.61 kB / 0.5796 GB, free: 86.43 MB / 426.7 MB Notification: Performance of pre-optimization done (n=118): time 3.446e-06/0.8727, allocations: 0 / 0.5796 GB, free: 86.43 MB / 426.7 MB Notification: Performance of matching and sorting (n=131): time 0.01747/0.8902, allocations: 8.267 MB / 0.5877 GB, free: 84.49 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.941e-05/0.8903, allocations: 142 kB / 0.5878 GB, free: 84.33 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00254/0.8928, allocations: 2.133 MB / 0.5899 GB, free: 84.01 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001578/0.893, allocations: 25.7 kB / 0.5899 GB, free: 83.98 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008311/0.8938, allocations: 2.115 MB / 0.592 GB, free: 82.57 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004079/0.8942, allocations: 0.5097 MB / 0.5925 GB, free: 82.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00016/0.8944, allocations: 3.469 kB / 0.5925 GB, free: 82.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002168/0.8946, allocations: 0.553 MB / 0.593 GB, free: 81.79 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001607/0.8962, allocations: 1.534 MB / 0.5945 GB, free: 81.26 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002621/0.8989, allocations: 4.42 MB / 0.5988 GB, free: 76.84 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003111/0.902, allocations: 2.588 MB / 0.6013 GB, free: 76.05 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.685e-05/0.9021, allocations: 29.03 kB / 0.6014 GB, free: 76.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=616) (initialization): time 0.01144/0.9135, allocations: 6.476 MB / 0.6077 GB, free: 74.05 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.978e-05/0.9136, allocations: 56.8 kB / 0.6078 GB, free: 74.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005411/0.919, allocations: 2.468 MB / 0.6102 GB, free: 73.47 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004695/0.9238, allocations: 1.48 MB / 0.6116 GB, free: 73.27 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003305/0.9271, allocations: 1.059 MB / 0.6126 GB, free: 73.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007305/0.9344, allocations: 6.906 MB / 0.6194 GB, free: 69.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003771/0.9382, allocations: 288.4 kB / 0.6197 GB, free: 69.18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006743/0.9389, allocations: 290.4 kB / 0.6199 GB, free: 69.14 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 471 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (568): * Single equations (assignments): 560 * 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.0005966/0.9395, allocations: 363.4 kB / 0.6203 GB, free: 68.84 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003571/0.9399, allocations: 219.1 kB / 0.6205 GB, free: 68.72 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005548/0.9454, allocations: 2.75 MB / 0.6232 GB, free: 67.96 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004924/0.9504, allocations: 2.443 MB / 0.6256 GB, free: 67.34 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.464e-05/0.9504, allocations: 8.094 kB / 0.6256 GB, free: 67.34 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.902e-05/0.9504, allocations: 10.61 kB / 0.6256 GB, free: 67.34 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0111/0.9615, allocations: 6.758 MB / 0.6322 GB, free: 64.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.897e-06/0.9616, allocations: 0 / 0.6322 GB, free: 64.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008077/0.9624, allocations: 189 kB / 0.6324 GB, free: 63.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004212/0.9666, allocations: 1.401 MB / 0.6337 GB, free: 63 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001836/0.9668, allocations: 23.69 kB / 0.6338 GB, free: 62.99 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007747/0.9746, allocations: 7.053 MB / 0.6406 GB, free: 56.75 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.000648/0.9753, allocations: 1.404 MB / 0.642 GB, free: 55.28 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007711/0.983, allocations: 4.933 MB / 0.6468 GB, free: 51.15 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009242/0.9839, allocations: 281.5 kB / 0.6471 GB, free: 50.86 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002585/0.9842, allocations: 8 kB / 0.6471 GB, free: 50.85 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001232/0.9855, allocations: 110.7 kB / 0.6472 GB, free: 50.79 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002457/0.9857, allocations: 88.97 kB / 0.6473 GB, free: 50.74 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.9858, allocations: 42.56 kB / 0.6473 GB, free: 50.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001906/0.9877, allocations: 1.404 MB / 0.6487 GB, free: 49.46 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.9877, allocations: 0 / 0.6487 GB, free: 49.46 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004189/0.9919, allocations: 0.6985 MB / 0.6494 GB, free: 48.77 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET0.x[3],$STATESET0.x[2],$STATESET0.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 83 * 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.0004528/0.9924, allocations: 149.4 kB / 0.6495 GB, free: 48.64 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007434/0.9999, allocations: 4.134 MB / 0.6536 GB, free: 44.93 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.9999, allocations: 0 / 0.6536 GB, free: 44.93 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00272/1.003, allocations: 1.694 MB / 0.6552 GB, free: 43.24 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001305/1.004, allocations: 206.2 kB / 0.6554 GB, free: 43.04 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007703/1.012, allocations: 5.502 MB / 0.6608 GB, free: 37.54 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001719/1.013, allocations: 2.348 MB / 0.6631 GB, free: 35.17 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003141/1.017, allocations: 1.497 MB / 0.6645 GB, free: 33.67 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003815/1.017, allocations: 163.4 kB / 0.6647 GB, free: 33.51 MB / 426.7 MB Notification: Performance of SimCode: time 1.092e-06/1.017, allocations: 0 / 0.6647 GB, free: 33.51 MB / 426.7 MB Notification: Performance of Templates: time 0.0377/1.055, allocations: 24.37 MB / 0.6885 GB, free: 9.488 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches