Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001019/0.001019, allocations: 103.3 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001027/0.001027, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 227.4 MB / 246.3 MB, free: 10.76 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 63.67 kB / 306.4 MB, free: 0.9648 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0863/0.08745, allocations: 50.53 MB / 356.9 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.19/0.2775, allocations: 38.17 MB / 395.1 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01893/0.2965, allocations: 8.444 MB / 403.5 MB, free: 9 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00715/0.3037, allocations: 166 kB / 403.7 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004392/0.3082, allocations: 2.289 MB / 406 MB, free: 7.812 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004099/0.3123, allocations: 1.548 MB / 407.5 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001387/0.3137, allocations: 0.5659 MB / 408.1 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005138/0.3188, allocations: 5.001 MB / 413.1 MB, free: 3.496 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003495/0.3224, allocations: 2.995 MB / 416.1 MB, free: 484 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001605/0.324, allocations: 1.199 MB / 417.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002074/0.3261, allocations: 1.916 MB / 419.2 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004113/0.3265, allocations: 204 kB / 419.4 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001808/0.3283, allocations: 1.088 MB / 420.5 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001274/0.3296, allocations: 1.605 MB / 422.1 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001565/0.3312, allocations: 1.879 MB / 424 MB, free: 8.559 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004884/0.3361, allocations: 5.927 MB / 429.9 MB, free: 2.613 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3361, allocations: 0 / 429.9 MB, free: 2.613 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.3361, allocations: 4 kB / 429.9 MB, free: 2.609 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.98e-05/0.3362, allocations: 0 / 429.9 MB, free: 2.609 MB / 334.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.006749/0.343, allocations: 4.207 MB / 434.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.343, allocations: 8.031 kB / 434.1 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007224/0.3437, allocations: 0.6369 MB / 434.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006127/0.3499, allocations: 1.903 MB / 436.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003667/0.3536, allocations: 2.236 MB / 438.9 MB, free: 9.473 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001305/0.3537, allocations: 213.4 kB / 439.1 MB, free: 9.262 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007268/0.3544, allocations: 359.8 kB / 439.4 MB, free: 8.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01281/0.3673, allocations: 8.901 MB / 448.3 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.427e-05/0.3674, allocations: 31.75 kB / 448.4 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003355/0.3677, allocations: 135.9 kB / 448.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002212/0.3699, allocations: 1.645 MB / 450.1 MB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01277/0.3827, allocations: 7.521 MB / 457.7 MB, free: 6.031 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03739/0.4201, allocations: 35.14 MB / 492.8 MB, free: 1.852 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0081/0.4283, allocations: 3.483 MB / 496.3 MB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001806/0.4301, allocations: 1.452 MB / 497.7 MB, free: 12.77 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008881/0.439, allocations: 6.848 MB / 0.4928 GB, free: 5.578 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.728e-05/0.4391, allocations: 55.03 kB / 0.4928 GB, free: 5.516 MB / 414.1 MB Notification: Performance of pre-optimization done (n=132): time 3.446e-06/0.4391, allocations: 0 / 0.4928 GB, free: 5.516 MB / 414.1 MB Notification: Performance of matching and sorting (n=139): time 0.02516/0.4642, allocations: 11.16 MB / 0.5037 GB, free: 10.18 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001185/0.4654, allocations: 1.624 MB / 0.5053 GB, free: 8.387 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00471/0.4702, allocations: 3.528 MB / 0.5087 GB, free: 4.859 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002562/0.4704, allocations: 53.69 kB / 0.5088 GB, free: 4.801 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001948/0.4724, allocations: 2.786 MB / 0.5115 GB, free: 1.977 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005074/0.4729, allocations: 0.5633 MB / 0.5121 GB, free: 1.406 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00127/0.4742, allocations: 1.099 MB / 0.5131 GB, free: 304 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001009/0.4743, allocations: 305.3 kB / 0.5134 GB, free: 15.99 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002578/0.4769, allocations: 1.927 MB / 0.5153 GB, free: 14.06 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004604/0.4815, allocations: 5.365 MB / 0.5205 GB, free: 6.957 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1727/0.6542, allocations: 7.838 MB / 0.5282 GB, free: 139.3 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.981e-05/0.6544, allocations: 35.47 kB / 0.5282 GB, free: 139.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01857/0.673, allocations: 8.52 MB / 0.5366 GB, free: 137.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.376e-05/0.6731, allocations: 57.45 kB / 0.5366 GB, free: 137.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009448/0.6825, allocations: 3.221 MB / 0.5398 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009036/0.6916, allocations: 1.946 MB / 0.5417 GB, free: 136.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004286/0.6959, allocations: 1.249 MB / 0.5429 GB, free: 136.1 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007122/0.7031, allocations: 5.711 MB / 0.5485 GB, free: 132.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004615/0.7077, allocations: 384.9 kB / 0.5488 GB, free: 132.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005771/0.7083, allocations: 344.7 kB / 0.5491 GB, free: 132.4 MB / 446.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 (672): * Single equations (assignments): 663 * 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.002705/0.711, allocations: 1.849 MB / 0.551 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004604/0.7115, allocations: 301.1 kB / 0.5512 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006495/0.7121, allocations: 414.5 kB / 0.5516 GB, free: 131.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004032/0.7162, allocations: 2.371 MB / 0.554 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.026e-05/0.7162, allocations: 2.875 kB / 0.554 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.7162, allocations: 3.422 kB / 0.554 GB, free: 130.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01114/0.7273, allocations: 7.867 MB / 0.5616 GB, free: 126.2 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.146e-06/0.7274, allocations: 0 / 0.5616 GB, free: 126.2 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009239/0.7283, allocations: 232.2 kB / 0.5619 GB, free: 126.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002647/0.731, allocations: 1.055 MB / 0.5629 GB, free: 125.5 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000106/0.7311, allocations: 31.98 kB / 0.5629 GB, free: 125.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004027/0.7351, allocations: 4.947 MB / 0.5678 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006254/0.7358, allocations: 1.482 MB / 0.5692 GB, free: 118.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005875/0.7416, allocations: 5.002 MB / 0.5741 GB, free: 113.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000547/0.7422, allocations: 357.1 kB / 0.5744 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000292/0.7425, allocations: 27.98 kB / 0.5745 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.7436, allocations: 131.8 kB / 0.5746 GB, free: 113.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002277/0.7439, allocations: 84.47 kB / 0.5747 GB, free: 113.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.785e-05/0.744, allocations: 43.97 kB / 0.5747 GB, free: 113.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002242/0.7462, allocations: 2.179 MB / 0.5768 GB, free: 110.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7462, allocations: 2.156 kB / 0.5768 GB, free: 110.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003342/0.7496, allocations: 0.944 MB / 0.5778 GB, free: 110 MB / 446.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 (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.005936/0.7555, allocations: 5.641 MB / 0.5833 GB, free: 104.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006664/0.7622, allocations: 5.18 MB / 0.5883 GB, free: 99.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.7622, allocations: 0 / 0.5883 GB, free: 99.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002772/0.765, allocations: 2.029 MB / 0.5903 GB, free: 97.01 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001919/0.7669, allocations: 378.7 kB / 0.5907 GB, free: 96.64 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05566/0.8226, allocations: 48.5 MB / 0.638 GB, free: 41.3 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002075/0.8247, allocations: 2.897 MB / 0.6409 GB, free: 38.37 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003246/0.828, allocations: 1.695 MB / 0.6425 GB, free: 36.67 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001396/0.8294, allocations: 1.604 MB / 0.6441 GB, free: 35.06 MB / 446.1 MB Notification: Performance of SimCode: time 6.21e-07/0.8294, allocations: 0 / 0.6441 GB, free: 35.06 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2361/1.066, allocations: 64.81 MB / 0.7074 GB, free: 150.7 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001372/1.066, allocations: 240.2 kB / 0.7076 GB, free: 150.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.126/4.191, allocations: 0 / 0.7076 GB, free: 150.5 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/FreeBody/FreeBody.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches