Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009065/0.0009066, allocations: 94.69 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008678/0.0008677, allocations: 194.4 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 227.7 MB / 246.4 MB, free: 9.82 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003527/0.0003527, allocations: 8 kB / 307.1 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1008, allocations: 51.53 MB / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.2287/0.3295, allocations: 37.91 MB / 396.6 MB, free: 14.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02241/0.352, allocations: 8.584 MB / 405.1 MB, free: 8.828 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007531/0.3596, allocations: 177.3 kB / 405.3 MB, free: 8.801 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005557/0.3652, allocations: 1.963 MB / 407.3 MB, free: 7.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01564/0.3808, allocations: 5.811 MB / 413.1 MB, free: 3.801 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002673/0.3835, allocations: 0.5601 MB / 413.6 MB, free: 3.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006297/0.3898, allocations: 4.291 MB / 417.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007088/0.397, allocations: 4.174 MB / 422.1 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002777/0.3998, allocations: 1.187 MB / 423.3 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003169/0.4029, allocations: 1.787 MB / 425.1 MB, free: 8.609 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007203/0.4037, allocations: 143.9 kB / 425.2 MB, free: 8.469 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002576/0.4063, allocations: 0.8816 MB / 426.1 MB, free: 7.586 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002006/0.4083, allocations: 1.589 MB / 427.7 MB, free: 5.992 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001218/0.4095, allocations: 0.7921 MB / 428.5 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006371/0.4159, allocations: 5.064 MB / 433.6 MB, free: 120 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.483e-06/0.4159, allocations: 0 / 433.6 MB, free: 120 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.416, allocations: 4 kB / 433.6 MB, free: 116 kB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002387/0.4162, allocations: 0 / 433.6 MB, free: 116 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1516 * Number of variables: 1516 Notification: Performance of Generate backend data structure: time 0.01192/0.4282, allocations: 3.758 MB / 437.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.4282, allocations: 11.97 kB / 437.3 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01178/0.44, allocations: 1.971 MB / 439.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007205/0.4473, allocations: 1.927 MB / 441.2 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000411/0.4477, allocations: 250.2 kB / 441.5 MB, free: 8.078 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001713/0.4494, allocations: 399.6 kB / 441.9 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03147/0.4809, allocations: 10.1 MB / 452 MB, free: 12.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001531/0.4811, allocations: 39.64 kB / 452 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006654/0.4818, allocations: 163.8 kB / 452.2 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005149/0.487, allocations: 1.849 MB / 454 MB, free: 10.81 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03158/0.5186, allocations: 8.343 MB / 462.4 MB, free: 2.453 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05959/0.5782, allocations: 39.37 MB / 0.49 GB, free: 9.949 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01009/0.5883, allocations: 4.039 MB / 0.4939 GB, free: 5.77 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002065/0.5904, allocations: 1.412 MB / 0.4953 GB, free: 4.348 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009979/0.6004, allocations: 7.737 MB / 0.5028 GB, free: 12.11 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.728e-05/0.6005, allocations: 55.55 kB / 0.5029 GB, free: 12.05 MB / 430.1 MB Notification: Performance of pre-optimization done (n=152): time 3.907e-06/0.6005, allocations: 0 / 0.5029 GB, free: 12.05 MB / 430.1 MB Notification: Performance of matching and sorting (n=159): time 0.02937/0.6299, allocations: 12.53 MB / 0.5151 GB, free: 15.32 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001209/0.6311, allocations: 1.593 MB / 0.5167 GB, free: 13.55 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004699/0.6359, allocations: 3.784 MB / 0.5204 GB, free: 9.777 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002338/0.6361, allocations: 49.7 kB / 0.5204 GB, free: 9.723 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002133/0.6382, allocations: 3.107 MB / 0.5235 GB, free: 6.57 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006567/0.6389, allocations: 0.6443 MB / 0.5241 GB, free: 5.918 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000241/0.6392, allocations: 120 kB / 0.5242 GB, free: 5.801 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003486/0.6395, allocations: 0.5782 MB / 0.5248 GB, free: 5.215 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002995/0.6425, allocations: 2.03 MB / 0.5268 GB, free: 3.18 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1763/0.8188, allocations: 5.961 MB / 0.5326 GB, free: 139.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005243/0.8241, allocations: 3.386 MB / 0.5359 GB, free: 139 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.959e-05/0.8242, allocations: 40.69 kB / 0.5359 GB, free: 139 MB / 446.1 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.02074/0.845, allocations: 9.83 MB / 0.5455 GB, free: 136 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001288/0.8451, allocations: 68.94 kB / 0.5456 GB, free: 136 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01026/0.8554, allocations: 3.887 MB / 0.5494 GB, free: 135.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01018/0.8656, allocations: 2.78 MB / 0.5521 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003909/0.8695, allocations: 1.37 MB / 0.5534 GB, free: 134.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01232/0.8819, allocations: 10.68 MB / 0.5639 GB, free: 128.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00406/0.8859, allocations: 405.6 kB / 0.5643 GB, free: 128 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004774/0.8864, allocations: 398.7 kB / 0.5646 GB, free: 127.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 637 * Number of states: 0 () * Number of discrete variables: 39 (spring3.color[3],spring3.color[2],spring3.color[1],spring3.massColor[3],spring3.massColor[2],spring3.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (742): * Single equations (assignments): 732 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {6 29} Notification: Performance of prepare postOptimizeDAE: time 0.002492/0.8889, allocations: 2.004 MB / 0.5666 GB, free: 126.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003409/0.8893, allocations: 327.7 kB / 0.5669 GB, free: 126.1 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006523/0.8899, allocations: 436.4 kB / 0.5673 GB, free: 125.6 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004756/0.8947, allocations: 2.755 MB / 0.57 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.8947, allocations: 4 kB / 0.57 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.158e-05/0.8947, allocations: 11.94 kB / 0.57 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01153/0.9063, allocations: 8.621 MB / 0.5784 GB, free: 114.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.153e-06/0.9063, allocations: 4.875 kB / 0.5784 GB, free: 114.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007781/0.9071, allocations: 191.7 kB / 0.5786 GB, free: 114 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003816/0.9109, allocations: 1.466 MB / 0.5801 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001026/0.911, allocations: 35.97 kB / 0.5801 GB, free: 112.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00929/0.9203, allocations: 9.149 MB / 0.589 GB, free: 103 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006595/0.921, allocations: 1.459 MB / 0.5905 GB, free: 101.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007215/0.9282, allocations: 5.389 MB / 0.5957 GB, free: 96.07 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005807/0.9288, allocations: 380.7 kB / 0.5961 GB, free: 95.68 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002967/0.9291, allocations: 24 kB / 0.5961 GB, free: 95.65 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001125/0.9303, allocations: 141.1 kB / 0.5962 GB, free: 95.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002208/0.9305, allocations: 116.7 kB / 0.5964 GB, free: 95.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.464e-05/0.9306, allocations: 43.98 kB / 0.5964 GB, free: 95.36 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002759/0.9334, allocations: 2.317 MB / 0.5987 GB, free: 93.05 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.9334, allocations: 0 / 0.5987 GB, free: 93.05 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004554/0.9379, allocations: 1.071 MB / 0.5997 GB, free: 91.99 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.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 (91): * 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): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {6 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.000329/0.9383, allocations: 167.4 kB / 0.5999 GB, free: 91.83 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00764/0.9459, allocations: 5.766 MB / 0.6055 GB, free: 86.02 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.9459, allocations: 0 / 0.6055 GB, free: 86.02 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003211/0.9492, allocations: 2.315 MB / 0.6078 GB, free: 83.62 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001703/0.9509, allocations: 377.1 kB / 0.6081 GB, free: 83.25 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01192/0.9628, allocations: 10.72 MB / 0.6186 GB, free: 72.49 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002591/0.9654, allocations: 3.129 MB / 0.6216 GB, free: 69.34 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003722/0.9691, allocations: 1.8 MB / 0.6234 GB, free: 67.53 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004071/0.9696, allocations: 223.4 kB / 0.6236 GB, free: 67.31 MB / 446.1 MB Notification: Performance of SimCode: time 7.41e-07/0.9696, allocations: 0 / 0.6236 GB, free: 67.31 MB / 446.1 MB Notification: Performance of Templates: time 0.05451/1.024, allocations: 39.14 MB / 0.6618 GB, free: 28.35 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/ThreeSprings/ThreeSprings.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches