Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,fileNamePrefix="Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009877/0.0009877, allocations: 194.7 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.206/1.206, allocations: 226.5 MB / 244.7 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007078/0.0007078, allocations: 94.66 kB / 296.7 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001968/0.0001968, allocations: 8 kB / 356.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1743/0.1745, allocations: 51.29 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.02167/0.1962, allocations: 34.78 MB / 442.9 MB, free: 8.82 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01434/0.2106, allocations: 8.084 MB / 451 MB, free: 0.7266 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00388/0.2146, allocations: 159.6 kB / 451.2 MB, free: 0.5703 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003414/0.218, allocations: 1.761 MB / 452.9 MB, free: 14.8 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01147/0.2295, allocations: 5.378 MB / 458.3 MB, free: 9.395 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002037/0.2315, allocations: 0.546 MB / 458.8 MB, free: 8.848 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004729/0.2363, allocations: 4.048 MB / 462.9 MB, free: 4.793 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005315/0.2416, allocations: 3.926 MB / 466.8 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001711/0.2434, allocations: 1.113 MB / 467.9 MB, free: 15.67 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001991/0.2454, allocations: 1.655 MB / 469.6 MB, free: 14.01 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003903/0.2458, allocations: 120 kB / 469.7 MB, free: 13.89 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001687/0.2475, allocations: 1.01 MB / 470.7 MB, free: 12.88 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001342/0.2488, allocations: 1.469 MB / 472.2 MB, free: 11.41 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001501/0.2503, allocations: 1.668 MB / 473.8 MB, free: 9.727 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004547/0.2549, allocations: 4.771 MB / 478.6 MB, free: 4.945 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2549, allocations: 0 / 478.6 MB, free: 4.945 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2549, allocations: 0 / 478.6 MB, free: 4.945 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001428/0.2551, allocations: 4 kB / 478.6 MB, free: 4.941 MB / 346.7 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.00597/0.2611, allocations: 3.478 MB / 482.1 MB, free: 1.398 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.758e-05/0.2611, allocations: 12.03 kB / 482.1 MB, free: 1.387 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007813/0.2619, allocations: 0.633 MB / 482.7 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006283/0.2682, allocations: 1.946 MB / 484.7 MB, free: 14.79 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003874/0.2721, allocations: 2.228 MB / 486.9 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001397/0.2722, allocations: 209.4 kB / 487.1 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008594/0.2731, allocations: 367.7 kB / 487.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01286/0.286, allocations: 8.862 MB / 496.3 MB, free: 2.438 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.891e-05/0.2861, allocations: 31.73 kB / 496.4 MB, free: 2.406 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003125/0.2864, allocations: 143.9 kB / 496.5 MB, free: 2.266 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002211/0.2886, allocations: 1.633 MB / 498.1 MB, free: 0.6289 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01232/0.301, allocations: 7.486 MB / 0.4938 GB, free: 9.137 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2039/0.5049, allocations: 35.12 MB / 0.5281 GB, free: 63.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007181/0.5121, allocations: 3.443 MB / 0.5314 GB, free: 62.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001482/0.5136, allocations: 1.429 MB / 0.5328 GB, free: 61.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007448/0.5211, allocations: 6.779 MB / 0.5395 GB, free: 57.36 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.552e-05/0.5212, allocations: 54.53 kB / 0.5395 GB, free: 57.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=132): time 4.188e-06/0.5212, allocations: 0 / 0.5395 GB, free: 57.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=139): time 0.02174/0.5429, allocations: 11.1 MB / 0.5504 GB, free: 47.96 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008921/0.5439, allocations: 1.619 MB / 0.5519 GB, free: 46.17 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003398/0.5473, allocations: 3.522 MB / 0.5554 GB, free: 42.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002531/0.5475, allocations: 48.44 kB / 0.5554 GB, free: 42.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001117/0.5487, allocations: 2.785 MB / 0.5581 GB, free: 39.83 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004435/0.5491, allocations: 0.5708 MB / 0.5587 GB, free: 39.26 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001911/0.5493, allocations: 104.8 kB / 0.5588 GB, free: 39.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.5495, allocations: 0.5334 MB / 0.5593 GB, free: 38.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002016/0.5515, allocations: 1.896 MB / 0.5612 GB, free: 36.72 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002924/0.5545, allocations: 5.329 MB / 0.5664 GB, free: 29.71 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005732/0.5602, allocations: 7.805 MB / 0.574 GB, free: 20.42 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.491e-05/0.5603, allocations: 36 kB / 0.574 GB, free: 20.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.01605/0.5763, allocations: 8.457 MB / 0.5823 GB, free: 11.91 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.342e-05/0.5765, allocations: 65.06 kB / 0.5824 GB, free: 11.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008495/0.585, allocations: 3.186 MB / 0.5855 GB, free: 8.652 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008673/0.5937, allocations: 1.942 MB / 0.5874 GB, free: 6.695 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003387/0.5971, allocations: 1.251 MB / 0.5886 GB, free: 5.441 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006501/0.6036, allocations: 5.757 MB / 0.5942 GB, free: 15.42 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003867/0.6075, allocations: 378 kB / 0.5946 GB, free: 15.05 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007104/0.6082, allocations: 344 kB / 0.5949 GB, free: 14.71 MB / 394.7 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 (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.002802/0.6111, allocations: 1.854 MB / 0.5967 GB, free: 12.85 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005056/0.6116, allocations: 300.1 kB / 0.597 GB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005125/0.6167, allocations: 2.764 MB / 0.5997 GB, free: 9.766 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004198/0.6209, allocations: 2.359 MB / 0.602 GB, free: 7.383 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.706e-06/0.6209, allocations: 4 kB / 0.602 GB, free: 7.379 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.781e-05/0.621, allocations: 7.969 kB / 0.602 GB, free: 7.371 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01222/0.6332, allocations: 7.849 MB / 0.6097 GB, free: 15.44 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.6332, allocations: 0 / 0.6097 GB, free: 15.44 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009796/0.6342, allocations: 223.7 kB / 0.6099 GB, free: 15.22 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002957/0.6372, allocations: 1.057 MB / 0.6109 GB, free: 14.15 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001116/0.6373, allocations: 41.39 kB / 0.611 GB, free: 14.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004927/0.6422, allocations: 4.949 MB / 0.6158 GB, free: 8.895 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0008612/0.6431, allocations: 1.481 MB / 0.6172 GB, free: 7.273 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006964/0.6501, allocations: 4.947 MB / 0.6221 GB, free: 2.285 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006487/0.6508, allocations: 368.9 kB / 0.6224 GB, free: 1.902 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002784/0.6511, allocations: 31.98 kB / 0.6224 GB, free: 1.871 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001249/0.6523, allocations: 120.8 kB / 0.6226 GB, free: 1.754 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003402/0.6527, allocations: 91.52 kB / 0.6227 GB, free: 1.668 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/0.6528, allocations: 45.34 kB / 0.6227 GB, free: 1.625 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002722/0.6555, allocations: 2.168 MB / 0.6248 GB, free: 15.47 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.262e-06/0.6555, allocations: 0 / 0.6248 GB, free: 15.47 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00364/0.6592, allocations: 0.9536 MB / 0.6257 GB, free: 14.52 MB / 426.7 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.007276/0.6664, allocations: 5.605 MB / 0.6312 GB, free: 8.863 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008135/0.6746, allocations: 5.185 MB / 0.6363 GB, free: 3.633 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.26e-06/0.6746, allocations: 0 / 0.6363 GB, free: 3.633 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003479/0.6781, allocations: 2.012 MB / 0.6382 GB, free: 1.555 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002874/0.681, allocations: 377.2 kB / 0.6386 GB, free: 1.188 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1996/0.8806, allocations: 31.57 MB / 0.6694 GB, free: 160 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002574/0.8832, allocations: 2.913 MB / 0.6723 GB, free: 159.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001753/0.885, allocations: 1.646 MB / 0.6739 GB, free: 158.9 MB / 458.7 MB Notification: Performance of SimCode: time 7.42e-07/0.885, allocations: 3.938 kB / 0.6739 GB, free: 158.9 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.025/7.91, allocations: 129.7 MB / 0.8006 GB, free: 38.57 MB / 458.7 MB (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_FreeBody.fmu > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches