Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4,fileNamePrefix="ModelicaTest_3_2_2_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.2+maint.om/package.mo): time 0.01011/0.01011, allocations: 175.2 kB / 15.12 MB, free: 5.934 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 2.084/2.084, allocations: 194.5 MB / 210.3 MB, free: 7.797 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002/0.001999, allocations: 108.7 kB / 255.6 MB, free: 10.42 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2832/0.2832, allocations: 40.01 MB / 340.8 MB, free: 11.41 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005065/0.0005063, allocations: 11.12 kB / 406.3 MB, free: 51.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.109, allocations: 54.87 MB / 461.1 MB, free: 3.207 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5046/0.6137, allocations: 101.7 MB / 0.5497 GB, free: 21.39 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002781/0.6141, allocations: 78.66 kB / 0.5498 GB, free: 21.39 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4168/1.031, allocations: 97.89 MB / 0.6453 GB, free: 13.9 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.835e-06/1.031, allocations: 0 / 0.6453 GB, free: 13.9 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002558/1.031, allocations: 92 kB / 0.6454 GB, free: 13.81 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.02535/1.057, allocations: 4.81 MB / 0.6501 GB, free: 8.926 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/1.057, allocations: 8.031 kB / 0.6501 GB, free: 8.918 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004985/1.062, allocations: 0.9436 MB / 0.6511 GB, free: 7.961 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02871/1.09, allocations: 3.624 MB / 0.6546 GB, free: 4.324 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02079/1.111, allocations: 4.923 MB / 0.6594 GB, free: 15.34 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005771/1.112, allocations: 389.7 kB / 0.6598 GB, free: 14.96 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003386/1.115, allocations: 499.8 kB / 0.6603 GB, free: 14.48 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0406/1.156, allocations: 12.23 MB / 0.6722 GB, free: 1.711 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003126/1.156, allocations: 35.66 kB / 0.6722 GB, free: 1.676 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002355/1.159, allocations: 227.8 kB / 0.6725 GB, free: 1.453 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003082/1.162, allocations: 1.318 MB / 0.6737 GB, free: 136 kB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03727/1.199, allocations: 11.54 MB / 0.685 GB, free: 4.574 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.501/1.7, allocations: 41.98 MB / 0.726 GB, free: 92.22 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01735/1.718, allocations: 4.877 MB / 0.7308 GB, free: 91.03 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01775/1.735, allocations: 6.567 MB / 0.7372 GB, free: 89.12 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.788e-05/1.735, allocations: 55.03 kB / 0.7372 GB, free: 89.08 MB / 490.7 MB Notification: Performance of pre-optimization done (n=231): time 6.072e-06/1.735, allocations: 0 / 0.7372 GB, free: 89.08 MB / 490.7 MB Notification: Performance of matching and sorting (n=252): time 0.08791/1.823, allocations: 19.37 MB / 0.7561 GB, free: 86.79 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.645e-05/1.823, allocations: 73.62 kB / 0.7562 GB, free: 86.73 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006392/1.83, allocations: 2.854 MB / 0.759 GB, free: 86.41 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005627/1.83, allocations: 53.59 kB / 0.7591 GB, free: 86.38 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002828/1.833, allocations: 3.284 MB / 0.7623 GB, free: 84.59 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001568/1.835, allocations: 0.9416 MB / 0.7632 GB, free: 84.04 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009072/1.836, allocations: 121.8 kB / 0.7633 GB, free: 84.04 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005214/1.836, allocations: 0.5696 MB / 0.7638 GB, free: 83.72 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00608/1.843, allocations: 2.461 MB / 0.7663 GB, free: 83.7 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008909/1.851, allocations: 5.823 MB / 0.7719 GB, free: 79.39 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01021/1.862, allocations: 3.787 MB / 0.7756 GB, free: 79.35 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001409/1.862, allocations: 32.75 kB / 0.7757 GB, free: 79.35 MB / 490.7 MB Notification: Performance of matching and sorting (n=817) (initialization): time 0.03288/1.895, allocations: 10.04 MB / 0.7855 GB, free: 77.71 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.098e-05/1.895, allocations: 65.88 kB / 0.7855 GB, free: 77.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001443/1.895, allocations: 114.4 kB / 0.7856 GB, free: 77.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01586/1.911, allocations: 2.355 MB / 0.7879 GB, free: 77.49 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007935/1.919, allocations: 1.359 MB / 0.7893 GB, free: 77.32 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02767/1.947, allocations: 11.09 MB / 0.8001 GB, free: 72.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006254/1.953, allocations: 327.7 kB / 0.8004 GB, free: 72.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001378/1.954, allocations: 357.6 kB / 0.8008 GB, free: 72.16 MB / 490.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.006567/1.961, allocations: 2.443 MB / 0.8031 GB, free: 71.05 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007448/1.962, allocations: 301.9 kB / 0.8034 GB, free: 70.89 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01235/1.974, allocations: 4.641 MB / 0.808 GB, free: 69.23 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.656e-05/1.974, allocations: 48.56 kB / 0.808 GB, free: 69.23 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/1.974, allocations: 6.375 kB / 0.808 GB, free: 69.23 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.521e-05/1.974, allocations: 14.48 kB / 0.808 GB, free: 69.23 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03008/2.004, allocations: 10.83 MB / 0.8186 GB, free: 62.2 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-05/2.005, allocations: 4 kB / 0.8186 GB, free: 62.2 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003755/2.008, allocations: 422.5 kB / 0.819 GB, free: 61.87 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003543/2.012, allocations: 0.687 MB / 0.8197 GB, free: 61.41 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006481/2.013, allocations: 59.67 kB / 0.8197 GB, free: 61.36 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003879/2.016, allocations: 2.443 MB / 0.8221 GB, free: 59.09 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/2.017, allocations: 7.938 kB / 0.8221 GB, free: 59.09 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01737/2.034, allocations: 7.456 MB / 0.8294 GB, free: 52.31 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001045/2.035, allocations: 355.1 kB / 0.8298 GB, free: 51.95 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001342/2.036, allocations: 52.09 kB / 0.8298 GB, free: 51.91 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003004/2.039, allocations: 138.2 kB / 0.8299 GB, free: 51.82 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007023/2.04, allocations: 138.1 kB / 0.8301 GB, free: 51.73 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002636/2.04, allocations: 72.23 kB / 0.8301 GB, free: 51.67 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004426/2.045, allocations: 1.929 MB / 0.832 GB, free: 50.09 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.32e-07/2.045, allocations: 0 / 0.832 GB, free: 50.09 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.00694/2.052, allocations: 1.133 MB / 0.8331 GB, free: 48.97 MB / 490.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.01812/2.07, allocations: 9.082 MB / 0.842 GB, free: 40.64 MB / 490.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/Mechanics/MultiBody/Joints.mo:1958:5-1960: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.2+maint.om/Mechanics/MultiBody/Joints.mo:1952:5-1954: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.2+maint.om/Mechanics/MultiBody/Joints.mo:1955:5-1957: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.01476/2.085, allocations: 6.141 MB / 0.848 GB, free: 35.29 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.273e-05/2.085, allocations: 4 kB / 0.848 GB, free: 35.28 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007275/2.092, allocations: 2.524 MB / 0.8505 GB, free: 33.05 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003627/2.096, allocations: 412.6 kB / 0.8509 GB, free: 32.73 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5091/2.605, allocations: 117 MB / 0.9651 GB, free: 99.35 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01299/2.618, allocations: 3.868 MB / 0.9689 GB, free: 98.54 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0106/2.629, allocations: 2.07 MB / 0.9709 GB, free: 98.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005282/2.634, allocations: 2.13 MB / 0.973 GB, free: 98.5 MB / 0.5105 GB Notification: Performance of SimCode: time 1.442e-06/2.634, allocations: 0 / 0.973 GB, free: 98.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1766/2.811, allocations: 81.33 MB / 1.052 GB, free: 60.41 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000268/2.811, allocations: 217.4 kB / 1.053 GB, free: 60.17 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.433/8.244, allocations: 0 / 1.053 GB, free: 60.17 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4_res.mat does not exist to compare? outputFormat=mat