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.002234/0.002234, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.074/2.074, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001674/0.001674, allocations: 93.73 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.362e-05/3.407e-05, allocations: 4 kB / 314.8 MB, free: 9.148 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3666/0.3667, allocations: 47.56 MB / 362.3 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1502/0.5169, allocations: 91.21 MB / 453.5 MB, free: 11.06 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00032/0.5173, allocations: 83.95 kB / 453.6 MB, free: 10.98 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.2701/0.7873, allocations: 57.17 MB / 0.4988 GB, free: 1.48 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.7874, allocations: 0 / 0.4988 GB, free: 1.48 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0001564/0.7876, allocations: 48 kB / 0.4989 GB, free: 1.434 MB / 395.1 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.2867/1.074, allocations: 2.946 MB / 0.5018 GB, free: 98.32 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.235e-05/1.074, allocations: 13.3 kB / 0.5018 GB, free: 98.32 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01782/1.092, allocations: 2.055 MB / 0.5038 GB, free: 98.14 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01601/1.108, allocations: 3.624 MB / 0.5073 GB, free: 97.9 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002478/1.109, allocations: 80.41 kB / 0.5074 GB, free: 97.9 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001628/1.11, allocations: 152.7 kB / 0.5075 GB, free: 97.89 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01143/1.122, allocations: 4.079 MB / 0.5115 GB, free: 97.88 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0167/1.138, allocations: 6.264 MB / 0.5176 GB, free: 95.94 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001422/1.139, allocations: 45.38 kB / 0.5177 GB, free: 95.94 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005987/1.139, allocations: 21.72 kB / 0.5177 GB, free: 95.94 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001523/1.141, allocations: 0.7175 MB / 0.5184 GB, free: 95.94 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04933/1.19, allocations: 31.41 MB / 0.5491 GB, free: 73.07 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003468/1.194, allocations: 2.002 MB / 0.551 GB, free: 71.86 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001989/1.196, allocations: 0.9774 MB / 0.552 GB, free: 71.46 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00168/1.197, allocations: 0.9826 MB / 0.5529 GB, free: 70.57 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.122e-05/1.198, allocations: 53.36 kB / 0.553 GB, free: 70.52 MB / 395.1 MB Notification: Performance of pre-optimization done (n=118): time 5.12e-06/1.198, allocations: 0 / 0.553 GB, free: 70.52 MB / 395.1 MB Notification: Performance of matching and sorting (n=131): time 0.03045/1.228, allocations: 8.309 MB / 0.5611 GB, free: 67.17 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.657e-05/1.228, allocations: 140.3 kB / 0.5612 GB, free: 67.02 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00441/1.233, allocations: 2.148 MB / 0.5633 GB, free: 66.12 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003631/1.233, allocations: 25.7 kB / 0.5634 GB, free: 66.09 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001664/1.235, allocations: 2.14 MB / 0.5655 GB, free: 64.36 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008592/1.236, allocations: 0.5172 MB / 0.566 GB, free: 63.99 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005279/1.236, allocations: 3.938 kB / 0.566 GB, free: 63.98 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0003346/1.236, allocations: 0.5081 MB / 0.5665 GB, free: 63.59 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003614/1.24, allocations: 1.537 MB / 0.568 GB, free: 63.06 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005585/1.246, allocations: 4.415 MB / 0.5723 GB, free: 58.51 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005476/1.251, allocations: 2.585 MB / 0.5748 GB, free: 56.91 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001043/1.251, allocations: 32 kB / 0.5748 GB, free: 56.88 MB / 395.1 MB Notification: Performance of matching and sorting (n=616) (initialization): time 0.02111/1.273, allocations: 6.428 MB / 0.5811 GB, free: 51.56 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.97e-05/1.273, allocations: 48 kB / 0.5811 GB, free: 51.52 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01008/1.283, allocations: 2.481 MB / 0.5836 GB, free: 49.68 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009141/1.292, allocations: 1.478 MB / 0.585 GB, free: 48.69 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006203/1.298, allocations: 1.057 MB / 0.586 GB, free: 47.76 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01393/1.312, allocations: 6.897 MB / 0.5928 GB, free: 41.36 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005983/1.318, allocations: 283.4 kB / 0.5931 GB, free: 41.08 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001216/1.319, allocations: 296 kB / 0.5933 GB, free: 40.79 MB / 395.1 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.001529/1.321, allocations: 370.6 kB / 0.5937 GB, free: 40.43 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006465/1.322, allocations: 221.2 kB / 0.5939 GB, free: 40.21 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01126/1.333, allocations: 2.754 MB / 0.5966 GB, free: 37.43 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01007/1.343, allocations: 2.434 MB / 0.599 GB, free: 34.98 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.579e-05/1.343, allocations: 4 kB / 0.599 GB, free: 34.98 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.891e-05/1.343, allocations: 3.984 kB / 0.599 GB, free: 34.97 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02228/1.366, allocations: 6.771 MB / 0.6056 GB, free: 28.14 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.927e-05/1.366, allocations: 96 / 0.6056 GB, free: 28.14 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001771/1.367, allocations: 191.7 kB / 0.6058 GB, free: 27.95 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008812/1.376, allocations: 1.399 MB / 0.6071 GB, free: 26.54 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004636/1.377, allocations: 19.97 kB / 0.6072 GB, free: 26.52 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01476/1.392, allocations: 7.069 MB / 0.6141 GB, free: 19.25 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00109/1.393, allocations: 1.392 MB / 0.6154 GB, free: 17.73 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01441/1.407, allocations: 4.926 MB / 0.6202 GB, free: 12.72 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008437/1.408, allocations: 286.1 kB / 0.6205 GB, free: 12.42 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007539/1.409, allocations: 15.98 kB / 0.6205 GB, free: 12.41 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002756/1.412, allocations: 108.5 kB / 0.6206 GB, free: 12.3 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005779/1.412, allocations: 85.97 kB / 0.6207 GB, free: 12.22 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001769/1.412, allocations: 37.47 kB / 0.6207 GB, free: 12.18 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.003303/1.416, allocations: 1.416 MB / 0.6221 GB, free: 10.75 MB / 395.1 MB Notification: Performance of sort global known variables: time 1.092e-06/1.416, allocations: 3.938 kB / 0.6221 GB, free: 10.75 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.005918/1.422, allocations: 0.694 MB / 0.6228 GB, free: 10.06 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET4600443272.x[3],$STATESET4600443272.x[2],$STATESET4600443272.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.0007159/1.423, allocations: 147.4 kB / 0.6229 GB, free: 9.914 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.01045/1.433, allocations: 4.137 MB / 0.627 GB, free: 5.754 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 9.839e-06/1.433, allocations: 8 kB / 0.627 GB, free: 5.746 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005329/1.438, allocations: 1.676 MB / 0.6286 GB, free: 4.027 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001923/1.44, allocations: 212.8 kB / 0.6288 GB, free: 3.824 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01429/1.455, allocations: 5.81 MB / 0.6345 GB, free: 14.01 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004551/1.459, allocations: 2.359 MB / 0.6368 GB, free: 11.62 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001068/1.46, allocations: 199.4 kB / 0.637 GB, free: 11.43 MB / 411.1 MB Notification: Performance of SimCode: time 1.193e-06/1.46, allocations: 0 / 0.637 GB, free: 11.43 MB / 411.1 MB Notification: Performance of Templates: time 0.4071/1.868, allocations: 70.32 MB / 0.7057 GB, free: 103.8 MB / 427.1 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