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.00935/0.009354, allocations: 162.2 kB / 15.12 MB, free: 6.023 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.744/1.744, allocations: 170.8 MB / 186.7 MB, free: 1.109 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.001705/0.001704, allocations: 102.8 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.4732/0.4732, allocations: 38.05 MB / 303.7 MB, free: 42.45 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004813/0.0004815, allocations: 8 kB / 363 MB, free: 5.477 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1274/0.1279, allocations: 48.72 MB / 411.7 MB, free: 4.676 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2): time 0.3603/0.4883, allocations: 29.64 MB / 441.3 MB, free: 30.23 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02785/0.5162, allocations: 6.994 MB / 448.3 MB, free: 29.16 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007953/0.5242, allocations: 134.4 kB / 448.5 MB, free: 29.14 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006158/0.5304, allocations: 1.469 MB / 449.9 MB, free: 28.86 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02156/0.5521, allocations: 5.161 MB / 455.1 MB, free: 27.79 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003544/0.5557, allocations: 442.1 kB / 455.5 MB, free: 27.76 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.008917/0.5646, allocations: 4.335 MB / 459.9 MB, free: 26.83 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008835/0.5735, allocations: 3.365 MB / 463.2 MB, free: 25.63 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003304/0.5769, allocations: 1.113 MB / 464.3 MB, free: 25.31 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005396/0.5824, allocations: 1.831 MB / 466.2 MB, free: 24.89 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001413/0.5838, allocations: 146.2 kB / 466.3 MB, free: 24.89 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004511/0.5884, allocations: 0.8855 MB / 467.2 MB, free: 24.71 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004121/0.5926, allocations: 1.657 MB / 468.9 MB, free: 24.23 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002181/0.5948, allocations: 0.8556 MB / 469.7 MB, free: 23.6 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01163/0.6065, allocations: 5.646 MB / 475.4 MB, free: 20.79 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.936e-06/0.6066, allocations: 0 / 475.4 MB, free: 20.79 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.126e-06/0.6066, allocations: 0 / 475.4 MB, free: 20.79 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002994/0.6069, allocations: 0 / 475.4 MB, free: 20.79 MB / 330.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.01565/0.6226, allocations: 4.108 MB / 479.5 MB, free: 17.96 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.5e-05/0.6226, allocations: 10.19 kB / 479.5 MB, free: 17.96 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003031/0.6257, allocations: 0.8018 MB / 480.3 MB, free: 17.46 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02099/0.6467, allocations: 3.239 MB / 483.5 MB, free: 15.82 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008881/0.6556, allocations: 2.538 MB / 486.1 MB, free: 14.26 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003353/0.656, allocations: 225.1 kB / 486.3 MB, free: 14.15 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001854/0.6579, allocations: 292.8 kB / 486.6 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0315/0.6894, allocations: 11.88 MB / 498.4 MB, free: 5.195 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001792/0.6897, allocations: 27.75 kB / 498.5 MB, free: 5.168 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002352/0.692, allocations: 143.8 kB / 498.6 MB, free: 5.027 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01157/0.7037, allocations: 2.695 MB / 0.4896 GB, free: 2.328 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03434/0.7381, allocations: 11.05 MB / 0.5004 GB, free: 7.262 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08906/0.8272, allocations: 37.01 MB / 0.5365 GB, free: 1.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01561/0.8429, allocations: 4.705 MB / 0.5411 GB, free: 12.49 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005744/0.8487, allocations: 2.24 MB / 0.5433 GB, free: 10.25 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002082/0.8508, allocations: 1.311 MB / 0.5446 GB, free: 8.719 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.204e-05/0.8509, allocations: 56.56 kB / 0.5446 GB, free: 8.652 MB / 394.7 MB Notification: Performance of pre-optimization done (n=244): time 6.352e-06/0.851, allocations: 0 / 0.5446 GB, free: 8.652 MB / 394.7 MB Notification: Performance of matching and sorting (n=256): time 0.06931/0.9203, allocations: 13.55 MB / 0.5578 GB, free: 11.02 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.863e-05/0.9204, allocations: 73.41 kB / 0.5579 GB, free: 10.94 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006009/0.9264, allocations: 2.804 MB / 0.5607 GB, free: 8.121 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005356/0.927, allocations: 57.7 kB / 0.5607 GB, free: 8.059 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003287/0.9303, allocations: 2.953 MB / 0.5636 GB, free: 5.062 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002002/0.9324, allocations: 0.9443 MB / 0.5645 GB, free: 4.105 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007981/0.9332, allocations: 120 kB / 0.5646 GB, free: 3.988 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0007119/0.9339, allocations: 0.55 MB / 0.5652 GB, free: 3.43 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008691/0.9426, allocations: 2.279 MB / 0.5674 GB, free: 1.145 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01263/0.9553, allocations: 5.424 MB / 0.5727 GB, free: 10.18 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01196/0.9674, allocations: 3.513 MB / 0.5761 GB, free: 6.672 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001173/0.9675, allocations: 36 kB / 0.5762 GB, free: 6.637 MB / 426.7 MB Notification: Performance of matching and sorting (n=764) (initialization): time 0.3202/1.288, allocations: 8.386 MB / 0.5843 GB, free: 120.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001069/1.288, allocations: 51.16 kB / 0.5844 GB, free: 120.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002046/1.288, allocations: 111.8 kB / 0.5845 GB, free: 120.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007062/1.295, allocations: 1.033 MB / 0.5855 GB, free: 120.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00863/1.304, allocations: 1.313 MB / 0.5868 GB, free: 120.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004188/1.308, allocations: 2.474 MB / 0.5892 GB, free: 118.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00556/1.314, allocations: 312.1 kB / 0.5895 GB, free: 118.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00121/1.315, allocations: 333.2 kB / 0.5898 GB, free: 118.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 499 * 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 (711): * Single equations (assignments): 702 * 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.006092/1.321, allocations: 2.265 MB / 0.592 GB, free: 118.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007292/1.322, allocations: 285.6 kB / 0.5923 GB, free: 118.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02049/1.342, allocations: 4.903 MB / 0.5971 GB, free: 118.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001731/1.343, allocations: 49.89 kB / 0.5971 GB, free: 118.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.209e-05/1.343, allocations: 0 / 0.5971 GB, free: 118.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-05/1.343, allocations: 14.25 kB / 0.5972 GB, free: 118.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04685/1.39, allocations: 11.45 MB / 0.6083 GB, free: 114.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.318e-05/1.39, allocations: 8.594 kB / 0.6083 GB, free: 114.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005382/1.395, allocations: 410.2 kB / 0.6087 GB, free: 114.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007721/1.403, allocations: 0.6226 MB / 0.6093 GB, free: 114.3 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006796/1.404, allocations: 57.61 kB / 0.6094 GB, free: 114.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004959/1.409, allocations: 2.048 MB / 0.6114 GB, free: 112.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.838e-05/1.409, allocations: 11.03 kB / 0.6114 GB, free: 112.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02703/1.436, allocations: 6.958 MB / 0.6182 GB, free: 110.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001314/1.437, allocations: 336.4 kB / 0.6185 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00128/1.438, allocations: 43.66 kB / 0.6186 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003688/1.442, allocations: 133.3 kB / 0.6187 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008619/1.443, allocations: 156.5 kB / 0.6188 GB, free: 110 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003925/1.443, allocations: 78.67 kB / 0.6189 GB, free: 109.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003768/1.447, allocations: 1.705 MB / 0.6206 GB, free: 109.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.447, allocations: 1.312 kB / 0.6206 GB, free: 109.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00908/1.456, allocations: 0.9848 MB / 0.6215 GB, free: 109.2 MB / 426.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.02536/1.482, allocations: 7.618 MB / 0.629 GB, free: 105.9 MB / 426.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.01697/1.499, allocations: 5.96 MB / 0.6348 GB, free: 102.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.409e-05/1.499, allocations: 8.062 kB / 0.6348 GB, free: 102.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006486/1.505, allocations: 2.374 MB / 0.6371 GB, free: 100.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003854/1.509, allocations: 428 kB / 0.6375 GB, free: 99.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07729/1.587, allocations: 32.4 MB / 0.6692 GB, free: 67.01 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006262/1.593, allocations: 3.595 MB / 0.6727 GB, free: 63.38 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.008079/1.601, allocations: 2.065 MB / 0.6747 GB, free: 61.31 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004083/1.605, allocations: 1.925 MB / 0.6766 GB, free: 59.39 MB / 426.7 MB Notification: Performance of SimCode: time 1.302e-06/1.605, allocations: 0 / 0.6766 GB, free: 59.39 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2056/1.811, allocations: 69.58 MB / 0.7445 GB, free: 5.816 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003805/1.811, allocations: 209.6 kB / 0.7447 GB, free: 5.578 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.941/6.752, allocations: 4 kB / 0.7447 GB, free: 5.574 MB / 442.7 MB