Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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.SpringDamperSystem,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.|p2.s|p2.v",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,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.|p2.s|p2.v",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00132/0.00132, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001543/0.001543, allocations: 211.9 kB / 19.25 MB, free: 3.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.264/1.264, allocations: 227.4 MB / 247.4 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 59.69 kB / 307.6 MB, free: 0.6328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09001/0.09119, allocations: 50.54 MB / 358.2 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01183/0.1031, allocations: 11.97 MB / 370.1 MB, free: 2.059 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1633/0.2664, allocations: 4.201 MB / 374.3 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00159/0.268, allocations: 69.91 kB / 374.4 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004599/0.2727, allocations: 2.742 MB / 377.1 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004753/0.2774, allocations: 1.937 MB / 379.1 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001943/0.2794, allocations: 0.8024 MB / 379.9 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006227/0.2856, allocations: 4.678 MB / 384.6 MB, free: 7.539 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003953/0.2896, allocations: 3.554 MB / 388.1 MB, free: 6.086 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002557/0.2922, allocations: 1.682 MB / 389.8 MB, free: 5.246 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002942/0.2951, allocations: 2.329 MB / 392.1 MB, free: 3.977 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008556/0.296, allocations: 351 kB / 392.5 MB, free: 3.977 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002493/0.2985, allocations: 1.254 MB / 393.7 MB, free: 3.535 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001577/0.3001, allocations: 2.082 MB / 395.8 MB, free: 2.336 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002134/0.3022, allocations: 2.409 MB / 398.2 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007182/0.3094, allocations: 7.197 MB / 405.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.3095, allocations: 0 / 405.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3095, allocations: 0 / 405.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001906/0.3097, allocations: 0 / 405.4 MB, free: 10.05 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.009466/0.3192, allocations: 5.232 MB / 410.6 MB, free: 4.867 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.3192, allocations: 8.031 kB / 410.6 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007662/0.3269, allocations: 2.174 MB / 412.8 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004099/0.331, allocations: 2.428 MB / 415.2 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002092/0.3312, allocations: 281.1 kB / 415.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009806/0.3322, allocations: 424.5 kB / 415.9 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02229/0.3545, allocations: 12.26 MB / 428.2 MB, free: 2.656 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001743/0.3547, allocations: 55.52 kB / 428.2 MB, free: 2.602 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009176/0.3557, allocations: 182.9 kB / 428.4 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003234/0.3589, allocations: 2.157 MB / 430.6 MB, free: 312 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02076/0.3797, allocations: 10.26 MB / 440.8 MB, free: 6.039 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05027/0.43, allocations: 44.31 MB / 485.2 MB, free: 8.707 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01158/0.4416, allocations: 4.662 MB / 489.8 MB, free: 3.852 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002387/0.444, allocations: 1.724 MB / 491.5 MB, free: 2.117 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01163/0.4557, allocations: 8.293 MB / 499.8 MB, free: 9.48 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.918e-05/0.4557, allocations: 67.73 kB / 499.9 MB, free: 9.406 MB / 414.1 MB Notification: Performance of pre-optimization done (n=183): time 4.127e-06/0.4558, allocations: 0 / 499.9 MB, free: 9.406 MB / 414.1 MB Notification: Performance of matching and sorting (n=205): time 0.03981/0.4956, allocations: 16.07 MB / 0.5039 GB, free: 9.172 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001195/0.4968, allocations: 1.68 MB / 0.5055 GB, free: 7.312 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005622/0.5024, allocations: 4.194 MB / 0.5096 GB, free: 3.098 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003246/0.5028, allocations: 52.44 kB / 0.5097 GB, free: 3.043 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002082/0.5049, allocations: 3.403 MB / 0.513 GB, free: 15.64 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008944/0.5058, allocations: 0.8084 MB / 0.5138 GB, free: 14.84 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002021/0.5078, allocations: 1.355 MB / 0.5151 GB, free: 13.47 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.135e-05/0.5079, allocations: 301.1 kB / 0.5154 GB, free: 13.18 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00338/0.5113, allocations: 2.29 MB / 0.5176 GB, free: 10.88 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005691/0.517, allocations: 6.406 MB / 0.5239 GB, free: 2.43 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1616/0.6787, allocations: 9.357 MB / 0.533 GB, free: 129.9 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.593e-05/0.6788, allocations: 41.34 kB / 0.5331 GB, free: 129.9 MB / 446.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02251/0.7013, allocations: 10.16 MB / 0.543 GB, free: 126.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001082/0.7015, allocations: 67.09 kB / 0.543 GB, free: 126.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01072/0.7122, allocations: 3.911 MB / 0.5469 GB, free: 125.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009611/0.7218, allocations: 2.253 MB / 0.5491 GB, free: 125.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00447/0.7263, allocations: 1.592 MB / 0.5506 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007256/0.7336, allocations: 6.628 MB / 0.5571 GB, free: 121.8 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00454/0.7382, allocations: 431.2 kB / 0.5575 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007402/0.739, allocations: 420.8 kB / 0.5579 GB, free: 121.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (856): * Single equations (assignments): 847 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * 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): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002674/0.7416, allocations: 2.218 MB / 0.5601 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005164/0.7422, allocations: 368.2 kB / 0.5604 GB, free: 120.7 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005584/0.7477, allocations: 3.315 MB / 0.5637 GB, free: 119 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004329/0.7521, allocations: 2.785 MB / 0.5664 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/0.7521, allocations: 4 kB / 0.5664 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.208e-05/0.7522, allocations: 9.984 kB / 0.5664 GB, free: 117.4 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01364/0.7658, allocations: 10.38 MB / 0.5765 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-05/0.7659, allocations: 12 kB / 0.5765 GB, free: 106.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00131/0.7672, allocations: 376.9 kB / 0.5769 GB, free: 106.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002516/0.7697, allocations: 0.9903 MB / 0.5779 GB, free: 105.4 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000187/0.7699, allocations: 59.97 kB / 0.5779 GB, free: 105.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003671/0.7736, allocations: 4.914 MB / 0.5827 GB, free: 100.2 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006854/0.7743, allocations: 1.56 MB / 0.5842 GB, free: 98.52 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00709/0.7814, allocations: 5.961 MB / 0.5901 GB, free: 92.54 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007845/0.7822, allocations: 444 kB / 0.5905 GB, free: 92.08 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003983/0.7826, allocations: 55.98 kB / 0.5905 GB, free: 92.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001497/0.7841, allocations: 155.2 kB / 0.5907 GB, free: 91.88 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002558/0.7844, allocations: 172.4 kB / 0.5909 GB, free: 91.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001141/0.7845, allocations: 79.34 kB / 0.5909 GB, free: 91.64 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00284/0.7874, allocations: 2.585 MB / 0.5935 GB, free: 89.04 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.7874, allocations: 0 / 0.5935 GB, free: 89.04 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004557/0.7919, allocations: 1.142 MB / 0.5946 GB, free: 87.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($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],p2.s,p2.v) * 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 (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * 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): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004164/0.7924, allocations: 216.1 kB / 0.5948 GB, free: 87.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.009265/0.8016, allocations: 6.718 MB / 0.6013 GB, free: 80.96 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.284e-05/0.8017, allocations: 4 kB / 0.6013 GB, free: 80.96 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003352/0.8051, allocations: 2.216 MB / 0.6035 GB, free: 78.67 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002763/0.8078, allocations: 0.4945 MB / 0.604 GB, free: 78.19 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01386/0.8217, allocations: 11.23 MB / 0.6149 GB, free: 66.77 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002815/0.8246, allocations: 3.447 MB / 0.6183 GB, free: 63.29 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009167/0.8255, allocations: 323.4 kB / 0.6186 GB, free: 62.97 MB / 446.1 MB Notification: Performance of SimCode: time 8.01e-07/0.8255, allocations: 0 / 0.6186 GB, free: 62.97 MB / 446.1 MB Notification: Performance of Templates: time 0.5039/1.329, allocations: 140.8 MB / 0.7562 GB, free: 103.3 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches