Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00153/0.00153, allocations: 197.4 kB / 16.1 MB, free: 5.699 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 226.5 MB / 243.4 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00078/0.00078, allocations: 92.03 kB / 295.5 MB, free: 6.895 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2932/0.2932, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002729/0.000273, allocations: 8 kB / 465.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2838/0.2841, allocations: 62.96 MB / 0.516 GB, free: 37.09 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotion): time 0.01663/0.3008, allocations: 26.42 MB / 0.5418 GB, free: 18.24 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.01185/0.3127, allocations: 6.463 MB / 0.5481 GB, free: 13.9 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004512/0.3173, allocations: 118.8 kB / 0.5482 GB, free: 13.88 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003347/0.3206, allocations: 1.273 MB / 0.5494 GB, free: 13.44 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01018/0.3308, allocations: 4.023 MB / 0.5534 GB, free: 11.81 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001846/0.3327, allocations: 454.6 kB / 0.5538 GB, free: 11.66 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.006063/0.3388, allocations: 4.439 MB / 0.5581 GB, free: 10.22 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003803/0.3426, allocations: 2.229 MB / 0.5603 GB, free: 9.035 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00241/0.345, allocations: 1.031 MB / 0.5613 GB, free: 8.52 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002877/0.3479, allocations: 1.669 MB / 0.5629 GB, free: 7.699 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009521/0.3489, allocations: 125.6 kB / 0.5631 GB, free: 7.699 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002847/0.3518, allocations: 1.039 MB / 0.5641 GB, free: 7.219 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002058/0.3538, allocations: 1.519 MB / 0.5656 GB, free: 6.418 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0015/0.3553, allocations: 1.713 MB / 0.5672 GB, free: 4.762 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003737/0.3591, allocations: 4.737 MB / 0.5719 GB, free: 16 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.3591, allocations: 0 / 0.5719 GB, free: 16 kB / 378.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3591, allocations: 0 / 0.5719 GB, free: 16 kB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001042/0.3592, allocations: 4 kB / 0.5719 GB, free: 12 kB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1512 * Number of variables: 1512 Notification: Performance of Generate backend data structure: time 0.005978/0.3652, allocations: 3.476 MB / 0.5753 GB, free: 12.47 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.3653, allocations: 16.03 kB / 0.5753 GB, free: 12.45 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009165/0.3662, allocations: 0.6962 MB / 0.5759 GB, free: 11.75 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0108/0.377, allocations: 3.314 MB / 0.5792 GB, free: 8.422 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004724/0.3818, allocations: 2.478 MB / 0.5816 GB, free: 5.898 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001436/0.382, allocations: 192.6 kB / 0.5818 GB, free: 5.707 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009452/0.3829, allocations: 331.4 kB / 0.5821 GB, free: 5.383 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0145/0.3974, allocations: 10.47 MB / 0.5923 GB, free: 10.46 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.641e-05/0.3976, allocations: 31.72 kB / 0.5924 GB, free: 10.43 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003552/0.3979, allocations: 111.8 kB / 0.5925 GB, free: 10.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003744/0.4017, allocations: 2.502 MB / 0.5949 GB, free: 7.82 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01719/0.4189, allocations: 9.975 MB / 0.6046 GB, free: 13.83 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04631/0.4652, allocations: 35 MB / 0.6388 GB, free: 9.961 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007189/0.4724, allocations: 4.298 MB / 0.643 GB, free: 5.438 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002636/0.4751, allocations: 2.156 MB / 0.6451 GB, free: 3.285 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001059/0.4762, allocations: 1.315 MB / 0.6464 GB, free: 1.746 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.396e-05/0.4762, allocations: 56.56 kB / 0.6465 GB, free: 1.684 MB / 458.7 MB Notification: Performance of pre-optimization done (n=236): time 4.949e-06/0.4762, allocations: 0 / 0.6465 GB, free: 1.684 MB / 458.7 MB Notification: Performance of matching and sorting (n=252): time 0.03573/0.512, allocations: 16.73 MB / 0.6628 GB, free: 0.8398 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001139/0.5131, allocations: 1.543 MB / 0.6643 GB, free: 15.14 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003541/0.5167, allocations: 2.706 MB / 0.667 GB, free: 12.42 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002264/0.5169, allocations: 57.7 kB / 0.667 GB, free: 12.36 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001562/0.5185, allocations: 2.667 MB / 0.6696 GB, free: 9.648 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008209/0.5194, allocations: 0.9212 MB / 0.6705 GB, free: 8.715 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002905/0.5197, allocations: 112 kB / 0.6706 GB, free: 8.605 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003441/0.52, allocations: 0.5454 MB / 0.6712 GB, free: 8.051 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003222/0.5232, allocations: 2.38 MB / 0.6735 GB, free: 5.664 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2148/0.738, allocations: 5.328 MB / 0.6787 GB, free: 124.1 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008616/0.7467, allocations: 8.417 MB / 0.6869 GB, free: 118.6 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.161e-05/0.7468, allocations: 27.91 kB / 0.6869 GB, free: 118.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.01865/0.7655, allocations: 9.341 MB / 0.696 GB, free: 115.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.986e-05/0.7656, allocations: 54.22 kB / 0.6961 GB, free: 115.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01196/0.7776, allocations: 4.551 MB / 0.7005 GB, free: 114.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01079/0.7884, allocations: 2.098 MB / 0.7026 GB, free: 114.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004158/0.7926, allocations: 1.251 MB / 0.7038 GB, free: 114.4 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006692/0.7993, allocations: 4.971 MB / 0.7087 GB, free: 111.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003869/0.8032, allocations: 389.1 kB / 0.709 GB, free: 111.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005983/0.8038, allocations: 324.8 kB / 0.7094 GB, free: 111.1 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 468 * Number of states: 0 () * Number of discrete variables: 26 (freeMotion.arrow.arrowLine.twoHeadedArrow,freeMotion.arrow.headAtOrigin,frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (670): * Single equations (assignments): 658 * Array equations: 8 * 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.003145/0.807, allocations: 2.058 MB / 0.7114 GB, free: 110.3 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003903/0.8074, allocations: 271.9 kB / 0.7116 GB, free: 110.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009005/0.8164, allocations: 5.315 MB / 0.7168 GB, free: 108.6 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007203/0.8236, allocations: 4.589 MB / 0.7213 GB, free: 107.3 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.8237, allocations: 0 / 0.7213 GB, free: 107.3 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-05/0.8237, allocations: 12.09 kB / 0.7213 GB, free: 107.3 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01928/0.843, allocations: 14.42 MB / 0.7354 GB, free: 96.88 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.636e-05/0.843, allocations: 12 kB / 0.7354 GB, free: 96.87 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001578/0.8446, allocations: 404.5 kB / 0.7358 GB, free: 96.47 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004057/0.8487, allocations: 1.236 MB / 0.737 GB, free: 95.22 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000319/0.849, allocations: 63.95 kB / 0.737 GB, free: 95.16 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003706/0.8527, allocations: 4.447 MB / 0.7414 GB, free: 90.48 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006994/0.8534, allocations: 1.472 MB / 0.7428 GB, free: 88.88 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01019/0.8636, allocations: 7.98 MB / 0.7506 GB, free: 80.84 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000754/0.8644, allocations: 333.5 kB / 0.7509 GB, free: 80.49 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003365/0.8648, allocations: 47.98 kB / 0.751 GB, free: 80.44 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001362/0.8662, allocations: 207.2 kB / 0.7512 GB, free: 80.24 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004798/0.8666, allocations: 164.2 kB / 0.7513 GB, free: 80.09 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000147/0.8668, allocations: 71.98 kB / 0.7514 GB, free: 80.02 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001848/0.8687, allocations: 1.648 MB / 0.753 GB, free: 78.36 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.8687, allocations: 0 / 0.753 GB, free: 78.36 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004055/0.8727, allocations: 1.035 MB / 0.754 GB, free: 77.33 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[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 (192): * Single equations (assignments): 182 * Array equations: 6 * 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.01034/0.8831, allocations: 8.522 MB / 0.7624 GB, free: 68.64 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009368/0.8925, allocations: 6.332 MB / 0.7685 GB, free: 62.26 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.024e-05/0.8925, allocations: 0 / 0.7685 GB, free: 62.26 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003802/0.8963, allocations: 2.841 MB / 0.7713 GB, free: 59.36 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004949/0.9013, allocations: 396.5 kB / 0.7717 GB, free: 58.98 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04667/0.948, allocations: 33.06 MB / 0.804 GB, free: 23.2 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002587/0.9506, allocations: 3.235 MB / 0.8071 GB, free: 19.93 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002048/0.9527, allocations: 1.78 MB / 0.8089 GB, free: 18.15 MB / 490.7 MB Notification: Performance of SimCode: time 1.022e-06/0.9527, allocations: 4.984 kB / 0.8089 GB, free: 18.14 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.585/8.538, allocations: 141.5 MB / 0.947 GB, free: 122.7 MB / 0.5261 GB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_FreeMotion_fmu --startTime=0 --stopTime=1.1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_MultiBody_Joints_FreeMotion.fmu > ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Joints/FreeMotion/FreeMotion.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.MultiBody.Joints.FreeMotion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches