Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.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.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit4",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.01506/0.01506, allocations: 165.4 kB / 15.11 MB, free: 5.977 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.844/1.844, 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.001943/0.001943, allocations: 99.39 kB / 226.2 MB, free: 10.11 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.447/0.447, allocations: 38.05 MB / 303.7 MB, free: 42.38 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004878/0.0004877, allocations: 15.98 kB / 363 MB, free: 5.535 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1111, allocations: 48.71 MB / 411.7 MB, free: 4.754 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.454/0.5652, allocations: 95.01 MB / 0.4948 GB, free: 8.684 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002731/0.5655, allocations: 78.45 kB / 0.4949 GB, free: 8.645 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7598/1.325, allocations: 97.86 MB / 0.5905 GB, free: 77.44 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.156e-06/1.325, allocations: 0 / 0.5905 GB, free: 77.44 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002727/1.326, allocations: 90.48 kB / 0.5906 GB, free: 77.44 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: 1878 * Number of variables: 1878 Notification: Performance of Generate backend data structure: time 0.02726/1.353, allocations: 4.811 MB / 0.5952 GB, free: 75.54 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/1.353, allocations: 8.781 kB / 0.5953 GB, free: 75.54 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005098/1.358, allocations: 0.9442 MB / 0.5962 GB, free: 75.46 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02804/1.386, allocations: 3.623 MB / 0.5997 GB, free: 75.13 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02006/1.406, allocations: 4.917 MB / 0.6045 GB, free: 74.58 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007084/1.407, allocations: 381.5 kB / 0.6049 GB, free: 74.57 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003432/1.411, allocations: 0.4902 MB / 0.6054 GB, free: 74.57 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05303/1.464, allocations: 12.25 MB / 0.6173 GB, free: 73.04 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005049/1.464, allocations: 32.84 kB / 0.6174 GB, free: 73.04 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003386/1.468, allocations: 222.4 kB / 0.6176 GB, free: 73.04 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003554/1.471, allocations: 1.315 MB / 0.6188 GB, free: 73.02 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0376/1.509, allocations: 11.54 MB / 0.6301 GB, free: 72.97 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08555/1.595, allocations: 41.97 MB / 0.6711 GB, free: 49.34 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01612/1.611, allocations: 4.897 MB / 0.6759 GB, free: 47.07 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01551/1.626, allocations: 6.571 MB / 0.6823 GB, free: 43.39 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.5e-05/1.626, allocations: 48.47 kB / 0.6824 GB, free: 43.34 MB / 426.7 MB Notification: Performance of pre-optimization done (n=231): time 6.462e-06/1.626, allocations: 0 / 0.6824 GB, free: 43.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=252): time 0.08218/1.709, allocations: 19.38 MB / 0.7013 GB, free: 34.69 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.484e-05/1.709, allocations: 77.25 kB / 0.7013 GB, free: 34.61 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006545/1.715, allocations: 2.846 MB / 0.7041 GB, free: 32.19 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005587/1.716, allocations: 57.7 kB / 0.7042 GB, free: 32.13 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002383/1.718, allocations: 3.283 MB / 0.7074 GB, free: 29.2 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001421/1.72, allocations: 0.9391 MB / 0.7083 GB, free: 28.37 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008223/1.721, allocations: 126.6 kB / 0.7084 GB, free: 28.25 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004942/1.721, allocations: 0.5687 MB / 0.709 GB, free: 27.75 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006347/1.727, allocations: 2.461 MB / 0.7114 GB, free: 25.66 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008451/1.736, allocations: 5.824 MB / 0.7171 GB, free: 18.63 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008497/1.745, allocations: 3.779 MB / 0.7208 GB, free: 15.24 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001171/1.745, allocations: 36 kB / 0.7208 GB, free: 15.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=817) (initialization): time 0.03364/1.778, allocations: 10.04 MB / 0.7306 GB, free: 6.797 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001035/1.779, allocations: 59.95 kB / 0.7307 GB, free: 6.738 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002038/1.779, allocations: 120 kB / 0.7308 GB, free: 6.621 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01627/1.795, allocations: 2.361 MB / 0.7331 GB, free: 5.102 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008274/1.803, allocations: 1.354 MB / 0.7344 GB, free: 3.918 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0323/1.836, allocations: 11.16 MB / 0.7453 GB, free: 9.688 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006566/1.842, allocations: 325 kB / 0.7456 GB, free: 9.371 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001707/1.844, allocations: 360.8 kB / 0.746 GB, free: 9.02 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 538 * Number of states: 0 () * Number of discrete variables: 27 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],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],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.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 (733): * Single equations (assignments): 725 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 5,3 27} Notification: Performance of prepare postOptimizeDAE: time 0.007602/1.852, allocations: 2.444 MB / 0.7483 GB, free: 6.566 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009142/1.853, allocations: 304 kB / 0.7486 GB, free: 6.266 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01588/1.869, allocations: 4.635 MB / 0.7532 GB, free: 1.57 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001269/1.869, allocations: 48.69 kB / 0.7532 GB, free: 1.523 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.241e-05/1.869, allocations: 0 / 0.7532 GB, free: 1.523 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.327e-05/1.869, allocations: 11.95 kB / 0.7532 GB, free: 1.512 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3655/2.234, allocations: 10.83 MB / 0.7638 GB, free: 82.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.331e-05/2.234, allocations: 4.031 kB / 0.7638 GB, free: 82.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004157/2.239, allocations: 424 kB / 0.7642 GB, free: 82.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003852/2.243, allocations: 0.6896 MB / 0.7649 GB, free: 82.02 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006911/2.243, allocations: 54.17 kB / 0.7649 GB, free: 82.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004147/2.247, allocations: 2.442 MB / 0.7673 GB, free: 80.78 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.596e-06/2.248, allocations: 11 kB / 0.7673 GB, free: 80.78 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0182/2.266, allocations: 7.459 MB / 0.7746 GB, free: 79.9 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001144/2.267, allocations: 358.6 kB / 0.7749 GB, free: 79.8 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001332/2.268, allocations: 48.33 kB / 0.775 GB, free: 79.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003271/2.272, allocations: 134.5 kB / 0.7751 GB, free: 79.8 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008593/2.273, allocations: 144 kB / 0.7753 GB, free: 79.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003632/2.273, allocations: 75.28 kB / 0.7753 GB, free: 79.79 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.005543/2.278, allocations: 1.926 MB / 0.7772 GB, free: 79.65 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.052e-06/2.279, allocations: 0 / 0.7772 GB, free: 79.65 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007848/2.286, allocations: 1.131 MB / 0.7783 GB, free: 79.65 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.derdd[1].u,freeMotionScalarInit.derdd[2].u,freeMotionScalarInit.derdd[3].u) * 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 (206): * Single equations (assignments): 197 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,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: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02053/2.307, allocations: 9.071 MB / 0.7872 GB, free: 77.38 MB / 442.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Mechanics/MultiBody/Joints.mo:1990:5-1992:161:writable] Warning: Variable freeMotionScalarInit.angle_3 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Mechanics/MultiBody/Joints.mo:1984:5-1986:161:writable] Warning: Variable freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Mechanics/MultiBody/Joints.mo:1987:5-1989:161:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01678/2.324, allocations: 6.142 MB / 0.7932 GB, free: 77.2 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.491e-05/2.324, allocations: 3.719 kB / 0.7932 GB, free: 77.2 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008074/2.332, allocations: 2.526 MB / 0.7956 GB, free: 76.87 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00362/2.336, allocations: 414.6 kB / 0.796 GB, free: 76.86 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1162/2.452, allocations: 117 MB / 0.9103 GB, free: 23.95 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009815/2.462, allocations: 3.873 MB / 0.9141 GB, free: 22.53 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.009363/2.471, allocations: 2.061 MB / 0.9161 GB, free: 22.39 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005621/2.477, allocations: 2.135 MB / 0.9182 GB, free: 20.62 MB / 490.7 MB Notification: Performance of SimCode: time 1.543e-06/2.477, allocations: 0 / 0.9182 GB, free: 20.62 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5915/3.068, allocations: 81.35 MB / 0.9976 GB, free: 122.9 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002961/3.069, allocations: 214.8 kB / 0.9978 GB, free: 122.6 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.564/8.633, allocations: 0 / 0.9978 GB, free: 122.6 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat does not exist to compare? outputFormat=mat