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.0008711/0.0008711, allocations: 96.67 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009776/0.0009777, allocations: 201.6 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.214/1.214, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002002/0.0002004, allocations: 4 kB / 307.8 MB, free: 0.7383 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07489/0.07511, allocations: 51.51 MB / 359.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.1645/0.2397, allocations: 37.09 MB / 396.4 MB, free: 15.24 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01742/0.2571, allocations: 8.386 MB / 404.8 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00504/0.2622, allocations: 164.7 kB / 405 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008343/0.2631, allocations: 385.2 kB / 405.4 MB, free: 9.473 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00327/0.2663, allocations: 1.562 MB / 406.9 MB, free: 8.625 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001137/0.2675, allocations: 0.5538 MB / 407.5 MB, free: 8.246 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004473/0.272, allocations: 5.001 MB / 412.5 MB, free: 5.676 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004832/0.2768, allocations: 4.083 MB / 416.6 MB, free: 1.742 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001395/0.2782, allocations: 1.008 MB / 417.6 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001763/0.28, allocations: 1.678 MB / 419.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002263/0.2802, allocations: 120 kB / 419.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001586/0.2818, allocations: 1.006 MB / 420.4 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001078/0.2829, allocations: 1.484 MB / 421.9 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001249/0.2842, allocations: 1.756 MB / 423.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004601/0.2888, allocations: 5.759 MB / 429.4 MB, free: 4.879 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.2888, allocations: 0 / 429.4 MB, free: 4.879 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.2888, allocations: 11.94 kB / 429.4 MB, free: 4.867 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.998e-05/0.2889, allocations: 3.938 kB / 429.4 MB, free: 4.863 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.005354/0.2943, allocations: 3.444 MB / 432.8 MB, free: 1.355 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.2943, allocations: 8.031 kB / 432.8 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006784/0.295, allocations: 0.6408 MB / 433.5 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006236/0.3012, allocations: 1.942 MB / 435.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003364/0.3046, allocations: 2.228 MB / 437.7 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001355/0.3048, allocations: 217.4 kB / 437.9 MB, free: 12.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007198/0.3055, allocations: 367.7 kB / 438.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0123/0.3178, allocations: 8.912 MB / 447.1 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-05/0.3179, allocations: 43.59 kB / 447.2 MB, free: 2.293 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003263/0.3183, allocations: 135.9 kB / 447.3 MB, free: 2.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002526/0.3208, allocations: 1.637 MB / 449 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02114/0.3419, allocations: 7.554 MB / 456.5 MB, free: 8.961 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05043/0.3924, allocations: 35.12 MB / 491.6 MB, free: 4.789 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008279/0.4007, allocations: 3.475 MB / 495.1 MB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001757/0.4025, allocations: 1.451 MB / 496.6 MB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008476/0.411, allocations: 6.863 MB / 0.4916 GB, free: 8.516 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.039e-05/0.4111, allocations: 51.16 kB / 0.4917 GB, free: 8.457 MB / 414.1 MB Notification: Performance of pre-optimization done (n=132): time 4.298e-06/0.4111, allocations: 0 / 0.4917 GB, free: 8.457 MB / 414.1 MB Notification: Performance of matching and sorting (n=139): time 0.02543/0.4365, allocations: 11.21 MB / 0.5026 GB, free: 13.07 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001226/0.4378, allocations: 1.62 MB / 0.5042 GB, free: 11.28 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004755/0.4426, allocations: 3.528 MB / 0.5076 GB, free: 7.75 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001691/0.4428, allocations: 49.69 kB / 0.5077 GB, free: 7.695 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001755/0.4445, allocations: 2.778 MB / 0.5104 GB, free: 4.879 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006222/0.4451, allocations: 0.5711 MB / 0.511 GB, free: 4.301 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005974/0.4458, allocations: 477.9 kB / 0.5114 GB, free: 3.828 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.126e-05/0.4458, allocations: 305.1 kB / 0.5117 GB, free: 3.527 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002623/0.4485, allocations: 1.927 MB / 0.5136 GB, free: 1.594 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004395/0.4529, allocations: 5.373 MB / 0.5188 GB, free: 10.48 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007442/0.4603, allocations: 7.842 MB / 0.5265 GB, free: 0.9297 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.001e-05/0.4604, allocations: 32 kB / 0.5265 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.1633/0.6237, allocations: 8.527 MB / 0.5349 GB, free: 141.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001213/0.6239, allocations: 57.38 kB / 0.5349 GB, free: 141.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009891/0.6338, allocations: 3.226 MB / 0.5381 GB, free: 140.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009041/0.6429, allocations: 1.948 MB / 0.54 GB, free: 140.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003455/0.6463, allocations: 1.256 MB / 0.5412 GB, free: 140.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006473/0.6528, allocations: 5.703 MB / 0.5468 GB, free: 136.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003387/0.6562, allocations: 385.4 kB / 0.5471 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000457/0.6567, allocations: 339.4 kB / 0.5474 GB, free: 136.5 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.002184/0.6589, allocations: 1.867 MB / 0.5493 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003904/0.6593, allocations: 304.1 kB / 0.5496 GB, free: 135.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007113/0.66, allocations: 408.2 kB / 0.55 GB, free: 135.4 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003808/0.6638, allocations: 2.385 MB / 0.5523 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.176e-06/0.6638, allocations: 3.875 kB / 0.5523 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.6638, allocations: 6.656 kB / 0.5523 GB, free: 134.6 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01015/0.674, allocations: 7.859 MB / 0.56 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.695e-06/0.674, allocations: 4 kB / 0.56 GB, free: 129.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009156/0.675, allocations: 227.6 kB / 0.5602 GB, free: 129.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002636/0.6776, allocations: 1.057 MB / 0.5612 GB, free: 128.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.737e-05/0.6777, allocations: 37.77 kB / 0.5613 GB, free: 128.5 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003945/0.6817, allocations: 4.965 MB / 0.5661 GB, free: 123.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006432/0.6823, allocations: 1.484 MB / 0.5676 GB, free: 121.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006153/0.6885, allocations: 5.004 MB / 0.5724 GB, free: 116.8 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006274/0.6891, allocations: 369 kB / 0.5728 GB, free: 116.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004511/0.6896, allocations: 28 kB / 0.5728 GB, free: 116.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001396/0.691, allocations: 139.7 kB / 0.5729 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002245/0.6912, allocations: 84.45 kB / 0.573 GB, free: 116.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.487e-05/0.6913, allocations: 41.78 kB / 0.5731 GB, free: 116.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002805/0.6942, allocations: 2.183 MB / 0.5752 GB, free: 114 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6942, allocations: 4 kB / 0.5752 GB, free: 114 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003911/0.6981, allocations: 0.9362 MB / 0.5761 GB, free: 113.1 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.006797/0.7049, allocations: 5.644 MB / 0.5816 GB, free: 107.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007167/0.7121, allocations: 5.192 MB / 0.5867 GB, free: 102.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/0.7121, allocations: 0 / 0.5867 GB, free: 102.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003136/0.7153, allocations: 2.028 MB / 0.5887 GB, free: 100 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002743/0.718, allocations: 365.4 kB / 0.589 GB, free: 99.68 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05993/0.778, allocations: 48.7 MB / 0.6366 GB, free: 44.14 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002756/0.7808, allocations: 2.901 MB / 0.6394 GB, free: 41.21 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003481/0.7843, allocations: 1.691 MB / 0.6411 GB, free: 39.51 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001633/0.7859, allocations: 1.608 MB / 0.6426 GB, free: 37.9 MB / 446.1 MB Notification: Performance of SimCode: time 6.71e-07/0.7859, allocations: 0 / 0.6426 GB, free: 37.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2266/1.013, allocations: 64.14 MB / 0.7053 GB, free: 148.5 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001402/1.013, allocations: 239.3 kB / 0.7055 GB, free: 148.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.936/3.949, allocations: 1.219 kB / 0.7055 GB, free: 148.3 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