Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotion.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotion,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Joints_FreeMotion",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.01083/0.01083, allocations: 164.7 kB / 15.11 MB, free: 5.934 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.739/1.739, allocations: 170.8 MB / 186.6 MB, free: 1.121 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.002052/0.002052, allocations: 107 kB / 226.2 MB, free: 10.1 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.5733/0.5733, allocations: 38.05 MB / 303.7 MB, free: 42.36 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004695/0.0004695, allocations: 12 kB / 363 MB, free: 5.504 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1115/0.112, allocations: 48.71 MB / 411.7 MB, free: 4.711 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5021/0.6142, allocations: 89.3 MB / 0.4892 GB, free: 14.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/0.6145, allocations: 70.59 kB / 0.4893 GB, free: 14.64 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3724/0.9869, allocations: 86.36 MB / 0.5737 GB, free: 12.79 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.987, allocations: 8 kB / 0.5737 GB, free: 12.78 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002107/0.9872, allocations: 68 kB / 0.5737 GB, free: 12.71 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1557 * Number of variables: 1557 Notification: Performance of Generate backend data structure: time 0.01625/1.003, allocations: 3.864 MB / 0.5775 GB, free: 8.781 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.696e-05/1.004, allocations: 12.03 kB / 0.5775 GB, free: 8.77 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004502/1.008, allocations: 0.7791 MB / 0.5783 GB, free: 7.98 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02956/1.038, allocations: 3.64 MB / 0.5818 GB, free: 4.332 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3239/1.362, allocations: 4.93 MB / 0.5866 GB, free: 83.25 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005246/1.362, allocations: 292.2 kB / 0.5869 GB, free: 83.24 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003052/1.365, allocations: 387.2 kB / 0.5873 GB, free: 83.24 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03416/1.4, allocations: 10.34 MB / 0.5974 GB, free: 81.86 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002965/1.4, allocations: 30.09 kB / 0.5974 GB, free: 81.86 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00261/1.403, allocations: 174.7 kB / 0.5976 GB, free: 81.86 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002909/1.405, allocations: 1.191 MB / 0.5987 GB, free: 81.85 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02917/1.435, allocations: 10.15 MB / 0.6087 GB, free: 81.81 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07875/1.513, allocations: 36.47 MB / 0.6443 GB, free: 62.73 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01238/1.526, allocations: 4.398 MB / 0.6486 GB, free: 60.57 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001622/1.528, allocations: 1.322 MB / 0.6499 GB, free: 59.39 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.14e-05/1.528, allocations: 57.95 kB / 0.6499 GB, free: 59.34 MB / 426.7 MB Notification: Performance of pre-optimization done (n=245): time 8.046e-06/1.528, allocations: 0 / 0.6499 GB, free: 59.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=261): time 0.06892/1.597, allocations: 17.29 MB / 0.6668 GB, free: 53.32 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001411/1.598, allocations: 1.546 MB / 0.6683 GB, free: 51.83 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005503/1.604, allocations: 2.459 MB / 0.6707 GB, free: 50.96 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006112/1.604, allocations: 59.77 kB / 0.6708 GB, free: 50.91 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002233/1.607, allocations: 2.729 MB / 0.6734 GB, free: 48.91 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001495/1.608, allocations: 0.9571 MB / 0.6744 GB, free: 48.21 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007831/1.609, allocations: 110.2 kB / 0.6745 GB, free: 48.12 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.00047/1.609, allocations: 0.5542 MB / 0.675 GB, free: 47.71 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006131/1.616, allocations: 2.417 MB / 0.6774 GB, free: 46.96 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008201/1.624, allocations: 5.424 MB / 0.6827 GB, free: 42.18 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008592/1.632, allocations: 3.622 MB / 0.6862 GB, free: 40.92 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001382/1.633, allocations: 30.97 kB / 0.6862 GB, free: 40.92 MB / 426.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.03039/1.663, allocations: 8.785 MB / 0.6948 GB, free: 37.04 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.386e-05/1.663, allocations: 49.41 kB / 0.6949 GB, free: 36.99 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01408/1.677, allocations: 3.908 MB / 0.6987 GB, free: 33.81 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008013/1.685, allocations: 1.261 MB / 0.6999 GB, free: 32.97 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008092/1.694, allocations: 1.28 MB / 0.7012 GB, free: 31.87 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006099/1.7, allocations: 4.171 MB / 0.7052 GB, free: 27.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006422/1.706, allocations: 393 kB / 0.7056 GB, free: 27.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001365/1.708, allocations: 325.2 kB / 0.7059 GB, free: 27.26 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 479 * Number of states: 0 () * Number of discrete variables: 21 (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.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 (688): * Single equations (assignments): 676 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * 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: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.005558/1.713, allocations: 2.105 MB / 0.708 GB, free: 25.44 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007265/1.714, allocations: 282.6 kB / 0.7082 GB, free: 25.16 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01847/1.732, allocations: 5.389 MB / 0.7135 GB, free: 20.79 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0162/1.749, allocations: 4.634 MB / 0.718 GB, free: 16.96 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.998e-05/1.749, allocations: 4 kB / 0.718 GB, free: 16.96 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.57e-05/1.749, allocations: 11.62 kB / 0.718 GB, free: 16.96 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04086/1.79, allocations: 14.64 MB / 0.7323 GB, free: 4.898 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.785e-05/1.79, allocations: 12.61 kB / 0.7324 GB, free: 4.887 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003668/1.793, allocations: 429.6 kB / 0.7328 GB, free: 4.551 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007852/1.801, allocations: 1.19 MB / 0.7339 GB, free: 3.801 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006512/1.802, allocations: 59.97 kB / 0.734 GB, free: 3.742 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007176/1.809, allocations: 4.544 MB / 0.7384 GB, free: 14.94 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001557/1.811, allocations: 1.475 MB / 0.7399 GB, free: 13.33 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02491/1.836, allocations: 8.839 MB / 0.7485 GB, free: 4.062 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001022/1.837, allocations: 341.4 kB / 0.7488 GB, free: 3.707 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009011/1.838, allocations: 62.31 kB / 0.7489 GB, free: 3.652 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00306/1.841, allocations: 191.7 kB / 0.7491 GB, free: 3.465 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007013/1.842, allocations: 173.6 kB / 0.7492 GB, free: 3.293 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002961/1.842, allocations: 75.97 kB / 0.7493 GB, free: 3.219 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004209/1.846, allocations: 1.685 MB / 0.7509 GB, free: 1.527 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.72e-07/1.846, allocations: 0 / 0.7509 GB, free: 1.527 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007246/1.853, allocations: 1.058 MB / 0.752 GB, free: 488 kB / 442.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 (202): * Single equations (assignments): 192 * 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.3426/2.196, allocations: 11.99 MB / 0.7637 GB, free: 85.52 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.017/2.213, allocations: 6.43 MB / 0.77 GB, free: 85.06 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.871e-05/2.213, allocations: 6.312 kB / 0.77 GB, free: 85.06 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008739/2.222, allocations: 2.885 MB / 0.7728 GB, free: 84.61 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003276/2.225, allocations: 346 kB / 0.7731 GB, free: 84.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1553/2.381, allocations: 104.7 MB / 0.8753 GB, free: 30.99 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01036/2.391, allocations: 3.391 MB / 0.8787 GB, free: 29.71 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.01032/2.401, allocations: 2.106 MB / 0.8807 GB, free: 29.58 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005091/2.407, allocations: 1.812 MB / 0.8825 GB, free: 28.09 MB / 474.7 MB Notification: Performance of SimCode: time 1.683e-06/2.407, allocations: 0 / 0.8825 GB, free: 28.09 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4789/2.886, allocations: 69.91 MB / 0.9507 GB, free: 105.6 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002235/2.886, allocations: 221.8 kB / 0.951 GB, free: 105.4 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.943/7.829, allocations: 0 / 0.951 GB, free: 105.4 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotion_res.mat does not exist to compare? outputFormat=mat