Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001172/0.001172, allocations: 110.2 kB / 18.25 MB, free: 4.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 195.3 kB / 19.18 MB, free: 3.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.402/1.402, allocations: 205.1 MB / 225.1 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001343/0.001343, allocations: 55.92 kB / 281.3 MB, free: 3.18 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08431/0.08566, allocations: 46.63 MB / 328 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01336/0.09908, allocations: 12.04 MB / 340 MB, free: 8.371 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008547/0.1077, allocations: 4.193 MB / 344.2 MB, free: 4.164 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001954/0.1097, allocations: 67.81 kB / 344.3 MB, free: 4.098 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005424/0.1152, allocations: 2.752 MB / 347 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00543/0.1206, allocations: 1.972 MB / 349 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002068/0.1227, allocations: 0.8033 MB / 349.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006399/0.1291, allocations: 4.632 MB / 354.4 MB, free: 9.902 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004698/0.1339, allocations: 3.564 MB / 358 MB, free: 6.297 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002964/0.1369, allocations: 1.701 MB / 359.7 MB, free: 4.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003298/0.1402, allocations: 2.34 MB / 362 MB, free: 2.242 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009233/0.1412, allocations: 352 kB / 362.4 MB, free: 1.898 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002532/0.1437, allocations: 1.276 MB / 363.6 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002057/0.1458, allocations: 2.112 MB / 365.7 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003069/0.1489, allocations: 2.423 MB / 368.2 MB, free: 12.07 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007853/0.1567, allocations: 7.27 MB / 375.4 MB, free: 4.773 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.1568, allocations: 0 / 375.4 MB, free: 4.773 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1568, allocations: 0 / 375.4 MB, free: 4.773 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002534/0.157, allocations: 0 / 375.4 MB, free: 4.773 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.1807/0.3377, allocations: 5.279 MB / 380.7 MB, free: 49.51 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.3378, allocations: 10.14 kB / 380.7 MB, free: 49.51 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009539/0.3473, allocations: 2.111 MB / 382.8 MB, free: 49.2 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00594/0.3533, allocations: 2.586 MB / 385.4 MB, free: 48.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003038/0.3536, allocations: 276.9 kB / 385.7 MB, free: 48 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001729/0.3554, allocations: 429.5 kB / 386.1 MB, free: 47.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0241/0.3795, allocations: 12.22 MB / 398.3 MB, free: 41.49 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001593/0.3797, allocations: 48.12 kB / 398.4 MB, free: 41.46 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001162/0.3809, allocations: 176.2 kB / 398.6 MB, free: 41.39 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002942/0.3838, allocations: 2.163 MB / 400.7 MB, free: 39.42 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01907/0.4029, allocations: 10.2 MB / 410.9 MB, free: 29.2 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0439/0.4469, allocations: 44.33 MB / 455.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01156/0.4585, allocations: 4.617 MB / 459.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0025/0.461, allocations: 1.721 MB / 461.6 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01227/0.4733, allocations: 8.233 MB / 469.8 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.089e-05/0.4734, allocations: 59.81 kB / 469.9 MB, free: 476 kB / 350.1 MB Notification: Performance of pre-optimization done (n=183): time 4.799e-06/0.4734, allocations: 0 / 469.9 MB, free: 476 kB / 350.1 MB Notification: Performance of matching and sorting (n=205): time 0.03977/0.5132, allocations: 15.96 MB / 485.8 MB, free: 336 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001291/0.5145, allocations: 1.688 MB / 487.5 MB, free: 14.46 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005649/0.5202, allocations: 4.215 MB / 491.7 MB, free: 10.23 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003263/0.5205, allocations: 53.7 kB / 491.8 MB, free: 10.17 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002267/0.5228, allocations: 3.396 MB / 495.2 MB, free: 6.723 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009048/0.5237, allocations: 0.81 MB / 496 MB, free: 5.902 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001791/0.5255, allocations: 1.357 MB / 497.4 MB, free: 4.535 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001279/0.5257, allocations: 309 kB / 497.7 MB, free: 4.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003601/0.5293, allocations: 2.266 MB / 499.9 MB, free: 1.961 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006261/0.5355, allocations: 6.398 MB / 0.4945 GB, free: 9.508 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0111/0.5467, allocations: 9.316 MB / 0.5036 GB, free: 14.14 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001177/0.5468, allocations: 44 kB / 0.5036 GB, free: 14.1 MB / 414.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02375/0.5706, allocations: 10.06 MB / 0.5134 GB, free: 4.023 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.781e-05/0.5707, allocations: 69 kB / 0.5135 GB, free: 3.957 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01168/0.5824, allocations: 3.797 MB / 0.5172 GB, free: 152 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01088/0.5933, allocations: 2.168 MB / 0.5193 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005271/0.5986, allocations: 1.587 MB / 0.5209 GB, free: 12.38 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009409/0.6081, allocations: 6.604 MB / 0.5273 GB, free: 5.484 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005356/0.6135, allocations: 423.4 kB / 0.5277 GB, free: 5.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008031/0.6143, allocations: 412 kB / 0.5281 GB, free: 4.668 MB / 430.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.003461/0.6178, allocations: 2.224 MB / 0.5303 GB, free: 2.434 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006764/0.6185, allocations: 379.1 kB / 0.5306 GB, free: 2.059 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1762/0.7947, allocations: 3.281 MB / 0.5338 GB, free: 142.2 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006036/0.8008, allocations: 2.745 MB / 0.5365 GB, free: 142.2 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.792e-05/0.8008, allocations: 7.531 kB / 0.5365 GB, free: 142.2 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.571e-05/0.8009, allocations: 8.672 kB / 0.5365 GB, free: 142.2 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01906/0.8199, allocations: 10.34 MB / 0.5466 GB, free: 138.2 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-05/0.82, allocations: 13.53 kB / 0.5467 GB, free: 138.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001576/0.8216, allocations: 369.3 kB / 0.547 GB, free: 138.2 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003043/0.8246, allocations: 0.9902 MB / 0.548 GB, free: 138 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002438/0.8249, allocations: 64.83 kB / 0.548 GB, free: 138 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004408/0.8293, allocations: 4.905 MB / 0.5528 GB, free: 134.7 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007639/0.8301, allocations: 1.554 MB / 0.5543 GB, free: 133.2 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008446/0.8386, allocations: 5.91 MB / 0.5601 GB, free: 130.7 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0016/0.8402, allocations: 0.6608 MB / 0.5608 GB, free: 130.5 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004674/0.8407, allocations: 57.22 kB / 0.5608 GB, free: 130.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001603/0.8423, allocations: 150.2 kB / 0.561 GB, free: 130.4 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002954/0.8426, allocations: 169.6 kB / 0.5611 GB, free: 130.3 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001305/0.8427, allocations: 76.5 kB / 0.5612 GB, free: 130.3 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003545/0.8463, allocations: 2.608 MB / 0.5637 GB, free: 129 MB / 430.1 MB Notification: Performance of sort global known variables: time 6.21e-07/0.8463, allocations: 0 / 0.5637 GB, free: 129 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005527/0.8518, allocations: 1.165 MB / 0.5649 GB, free: 128.8 MB / 430.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.0005046/0.8524, allocations: 228.6 kB / 0.5651 GB, free: 128.7 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01035/0.8627, allocations: 6.683 MB / 0.5716 GB, free: 123.1 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.608e-05/0.8628, allocations: 0 / 0.5716 GB, free: 123.1 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003798/0.8666, allocations: 2.193 MB / 0.5738 GB, free: 120.8 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003349/0.87, allocations: 0.4964 MB / 0.5742 GB, free: 120.4 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01476/0.8847, allocations: 11.21 MB / 0.5852 GB, free: 109 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002976/0.8878, allocations: 3.459 MB / 0.5886 GB, free: 105.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001041/0.8888, allocations: 328.2 kB / 0.5889 GB, free: 105.2 MB / 430.1 MB Notification: Performance of SimCode: time 6.21e-07/0.8888, allocations: 0 / 0.5889 GB, free: 105.2 MB / 430.1 MB Notification: Performance of Templates: time 0.2846/1.173, allocations: 141.4 MB / 0.7269 GB, free: 116.5 MB / 430.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches