Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001503/0.001503, allocations: 180.7 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.457/1.457, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0009726/0.0009727, allocations: 88.88 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002814/0.0002815, allocations: 8 kB / 328.3 MB, free: 15.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2722, allocations: 47.57 MB / 375.8 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1176/0.3899, allocations: 91.96 MB / 467.8 MB, free: 4.695 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002699/0.3902, allocations: 91.94 kB / 467.9 MB, free: 4.605 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3741/0.7643, allocations: 58.13 MB / 0.5137 GB, free: 94.31 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.7644, allocations: 0 / 0.5137 GB, free: 94.31 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001247/0.7645, allocations: 47.22 kB / 0.5137 GB, free: 94.3 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.01204/0.7765, allocations: 3.076 MB / 0.5167 GB, free: 92.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.7766, allocations: 11.44 kB / 0.5167 GB, free: 92.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008661/0.7853, allocations: 2.059 MB / 0.5187 GB, free: 92.74 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009762/0.795, allocations: 3.648 MB / 0.5223 GB, free: 91.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001776/0.7953, allocations: 192.1 kB / 0.5225 GB, free: 91.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001228/0.7965, allocations: 255.9 kB / 0.5227 GB, free: 91.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01438/0.8109, allocations: 7.027 MB / 0.5296 GB, free: 85.26 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001947/0.8111, allocations: 47.52 kB / 0.5296 GB, free: 85.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001071/0.8122, allocations: 132.5 kB / 0.5298 GB, free: 85.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00105/0.8133, allocations: 0.715 MB / 0.5305 GB, free: 84.39 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01084/0.8241, allocations: 6.087 MB / 0.5364 GB, free: 78.3 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03469/0.8589, allocations: 32.72 MB / 0.5684 GB, free: 44.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009764/0.8687, allocations: 2.667 MB / 0.571 GB, free: 41.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009695/0.8784, allocations: 3.905 MB / 0.5748 GB, free: 37.68 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.186e-05/0.8785, allocations: 51.06 kB / 0.5748 GB, free: 37.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=112): time 4.668e-06/0.8785, allocations: 0 / 0.5748 GB, free: 37.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=125): time 0.0375/0.916, allocations: 10.56 MB / 0.5851 GB, free: 26.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00128/0.9174, allocations: 1.599 MB / 0.5867 GB, free: 25.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005924/0.9233, allocations: 2.476 MB / 0.5891 GB, free: 22.58 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004062/0.9238, allocations: 45.06 kB / 0.5892 GB, free: 22.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001482/0.9253, allocations: 2.073 MB / 0.5912 GB, free: 20.46 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007738/0.9261, allocations: 0.509 MB / 0.5917 GB, free: 19.96 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002718/0.9264, allocations: 84 kB / 0.5918 GB, free: 19.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002841/0.9267, allocations: 0.4999 MB / 0.5923 GB, free: 19.37 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003757/0.9304, allocations: 1.629 MB / 0.5938 GB, free: 17.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004883/0.9353, allocations: 4.399 MB / 0.5981 GB, free: 11.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004959/0.9403, allocations: 2.635 MB / 0.6007 GB, free: 9.297 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.112e-05/0.9404, allocations: 28 kB / 0.6007 GB, free: 9.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=589) (initialization): time 0.01925/0.9597, allocations: 7.04 MB / 0.6076 GB, free: 2.219 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.91e-05/0.9598, allocations: 48 kB / 0.6077 GB, free: 2.172 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008741/0.9686, allocations: 2.525 MB / 0.6101 GB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007921/0.9766, allocations: 1.502 MB / 0.6116 GB, free: 14.12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005467/0.9821, allocations: 1.01 MB / 0.6126 GB, free: 13.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01554/0.9977, allocations: 7.436 MB / 0.6198 GB, free: 5.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006621/1.004, allocations: 375.4 kB / 0.6202 GB, free: 5.043 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001065/1.005, allocations: 287.6 kB / 0.6205 GB, free: 4.766 MB / 394.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.003858/1.009, allocations: 1.415 MB / 0.6219 GB, free: 3.336 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007458/1.01, allocations: 233 kB / 0.6221 GB, free: 3.105 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009926/1.02, allocations: 2.846 MB / 0.6249 GB, free: 240 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007703/1.028, allocations: 2.501 MB / 0.6273 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.037e-05/1.028, allocations: 4 kB / 0.6273 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.781e-05/1.028, allocations: 3.984 kB / 0.6273 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01544/1.043, allocations: 6.879 MB / 0.634 GB, free: 6.762 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.448e-05/1.043, allocations: 7.859 kB / 0.634 GB, free: 6.758 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008889/1.044, allocations: 175.8 kB / 0.6342 GB, free: 6.586 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004838/1.049, allocations: 1.433 MB / 0.6356 GB, free: 5.145 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001806/1.049, allocations: 35.97 kB / 0.6356 GB, free: 5.109 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01046/1.06, allocations: 7.544 MB / 0.643 GB, free: 13.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001103/1.061, allocations: 1.458 MB / 0.6444 GB, free: 11.7 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009397/1.07, allocations: 4.952 MB / 0.6493 GB, free: 6.664 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001151/1.072, allocations: 302 kB / 0.6495 GB, free: 6.348 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003918/1.072, allocations: 31.92 kB / 0.6496 GB, free: 6.316 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001265/1.073, allocations: 127.6 kB / 0.6497 GB, free: 6.195 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002512/1.074, allocations: 80.38 kB / 0.6498 GB, free: 6.117 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001077/1.074, allocations: 35.98 kB / 0.6498 GB, free: 6.082 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003053/1.077, allocations: 1.725 MB / 0.6515 GB, free: 4.348 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.41e-07/1.077, allocations: 0 / 0.6515 GB, free: 4.348 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004658/1.081, allocations: 0.7735 MB / 0.6523 GB, free: 3.574 MB / 426.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.0005343/1.082, allocations: 169.5 kB / 0.6524 GB, free: 3.406 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.2097/1.292, allocations: 4.323 MB / 0.6566 GB, free: 128.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/1.292, allocations: 3 kB / 0.6566 GB, free: 128.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003506/1.295, allocations: 1.712 MB / 0.6583 GB, free: 127.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001584/1.297, allocations: 245.5 kB / 0.6585 GB, free: 127.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01327/1.31, allocations: 7.633 MB / 0.666 GB, free: 125 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002224/1.312, allocations: 2.355 MB / 0.6683 GB, free: 124.2 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003539/1.316, allocations: 1.409 MB / 0.6697 GB, free: 124.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004451/1.316, allocations: 164.5 kB / 0.6698 GB, free: 124.1 MB / 426.7 MB Notification: Performance of SimCode: time 1.432e-06/1.316, allocations: 0 / 0.6698 GB, free: 124.1 MB / 426.7 MB Notification: Performance of Templates: time 0.04407/1.36, allocations: 26.56 MB / 0.6958 GB, free: 116.9 MB / 426.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass_res.mat","/var/lib/jenkins/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_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches