Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.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.FreeMotionScalarInit2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Joints_FreeMotionScalarInit2",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.01149/0.01149, allocations: 162.6 kB / 15.11 MB, free: 5.93 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.881/1.881, allocations: 170.8 MB / 186.6 MB, free: 1.117 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.002837/0.002836, allocations: 107.4 kB / 226.2 MB, free: 10.09 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.4528/0.4528, allocations: 38.05 MB / 303.7 MB, free: 42.42 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004807/0.0004808, allocations: 12 kB / 363 MB, free: 5.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1356, allocations: 48.71 MB / 411.7 MB, free: 4.723 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4442/0.5799, allocations: 91.25 MB / 0.4911 GB, free: 12.72 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002977/0.5802, allocations: 83.94 kB / 0.4912 GB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3846/0.9648, allocations: 90.91 MB / 0.58 GB, free: 6.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.657e-06/0.9649, allocations: 0 / 0.58 GB, free: 6.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002249/0.9651, allocations: 80 kB / 0.5801 GB, free: 6.242 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: 1717 * Number of variables: 1717 Notification: Performance of Generate backend data structure: time 0.02416/0.9893, allocations: 4.433 MB / 0.5844 GB, free: 1.738 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.064e-05/0.9894, allocations: 16.02 kB / 0.5844 GB, free: 1.723 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004486/0.9939, allocations: 0.8653 MB / 0.5853 GB, free: 0.8477 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3207/1.315, allocations: 3.576 MB / 0.5888 GB, free: 80.92 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0192/1.334, allocations: 4.717 MB / 0.5934 GB, free: 80.68 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004322/1.334, allocations: 338.8 kB / 0.5937 GB, free: 80.67 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003008/1.337, allocations: 444.7 kB / 0.5941 GB, free: 80.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03571/1.373, allocations: 11.49 MB / 0.6053 GB, free: 79.32 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003042/1.374, allocations: 23.22 kB / 0.6054 GB, free: 79.32 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00246/1.376, allocations: 202.8 kB / 0.6056 GB, free: 79.32 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002668/1.379, allocations: 1.255 MB / 0.6068 GB, free: 79.31 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03258/1.411, allocations: 11.08 MB / 0.6176 GB, free: 79.27 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0982/1.51, allocations: 38.04 MB / 0.6548 GB, free: 59.16 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02159/1.531, allocations: 4.685 MB / 0.6593 GB, free: 56.94 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002411/1.534, allocations: 1.32 MB / 0.6606 GB, free: 55.76 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.203e-05/1.534, allocations: 55.78 kB / 0.6607 GB, free: 55.71 MB / 426.7 MB Notification: Performance of pre-optimization done (n=244): time 1.001e-05/1.534, allocations: 0 / 0.6607 GB, free: 55.71 MB / 426.7 MB Notification: Performance of matching and sorting (n=256): time 0.08326/1.617, allocations: 14.34 MB / 0.6747 GB, free: 51.22 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.282e-05/1.617, allocations: 74.97 kB / 0.6747 GB, free: 51.15 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00571/1.623, allocations: 2.502 MB / 0.6772 GB, free: 50.2 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005669/1.624, allocations: 57.23 kB / 0.6772 GB, free: 50.14 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00231/1.626, allocations: 2.962 MB / 0.6801 GB, free: 47.89 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001374/1.627, allocations: 0.9351 MB / 0.681 GB, free: 47.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007239/1.628, allocations: 112.5 kB / 0.6812 GB, free: 47.11 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004434/1.629, allocations: 0.5545 MB / 0.6817 GB, free: 46.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005488/1.634, allocations: 2.279 MB / 0.6839 GB, free: 45.99 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00773/1.642, allocations: 5.406 MB / 0.6892 GB, free: 41.07 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007972/1.65, allocations: 3.518 MB / 0.6926 GB, free: 39.78 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001078/1.65, allocations: 29.78 kB / 0.6927 GB, free: 39.78 MB / 426.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02462/1.675, allocations: 8.391 MB / 0.7009 GB, free: 32.74 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.838e-05/1.675, allocations: 53.88 kB / 0.7009 GB, free: 32.69 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001741/1.675, allocations: 112.8 kB / 0.701 GB, free: 32.58 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006556/1.682, allocations: 1.029 MB / 0.702 GB, free: 31.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008185/1.69, allocations: 1.315 MB / 0.7033 GB, free: 30.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004023/1.694, allocations: 2.498 MB / 0.7057 GB, free: 28.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005727/1.7, allocations: 316.1 kB / 0.706 GB, free: 28.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001333/1.701, allocations: 327.6 kB / 0.7064 GB, free: 27.84 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 500 * 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],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 (710): * Single equations (assignments): 701 * 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 {(3,100.0%),(2,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 prepare postOptimizeDAE: time 0.00607/1.707, allocations: 2.27 MB / 0.7086 GB, free: 25.87 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006854/1.708, allocations: 280.3 kB / 0.7088 GB, free: 25.59 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01571/1.724, allocations: 4.911 MB / 0.7136 GB, free: 21.55 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001041/1.724, allocations: 46.31 kB / 0.7137 GB, free: 21.51 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.31e-05/1.724, allocations: 0 / 0.7137 GB, free: 21.51 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.947e-05/1.724, allocations: 7.5 kB / 0.7137 GB, free: 21.51 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03326/1.757, allocations: 11.5 MB / 0.7249 GB, free: 11.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.86e-05/1.757, allocations: 8 kB / 0.7249 GB, free: 11.81 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003617/1.761, allocations: 411.5 kB / 0.7253 GB, free: 11.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005528/1.766, allocations: 0.6161 MB / 0.7259 GB, free: 11.09 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005873/1.767, allocations: 55.47 kB / 0.726 GB, free: 11.04 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003316/1.77, allocations: 2.1 MB / 0.728 GB, free: 9.008 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.226e-05/1.77, allocations: 16 kB / 0.728 GB, free: 8.992 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01943/1.79, allocations: 7.727 MB / 0.7356 GB, free: 1.238 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009886/1.791, allocations: 329.3 kB / 0.7359 GB, free: 0.8945 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001232/1.792, allocations: 51.98 kB / 0.736 GB, free: 0.8438 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002953/1.795, allocations: 130.8 kB / 0.7361 GB, free: 0.7188 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008446/1.796, allocations: 157.6 kB / 0.7362 GB, free: 0.5625 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003138/1.796, allocations: 75.98 kB / 0.7363 GB, free: 500 kB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005148/1.802, allocations: 1.71 MB / 0.738 GB, free: 14.77 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.12e-07/1.802, allocations: 0 / 0.738 GB, free: 14.77 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007525/1.809, allocations: 0.9968 MB / 0.7389 GB, free: 13.79 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * 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.w_rel_b_1,freeMotionScalarInit.w_rel_b_2,freeMotionScalarInit.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 (207): * Single equations (assignments): 198 * 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.02507/1.834, allocations: 10.69 MB / 0.7494 GB, free: 2.77 MB / 442.7 MB [/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 $DER.freeMotionScalarInit.angle_2 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 $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.3336/2.168, allocations: 5.955 MB / 0.7552 GB, free: 88.28 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.609e-05/2.168, allocations: 1.438 kB / 0.7552 GB, free: 88.28 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008165/2.176, allocations: 2.376 MB / 0.7575 GB, free: 87.96 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003726/2.18, allocations: 387 kB / 0.7579 GB, free: 87.95 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1111/2.291, allocations: 107.6 MB / 0.863 GB, free: 31.38 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008952/2.3, allocations: 3.607 MB / 0.8665 GB, free: 30.57 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.009966/2.31, allocations: 2.064 MB / 0.8685 GB, free: 30.45 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005586/2.316, allocations: 1.943 MB / 0.8704 GB, free: 30.44 MB / 474.7 MB Notification: Performance of SimCode: time 1.804e-06/2.316, allocations: 0 / 0.8704 GB, free: 30.44 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1997/2.515, allocations: 69.63 MB / 0.9384 GB, free: 4.109 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003898/2.516, allocations: 201.8 kB / 0.9386 GB, free: 3.871 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.941/7.457, allocations: 7.938 kB / 0.9386 GB, free: 3.863 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2_res.mat does not exist to compare? outputFormat=mat