Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001624/0.001624, allocations: 202.1 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.535/1.535, allocations: 225.6 MB / 234.8 MB, free: 3.258 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008482/0.0008482, allocations: 95.88 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.448e-05/1.435e-05, allocations: 4 kB / 343.7 MB, free: 8.281 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1141, allocations: 51.48 MB / 395.2 MB, free: 4.762 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3682/0.4824, allocations: 93.41 MB / 488.6 MB, free: 15.96 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002449/0.4827, allocations: 82.27 kB / 488.7 MB, free: 15.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1747/0.6574, allocations: 58.66 MB / 0.5345 GB, free: 10 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.6575, allocations: 0 / 0.5345 GB, free: 10 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001321/0.6576, allocations: 48 kB / 0.5345 GB, free: 9.957 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.01303/0.6707, allocations: 3.052 MB / 0.5375 GB, free: 6.852 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.6707, allocations: 8.031 kB / 0.5375 GB, free: 6.844 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01009/0.6808, allocations: 2.106 MB / 0.5396 GB, free: 4.73 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009349/0.6902, allocations: 2.981 MB / 0.5425 GB, free: 1.703 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002286/0.6905, allocations: 80 kB / 0.5426 GB, free: 1.625 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001365/0.6918, allocations: 151.9 kB / 0.5427 GB, free: 1.477 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008118/0.7, allocations: 4.077 MB / 0.5467 GB, free: 13.39 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01223/0.7122, allocations: 6.272 MB / 0.5528 GB, free: 6.391 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000148/0.7124, allocations: 43.53 kB / 0.5529 GB, free: 6.348 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009201/0.7134, allocations: 20 kB / 0.5529 GB, free: 6.328 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001403/0.7148, allocations: 0.7228 MB / 0.5536 GB, free: 5.602 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2988/1.014, allocations: 31.37 MB / 0.5842 GB, free: 75.49 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002197/1.016, allocations: 2.001 MB / 0.5862 GB, free: 74.83 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00117/1.017, allocations: 0.977 MB / 0.5871 GB, free: 74.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008843/1.018, allocations: 0.9903 MB / 0.5881 GB, free: 73.95 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/1.018, allocations: 43.78 kB / 0.5881 GB, free: 73.91 MB / 442.7 MB Notification: Performance of pre-optimization done (n=118): time 4.128e-06/1.018, allocations: 0 / 0.5881 GB, free: 73.91 MB / 442.7 MB Notification: Performance of matching and sorting (n=131): time 0.01664/1.035, allocations: 8.267 MB / 0.5962 GB, free: 72.04 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.179e-05/1.035, allocations: 141.2 kB / 0.5963 GB, free: 71.88 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002785/1.038, allocations: 2.132 MB / 0.5984 GB, free: 71.61 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002262/1.038, allocations: 28.61 kB / 0.5985 GB, free: 71.57 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009813/1.039, allocations: 2.116 MB / 0.6005 GB, free: 70.44 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004564/1.039, allocations: 0.5102 MB / 0.601 GB, free: 70.15 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001557/1.039, allocations: 0 / 0.601 GB, free: 70.15 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002475/1.04, allocations: 0.5527 MB / 0.6016 GB, free: 69.83 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001715/1.041, allocations: 1.54 MB / 0.6031 GB, free: 69.82 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002925/1.044, allocations: 4.415 MB / 0.6074 GB, free: 66.07 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003178/1.047, allocations: 2.595 MB / 0.6099 GB, free: 66.04 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.935e-05/1.048, allocations: 26.81 kB / 0.6099 GB, free: 66.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=616) (initialization): time 0.01281/1.06, allocations: 6.486 MB / 0.6163 GB, free: 65.53 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.851e-05/1.061, allocations: 47.91 kB / 0.6163 GB, free: 65.53 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005865/1.066, allocations: 2.473 MB / 0.6187 GB, free: 65.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005302/1.072, allocations: 1.472 MB / 0.6202 GB, free: 65.42 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004048/1.076, allocations: 1.065 MB / 0.6212 GB, free: 65.32 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008875/1.085, allocations: 6.894 MB / 0.6279 GB, free: 61.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004535/1.089, allocations: 290.5 kB / 0.6282 GB, free: 61.38 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008573/1.09, allocations: 294.1 kB / 0.6285 GB, free: 61.34 MB / 442.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.0007968/1.091, allocations: 356.8 kB / 0.6288 GB, free: 61.04 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000428/1.091, allocations: 221.4 kB / 0.629 GB, free: 60.91 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006792/1.098, allocations: 2.746 MB / 0.6317 GB, free: 60.16 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006441/1.105, allocations: 2.443 MB / 0.6341 GB, free: 59.55 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.052e-05/1.105, allocations: 8.562 kB / 0.6341 GB, free: 59.55 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-05/1.105, allocations: 4.297 kB / 0.6341 GB, free: 59.55 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01477/1.12, allocations: 6.763 MB / 0.6407 GB, free: 57.21 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.44e-05/1.12, allocations: 5.156 kB / 0.6407 GB, free: 57.21 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009166/1.121, allocations: 183.2 kB / 0.6409 GB, free: 57.19 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005072/1.126, allocations: 1.401 MB / 0.6423 GB, free: 56.98 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003612/1.126, allocations: 21.25 kB / 0.6423 GB, free: 56.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01039/1.136, allocations: 7.069 MB / 0.6492 GB, free: 53.09 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001359/1.138, allocations: 1.394 MB / 0.6506 GB, free: 51.72 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00992/1.148, allocations: 4.936 MB / 0.6554 GB, free: 49.79 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009941/1.149, allocations: 277.6 kB / 0.6557 GB, free: 49.57 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006115/1.15, allocations: 11.36 kB / 0.6557 GB, free: 49.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001551/1.151, allocations: 109.1 kB / 0.6558 GB, free: 49.56 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003123/1.151, allocations: 82.31 kB / 0.6558 GB, free: 49.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00012/1.152, allocations: 42.19 kB / 0.6559 GB, free: 49.54 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002662/1.154, allocations: 1.403 MB / 0.6573 GB, free: 48.99 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.61e-07/1.154, allocations: 0 / 0.6573 GB, free: 48.99 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004636/1.159, allocations: 0.699 MB / 0.6579 GB, free: 48.99 MB / 442.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.0004658/1.159, allocations: 153.4 kB / 0.6581 GB, free: 48.88 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006487/1.166, allocations: 4.13 MB / 0.6621 GB, free: 47.32 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/1.166, allocations: 3.719 kB / 0.6621 GB, free: 47.32 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002713/1.169, allocations: 1.697 MB / 0.6638 GB, free: 46.59 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001427/1.17, allocations: 201.3 kB / 0.664 GB, free: 46.49 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01068/1.181, allocations: 5.49 MB / 0.6693 GB, free: 44.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002262/1.183, allocations: 2.349 MB / 0.6716 GB, free: 43.25 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003193/1.186, allocations: 1.499 MB / 0.6731 GB, free: 43.14 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004086/1.187, allocations: 162.5 kB / 0.6732 GB, free: 43.12 MB / 442.7 MB Notification: Performance of SimCode: time 1.463e-06/1.187, allocations: 0 / 0.6732 GB, free: 43.12 MB / 442.7 MB Notification: Performance of Templates: time 0.04062/1.227, allocations: 24.37 MB / 0.697 GB, free: 27.21 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches