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.0009956/0.0009956, allocations: 110.2 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001154/0.001154, allocations: 205.8 kB / 18.27 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 246.4 MB, free: 9.141 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001134/0.001134, allocations: 60.55 kB / 306.4 MB, free: 0.7305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09254/0.09369, allocations: 50.53 MB / 357 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ThreeSprings): time 0.2262/0.32, allocations: 41.92 MB / 398.9 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0232/0.3432, allocations: 8.977 MB / 407.9 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01053/0.3538, allocations: 180.9 kB / 408 MB, free: 5.621 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005554/0.3594, allocations: 2.475 MB / 410.5 MB, free: 4.023 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006016/0.3655, allocations: 1.603 MB / 412.1 MB, free: 2.934 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001949/0.3675, allocations: 0.6395 MB / 412.8 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006604/0.3741, allocations: 3.744 MB / 416.5 MB, free: 15.94 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004834/0.3789, allocations: 3.753 MB / 420.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002517/0.3815, allocations: 1.499 MB / 421.8 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002792/0.3843, allocations: 2.153 MB / 423.9 MB, free: 8.492 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006775/0.385, allocations: 316 kB / 424.2 MB, free: 8.184 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002219/0.3872, allocations: 1.159 MB / 425.4 MB, free: 7.023 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001732/0.389, allocations: 1.835 MB / 427.2 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002364/0.3913, allocations: 2.14 MB / 429.4 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007087/0.3984, allocations: 6.456 MB / 435.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.3985, allocations: 4 kB / 435.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.3985, allocations: 0 / 435.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001808/0.3987, allocations: 0 / 435.8 MB, free: 12.55 MB / 350.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.008913/0.4076, allocations: 4.534 MB / 440.4 MB, free: 7.949 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.4077, allocations: 8.031 kB / 440.4 MB, free: 7.941 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006666/0.4143, allocations: 1.937 MB / 442.3 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003522/0.4179, allocations: 1.966 MB / 444.3 MB, free: 3.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001705/0.4181, allocations: 250.2 kB / 444.5 MB, free: 3.734 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007937/0.4189, allocations: 391.8 kB / 444.9 MB, free: 3.352 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01765/0.4365, allocations: 10.11 MB / 455 MB, free: 8.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000103/0.4367, allocations: 43.59 kB / 455 MB, free: 8.477 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004487/0.4371, allocations: 159.8 kB / 455.2 MB, free: 8.32 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002624/0.4398, allocations: 1.849 MB / 457 MB, free: 6.473 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01761/0.4574, allocations: 8.367 MB / 465.4 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05094/0.5084, allocations: 39.38 MB / 0.493 GB, free: 5.57 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01053/0.5189, allocations: 4.035 MB / 0.4969 GB, free: 1.395 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002065/0.5211, allocations: 1.416 MB / 0.4983 GB, free: 15.97 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01026/0.5313, allocations: 7.733 MB / 0.5058 GB, free: 7.734 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.91e-05/0.5314, allocations: 47.56 kB / 0.5059 GB, free: 7.68 MB / 430.1 MB Notification: Performance of pre-optimization done (n=152): time 4.549e-06/0.5314, allocations: 0 / 0.5059 GB, free: 7.68 MB / 430.1 MB Notification: Performance of matching and sorting (n=159): time 0.03105/0.5625, allocations: 12.5 MB / 0.5181 GB, free: 10.98 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001221/0.5637, allocations: 1.672 MB / 0.5197 GB, free: 9.125 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004714/0.5685, allocations: 3.811 MB / 0.5234 GB, free: 5.324 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002617/0.5687, allocations: 49.7 kB / 0.5235 GB, free: 5.27 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001959/0.5707, allocations: 3.107 MB / 0.5265 GB, free: 2.117 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006341/0.5713, allocations: 0.6482 MB / 0.5272 GB, free: 1.461 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001465/0.5728, allocations: 1.261 MB / 0.5284 GB, free: 192 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.1659/0.7388, allocations: 301.1 kB / 0.5287 GB, free: 145.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003865/0.7426, allocations: 2.046 MB / 0.5307 GB, free: 145.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005251/0.7479, allocations: 5.99 MB / 0.5365 GB, free: 140 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009023/0.757, allocations: 8.639 MB / 0.545 GB, free: 132.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001771/0.7572, allocations: 45.31 kB / 0.545 GB, free: 132.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=814) (initialization): time 0.02302/0.7802, allocations: 9.853 MB / 0.5546 GB, free: 129.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.71e-05/0.7803, allocations: 66.47 kB / 0.5547 GB, free: 129.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01084/0.7912, allocations: 3.867 MB / 0.5585 GB, free: 128.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01161/0.8028, allocations: 2.735 MB / 0.5611 GB, free: 128.4 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00379/0.8066, allocations: 1.369 MB / 0.5625 GB, free: 128.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01386/0.8205, allocations: 11.6 MB / 0.5738 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004653/0.8252, allocations: 403.6 kB / 0.5742 GB, free: 117 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000736/0.826, allocations: 391.7 kB / 0.5746 GB, free: 116.6 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 (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,32)} Notification: Performance of prepare postOptimizeDAE: time 0.002578/0.8285, allocations: 2.02 MB / 0.5765 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004687/0.829, allocations: 328.6 kB / 0.5769 GB, free: 114.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006305/0.8297, allocations: 428.4 kB / 0.5773 GB, free: 114.1 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005397/0.8351, allocations: 2.73 MB / 0.5799 GB, free: 111.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.8351, allocations: 4 kB / 0.5799 GB, free: 111.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.682e-05/0.8351, allocations: 11.97 kB / 0.5799 GB, free: 111.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01279/0.8479, allocations: 8.608 MB / 0.5884 GB, free: 102.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.229e-05/0.848, allocations: 0 / 0.5884 GB, free: 102.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008735/0.8488, allocations: 187.7 kB / 0.5885 GB, free: 102.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004355/0.8532, allocations: 1.463 MB / 0.59 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001694/0.8534, allocations: 35.98 kB / 0.59 GB, free: 101 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01019/0.8636, allocations: 9.822 MB / 0.5996 GB, free: 90.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006685/0.8643, allocations: 1.546 MB / 0.6011 GB, free: 89.15 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007818/0.8721, allocations: 5.364 MB / 0.6063 GB, free: 83.78 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007346/0.8729, allocations: 380.7 kB / 0.6067 GB, free: 83.38 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003415/0.8732, allocations: 37.02 kB / 0.6067 GB, free: 83.35 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001244/0.8745, allocations: 119.8 kB / 0.6068 GB, free: 83.23 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003237/0.8748, allocations: 112.9 kB / 0.607 GB, free: 83.12 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/0.8749, allocations: 39.98 kB / 0.607 GB, free: 83.08 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002725/0.8777, allocations: 2.337 MB / 0.6093 GB, free: 80.76 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.282e-06/0.8777, allocations: 4 kB / 0.6093 GB, free: 80.76 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005126/0.8828, allocations: 1.08 MB / 0.6103 GB, free: 79.69 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 (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003744/0.8832, allocations: 168.2 kB / 0.6105 GB, free: 79.52 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008783/0.892, allocations: 6.258 MB / 0.6166 GB, free: 73.22 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.892, allocations: 0 / 0.6166 GB, free: 73.22 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003561/0.8956, allocations: 2.329 MB / 0.6189 GB, free: 70.81 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002086/0.8977, allocations: 399.6 kB / 0.6193 GB, free: 70.43 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01314/0.9108, allocations: 10.98 MB / 0.63 GB, free: 59.42 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002725/0.9136, allocations: 3.119 MB / 0.633 GB, free: 56.27 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003921/0.9176, allocations: 1.803 MB / 0.6348 GB, free: 54.46 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006896/0.9183, allocations: 223.4 kB / 0.635 GB, free: 54.24 MB / 446.1 MB Notification: Performance of SimCode: time 1.423e-06/0.9183, allocations: 0 / 0.635 GB, free: 54.24 MB / 446.1 MB Notification: Performance of Templates: time 0.05933/0.9776, allocations: 42.27 MB / 0.6763 GB, free: 12.18 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