Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.FreeBody,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.body.frame_a.r_0.1.|body.body.frame_a.r_0.2.|body.body.frame_a.r_0.3.|body.body.w_a.1.|body.body.w_a.2.|body.body.w_a.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.body.frame_a.r_0.1.|body.body.frame_a.r_0.2.|body.body.frame_a.r_0.3.|body.body.w_a.1.|body.body.w_a.2.|body.body.w_a.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009169/0.000917, allocations: 88.59 kB / 16.31 MB, free: 6.453 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.00107/0.00107, allocations: 183.1 kB / 17.21 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 223.3 MB / 241.2 MB, free: 5.453 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002613/0.0002613, allocations: 6.844 kB / 300.8 MB, free: 5.93 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09623/0.0965, allocations: 50.42 MB / 351.2 MB, free: 11.74 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.03394/0.1305, allocations: 34.77 MB / 386 MB, free: 8.863 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01876/0.1493, allocations: 8.034 MB / 394.1 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005126/0.1545, allocations: 167.6 kB / 394.2 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00393/0.1584, allocations: 1.761 MB / 396 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01153/0.17, allocations: 5.37 MB / 401.3 MB, free: 9.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001549/0.1715, allocations: 0.507 MB / 401.9 MB, free: 8.969 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004546/0.1761, allocations: 3.96 MB / 405.8 MB, free: 5 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004916/0.181, allocations: 3.716 MB / 409.5 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001567/0.1826, allocations: 1.121 MB / 410.6 MB, free: 92 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001997/0.1846, allocations: 1.655 MB / 412.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002532/0.1849, allocations: 120 kB / 412.4 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001622/0.1865, allocations: 0.8932 MB / 413.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001241/0.1878, allocations: 1.473 MB / 414.8 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006071/0.1884, allocations: 0.7337 MB / 415.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004108/0.1925, allocations: 4.762 MB / 420.3 MB, free: 6.426 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.1925, allocations: 0 / 420.3 MB, free: 6.426 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.1925, allocations: 0 / 420.3 MB, free: 6.426 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.289e-05/0.1926, allocations: 4 kB / 420.3 MB, free: 6.422 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: 1330 * Number of variables: 1330 Notification: Performance of Generate backend data structure: time 0.005693/0.1983, allocations: 3.519 MB / 423.8 MB, free: 2.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.1984, allocations: 12.03 kB / 423.8 MB, free: 2.828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005672/0.204, allocations: 1.882 MB / 425.7 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2286/0.4326, allocations: 1.972 MB / 427.7 MB, free: 17.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001458/0.4328, allocations: 208.4 kB / 427.9 MB, free: 17.51 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000713/0.4335, allocations: 374.6 kB / 428.2 MB, free: 17.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01296/0.4465, allocations: 8.852 MB / 437.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.667e-05/0.4466, allocations: 38.31 kB / 437.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003509/0.447, allocations: 136.5 kB / 437.3 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002169/0.4491, allocations: 1.645 MB / 438.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01215/0.4613, allocations: 7.472 MB / 446.4 MB, free: 15.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03313/0.4945, allocations: 35.13 MB / 481.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00717/0.5017, allocations: 3.447 MB / 485 MB, free: 7.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001671/0.5034, allocations: 1.448 MB / 486.4 MB, free: 6.637 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008356/0.5117, allocations: 6.794 MB / 493.2 MB, free: 1.184 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.871e-05/0.5118, allocations: 60.7 kB / 493.3 MB, free: 1.129 MB / 366.1 MB Notification: Performance of pre-optimization done (n=132): time 3.927e-06/0.5118, allocations: 0 / 493.3 MB, free: 1.129 MB / 366.1 MB Notification: Performance of matching and sorting (n=139): time 0.02351/0.5353, allocations: 11.1 MB / 0.4925 GB, free: 7.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001317/0.5367, allocations: 1.621 MB / 0.4941 GB, free: 5.742 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004819/0.5415, allocations: 3.512 MB / 0.4975 GB, free: 2.234 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002819/0.5418, allocations: 45.7 kB / 0.4976 GB, free: 2.184 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002118/0.5439, allocations: 2.786 MB / 0.5003 GB, free: 15.41 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000626/0.5446, allocations: 0.5701 MB / 0.5009 GB, free: 14.85 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002154/0.5448, allocations: 108.1 kB / 0.501 GB, free: 14.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003284/0.5451, allocations: 0.5374 MB / 0.5015 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00268/0.5478, allocations: 1.9 MB / 0.5033 GB, free: 12.3 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004682/0.5525, allocations: 5.34 MB / 0.5086 GB, free: 5.281 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003988/0.5565, allocations: 3.118 MB / 0.5116 GB, free: 2.273 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.261e-05/0.5566, allocations: 32 kB / 0.5116 GB, free: 2.242 MB / 398.1 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01749/0.5741, allocations: 8.72 MB / 0.5202 GB, free: 10.25 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.91e-05/0.5742, allocations: 56 kB / 0.5202 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009296/0.5835, allocations: 3.423 MB / 0.5236 GB, free: 6.766 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009181/0.5927, allocations: 2.261 MB / 0.5258 GB, free: 4.492 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004015/0.5967, allocations: 1.244 MB / 0.527 GB, free: 3.359 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008996/0.6057, allocations: 6.803 MB / 0.5336 GB, free: 12.35 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004448/0.6102, allocations: 382.2 kB / 0.534 GB, free: 11.98 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009886/0.6112, allocations: 348 kB / 0.5343 GB, free: 11.64 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 557 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[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 (676): * Single equations (assignments): 667 * 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: 1 * 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: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0036/0.6149, allocations: 1.848 MB / 0.5361 GB, free: 9.895 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006689/0.6155, allocations: 302.5 kB / 0.5364 GB, free: 9.598 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005372/0.6209, allocations: 2.763 MB / 0.5391 GB, free: 6.828 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004255/0.6252, allocations: 2.361 MB / 0.5414 GB, free: 4.461 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.37e-05/0.6252, allocations: 4 kB / 0.5414 GB, free: 4.457 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.848e-05/0.6252, allocations: 7.969 kB / 0.5414 GB, free: 4.449 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01417/0.6394, allocations: 7.829 MB / 0.5491 GB, free: 12.55 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/0.6395, allocations: 0 / 0.5491 GB, free: 12.55 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001027/0.6405, allocations: 228.3 kB / 0.5493 GB, free: 12.34 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002872/0.6434, allocations: 1.053 MB / 0.5503 GB, free: 11.27 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001611/0.6436, allocations: 35.97 kB / 0.5503 GB, free: 11.24 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00543/0.649, allocations: 4.964 MB / 0.5552 GB, free: 6.027 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001011/0.65, allocations: 1.484 MB / 0.5566 GB, free: 4.414 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007595/0.6576, allocations: 4.957 MB / 0.5615 GB, free: 15.43 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008775/0.6585, allocations: 365 kB / 0.5618 GB, free: 15.05 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005851/0.6591, allocations: 39.97 kB / 0.5619 GB, free: 15.01 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001538/0.6607, allocations: 129.8 kB / 0.562 GB, free: 14.89 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002219/0.6609, allocations: 76.53 kB / 0.5621 GB, free: 14.81 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001201/0.661, allocations: 43.97 kB / 0.5621 GB, free: 14.77 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003963/0.665, allocations: 2.171 MB / 0.5642 GB, free: 12.61 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.665, allocations: 0 / 0.5642 GB, free: 12.61 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005212/0.6703, allocations: 0.9716 MB / 0.5652 GB, free: 11.64 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.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 (105): * Single equations (assignments): 98 * 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: 1 * 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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005216/0.6708, allocations: 182.3 kB / 0.5654 GB, free: 11.47 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009331/0.6801, allocations: 5.177 MB / 0.5704 GB, free: 6.578 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/0.6802, allocations: 0 / 0.5704 GB, free: 6.578 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003649/0.6838, allocations: 1.998 MB / 0.5724 GB, free: 4.523 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0029/0.6867, allocations: 385.1 kB / 0.5727 GB, free: 4.152 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01607/0.7028, allocations: 9.962 MB / 0.5825 GB, free: 10.14 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004056/0.7069, allocations: 2.905 MB / 0.5853 GB, free: 7.199 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004619/0.7116, allocations: 1.708 MB / 0.587 GB, free: 5.488 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007903/0.7124, allocations: 215.4 kB / 0.5872 GB, free: 5.277 MB / 478.1 MB Notification: Performance of SimCode: time 1.532e-06/0.7124, allocations: 0 / 0.5872 GB, free: 5.277 MB / 478.1 MB Notification: Performance of Templates: time 0.319/1.031, allocations: 33.7 MB / 0.6201 GB, free: 164.1 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/FreeBody/FreeBody.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches