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.00126/0.00126, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00124/0.00124, allocations: 212.6 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.485/1.485, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 63.33 kB / 307.1 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08628/0.08754, allocations: 50.54 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.01067/0.09824, allocations: 10.42 MB / 368 MB, free: 3.543 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1896/0.2879, allocations: 3.848 MB / 371.9 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002596/0.2905, allocations: 62.25 kB / 371.9 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005321/0.2959, allocations: 2.294 MB / 374.2 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005041/0.301, allocations: 1.66 MB / 375.9 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001564/0.3026, allocations: 0.6063 MB / 376.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005513/0.3081, allocations: 3.48 MB / 380 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004382/0.3125, allocations: 3.026 MB / 383 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002736/0.3153, allocations: 1.359 MB / 384.3 MB, free: 7.488 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002753/0.318, allocations: 1.788 MB / 386.1 MB, free: 6.871 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009368/0.319, allocations: 291.2 kB / 386.4 MB, free: 6.871 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002646/0.3217, allocations: 1.122 MB / 387.5 MB, free: 6.648 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001773/0.3235, allocations: 1.662 MB / 389.2 MB, free: 5.691 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002158/0.3256, allocations: 1.947 MB / 391.1 MB, free: 4.223 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005766/0.3314, allocations: 5.985 MB / 397.1 MB, free: 260 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3314, allocations: 0 / 397.1 MB, free: 260 kB / 302.1 MB Notification: Performance of FrontEnd: time 2.073e-06/0.3314, allocations: 0 / 397.1 MB, free: 260 kB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001078/0.3316, allocations: 0 / 397.1 MB, free: 260 kB / 302.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.008746/0.3403, allocations: 4.209 MB / 401.3 MB, free: 13.1 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.007e-05/0.3404, allocations: 12.03 kB / 401.4 MB, free: 13.09 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008839/0.3413, allocations: 0.6346 MB / 402 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006757/0.348, allocations: 1.907 MB / 403.9 MB, free: 10.56 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004799/0.3528, allocations: 2.225 MB / 406.1 MB, free: 8.301 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001494/0.353, allocations: 216.4 kB / 406.3 MB, free: 8.117 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008381/0.3539, allocations: 379.8 kB / 406.7 MB, free: 7.785 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01638/0.3703, allocations: 8.896 MB / 415.6 MB, free: 14.35 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001179/0.3704, allocations: 39.67 kB / 415.6 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004859/0.3709, allocations: 134.8 kB / 415.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00252/0.3734, allocations: 1.636 MB / 417.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01623/0.3897, allocations: 7.533 MB / 424.9 MB, free: 5.047 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04991/0.4396, allocations: 35.14 MB / 460.1 MB, free: 1.043 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01077/0.4505, allocations: 3.474 MB / 463.6 MB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003131/0.4537, allocations: 1.44 MB / 465 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0142/0.4679, allocations: 6.854 MB / 471.8 MB, free: 4.832 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.602e-05/0.468, allocations: 55.03 kB / 471.9 MB, free: 4.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=132): time 6.092e-06/0.468, allocations: 0 / 471.9 MB, free: 4.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=139): time 0.03094/0.499, allocations: 11.16 MB / 483.1 MB, free: 9.441 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001507/0.5005, allocations: 1.71 MB / 484.8 MB, free: 7.555 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005404/0.506, allocations: 3.528 MB / 488.3 MB, free: 4.027 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005019/0.5065, allocations: 47.81 kB / 488.3 MB, free: 3.977 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002313/0.5088, allocations: 2.788 MB / 491.1 MB, free: 1.191 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00098/0.5098, allocations: 0.568 MB / 491.7 MB, free: 0.6289 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001563/0.5114, allocations: 1.101 MB / 492.8 MB, free: 15.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.5115, allocations: 301.1 kB / 493.1 MB, free: 15.22 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003208/0.5147, allocations: 1.931 MB / 495 MB, free: 13.29 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005358/0.5201, allocations: 5.365 MB / 0.4887 GB, free: 6.184 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008313/0.5284, allocations: 7.844 MB / 0.4963 GB, free: 12.63 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.373e-05/0.5285, allocations: 36 kB / 0.4964 GB, free: 12.59 MB / 430.1 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01941/0.548, allocations: 8.518 MB / 0.5047 GB, free: 4.062 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001518/0.5481, allocations: 60.47 kB / 0.5047 GB, free: 4.004 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01088/0.559, allocations: 3.211 MB / 0.5079 GB, free: 0.7773 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009816/0.5689, allocations: 1.946 MB / 0.5098 GB, free: 14.82 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004215/0.5732, allocations: 1.251 MB / 0.511 GB, free: 13.56 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008725/0.5819, allocations: 6.084 MB / 0.5169 GB, free: 7.191 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004518/0.5865, allocations: 383.3 kB / 0.5173 GB, free: 6.816 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001017/0.5875, allocations: 340 kB / 0.5176 GB, free: 6.484 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.004809/0.5923, allocations: 1.857 MB / 0.5194 GB, free: 4.617 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008203/0.5932, allocations: 304.1 kB / 0.5197 GB, free: 4.316 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001079/0.5943, allocations: 406.2 kB / 0.5201 GB, free: 3.914 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004897/0.5992, allocations: 2.379 MB / 0.5224 GB, free: 1.512 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.5992, allocations: 4 kB / 0.5224 GB, free: 1.508 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.34e-05/0.5992, allocations: 7.984 kB / 0.5225 GB, free: 1.5 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2058/0.805, allocations: 7.86 MB / 0.5301 GB, free: 139.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.575e-05/0.8051, allocations: 1.656 kB / 0.5301 GB, free: 139.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/0.8062, allocations: 232.1 kB / 0.5304 GB, free: 139.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003316/0.8095, allocations: 1.053 MB / 0.5314 GB, free: 139.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001634/0.8097, allocations: 40.72 kB / 0.5314 GB, free: 139.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005296/0.815, allocations: 5.276 MB / 0.5366 GB, free: 135.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008299/0.8159, allocations: 1.566 MB / 0.5381 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007839/0.8237, allocations: 4.989 MB / 0.543 GB, free: 132.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009027/0.8247, allocations: 359.5 kB / 0.5433 GB, free: 132.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003425/0.825, allocations: 34.66 kB / 0.5433 GB, free: 132.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001352/0.8264, allocations: 125.3 kB / 0.5435 GB, free: 132.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002613/0.8266, allocations: 84.56 kB / 0.5435 GB, free: 132.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/0.8268, allocations: 39.44 kB / 0.5436 GB, free: 132.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00322/0.83, allocations: 2.189 MB / 0.5457 GB, free: 131.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.83, allocations: 3.938 kB / 0.5457 GB, free: 131.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004126/0.8341, allocations: 0.9424 MB / 0.5466 GB, free: 131.3 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.007395/0.8415, allocations: 5.637 MB / 0.5522 GB, free: 128.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00918/0.8507, allocations: 5.678 MB / 0.5577 GB, free: 127 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.802e-06/0.8508, allocations: 0 / 0.5577 GB, free: 127 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00348/0.8543, allocations: 2.032 MB / 0.5597 GB, free: 126.1 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002467/0.8567, allocations: 396.6 kB / 0.5601 GB, free: 125.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06203/0.9188, allocations: 46.93 MB / 0.6059 GB, free: 73.24 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002496/0.9213, allocations: 2.909 MB / 0.6087 GB, free: 70.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003658/0.925, allocations: 1.687 MB / 0.6104 GB, free: 68.61 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001681/0.9267, allocations: 1.604 MB / 0.6119 GB, free: 67.01 MB / 446.1 MB Notification: Performance of SimCode: time 1.192e-06/0.9267, allocations: 0 / 0.6119 GB, free: 67.01 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08863/1.015, allocations: 66.09 MB / 0.6765 GB, free: 1.203 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.97/13.98, allocations: 17.36 kB / 0.6765 GB, free: 1.188 MB / 446.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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 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.csv","/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