Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.Revolute2.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.Revolute2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Joints_Revolute2",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.0101/0.0101, allocations: 164.9 kB / 15.12 MB, free: 6.027 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.613/1.613, 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.00175/0.001749, allocations: 106.5 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.4813/0.4813, allocations: 38.05 MB / 303.7 MB, free: 42.43 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006884/0.0006884, allocations: 15.94 kB / 363 MB, free: 5.48 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1138, allocations: 48.7 MB / 411.7 MB, free: 4.699 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Joints.Revolute2): time 0.3478/0.4617, allocations: 55.7 MB / 467.4 MB, free: 17.8 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.04685/0.5086, allocations: 11.78 MB / 479.2 MB, free: 9.805 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01399/0.5227, allocations: 264.6 kB / 479.4 MB, free: 9.762 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009493/0.5322, allocations: 2.733 MB / 482.2 MB, free: 8.867 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.03506/0.5673, allocations: 9.533 MB / 491.7 MB, free: 4.809 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008317/0.5757, allocations: 0.9287 MB / 492.6 MB, free: 4.32 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.05307/0.6289, allocations: 18.82 MB / 0.4995 GB, free: 8.762 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01368/0.6426, allocations: 5.029 MB / 0.5044 GB, free: 3.699 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005629/0.6483, allocations: 1.883 MB / 0.5062 GB, free: 1.809 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00774/0.6561, allocations: 3.127 MB / 0.5093 GB, free: 14.67 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00175/0.6579, allocations: 216 kB / 0.5095 GB, free: 14.46 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004597/0.6626, allocations: 1.042 MB / 0.5105 GB, free: 13.42 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005299/0.6679, allocations: 2.591 MB / 0.513 GB, free: 10.82 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002846/0.6708, allocations: 1.205 MB / 0.5142 GB, free: 9.605 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01756/0.6884, allocations: 7.829 MB / 0.5218 GB, free: 1.758 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.488e-06/0.6885, allocations: 0 / 0.5218 GB, free: 1.758 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.6885, allocations: 0 / 0.5218 GB, free: 1.758 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003315/0.6889, allocations: 0 / 0.5218 GB, free: 1.758 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2208 * Number of variables: 2208 Notification: Performance of Generate backend data structure: time 0.03101/0.7199, allocations: 6.369 MB / 0.5281 GB, free: 11.31 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.333e-05/0.72, allocations: 12.03 kB / 0.5281 GB, free: 11.3 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004556/0.7246, allocations: 1.026 MB / 0.5291 GB, free: 10.26 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0662/0.7909, allocations: 5.728 MB / 0.5347 GB, free: 4.516 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01909/0.81, allocations: 5.788 MB / 0.5403 GB, free: 14.66 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006138/0.8107, allocations: 320.1 kB / 0.5406 GB, free: 14.35 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002393/0.8131, allocations: 439.6 kB / 0.5411 GB, free: 13.92 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05854/0.8717, allocations: 15.82 MB / 0.5565 GB, free: 13.36 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005475/0.8723, allocations: 67.44 kB / 0.5566 GB, free: 13.3 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003159/0.8755, allocations: 199.8 kB / 0.5568 GB, free: 13.1 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01482/0.8904, allocations: 3.24 MB / 0.5599 GB, free: 9.859 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07272/0.9632, allocations: 14.76 MB / 0.5743 GB, free: 11.08 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.406/1.369, allocations: 55.76 MB / 0.6288 GB, free: 91.5 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03177/1.401, allocations: 8.12 MB / 0.6367 GB, free: 88.44 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02108/1.422, allocations: 4.767 MB / 0.6414 GB, free: 86.54 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005501/1.428, allocations: 2.203 MB / 0.6435 GB, free: 84.49 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.72e-05/1.428, allocations: 72.98 kB / 0.6436 GB, free: 84.42 MB / 426.7 MB Notification: Performance of pre-optimization done (n=367): time 8.756e-06/1.428, allocations: 0 / 0.6436 GB, free: 84.42 MB / 426.7 MB Notification: Performance of matching and sorting (n=419): time 0.1945/1.623, allocations: 39.72 MB / 0.6824 GB, free: 57.27 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/1.623, allocations: 124 kB / 0.6825 GB, free: 57.12 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01263/1.635, allocations: 4.356 MB / 0.6868 GB, free: 52.75 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001443/1.637, allocations: 84.36 kB / 0.6868 GB, free: 52.67 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004775/1.642, allocations: 3.88 MB / 0.6906 GB, free: 48.78 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003358/1.645, allocations: 1.488 MB / 0.6921 GB, free: 47.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001401/1.647, allocations: 155 kB / 0.6922 GB, free: 47.15 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007941/1.647, allocations: 0.6404 MB / 0.6929 GB, free: 46.51 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0153/1.663, allocations: 3.923 MB / 0.6967 GB, free: 42.58 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01926/1.682, allocations: 7.707 MB / 0.7042 GB, free: 33.06 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01912/1.701, allocations: 5.454 MB / 0.7095 GB, free: 27.59 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001176/1.701, allocations: 36 kB / 0.7096 GB, free: 27.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=1014) (initialization): time 0.042/1.743, allocations: 14.16 MB / 0.7234 GB, free: 13.35 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.547e-05/1.744, allocations: 60.19 kB / 0.7235 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001527/1.744, allocations: 132 kB / 0.7236 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01364/1.757, allocations: 2.701 MB / 0.7262 GB, free: 10.45 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01156/1.769, allocations: 1.786 MB / 0.728 GB, free: 8.66 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03122/1.8, allocations: 14.11 MB / 0.7417 GB, free: 10.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009022/1.809, allocations: 495.6 kB / 0.7422 GB, free: 9.805 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002064/1.812, allocations: 430.8 kB / 0.7426 GB, free: 9.387 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 589 * Number of states: 0 () * Number of discrete variables: 45 (bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],revolute3.cylinderColor[3],revolute3.cylinderColor[2],revolute3.cylinderColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[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],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],axis.color[3],axis.color[2],axis.color[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 (917): * Single equations (assignments): 909 * 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: 2 {(6,69.4%) 32,(3,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009349/1.821, allocations: 2.901 MB / 0.7455 GB, free: 6.473 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001961/1.823, allocations: 473.5 kB / 0.7459 GB, free: 6.008 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.361/2.184, allocations: 10.54 MB / 0.7562 GB, free: 129.2 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001458/2.184, allocations: 61.91 kB / 0.7563 GB, free: 129.2 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-05/2.184, allocations: 15.31 kB / 0.7563 GB, free: 129.2 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.572e-05/2.184, allocations: 17.39 kB / 0.7563 GB, free: 129.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06653/2.251, allocations: 21.38 MB / 0.7772 GB, free: 124.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.28e-05/2.251, allocations: 12.66 kB / 0.7772 GB, free: 124.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006517/2.258, allocations: 0.6805 MB / 0.7778 GB, free: 124 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01433/2.272, allocations: 2.486 MB / 0.7803 GB, free: 123.6 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001143/2.273, allocations: 85 kB / 0.7804 GB, free: 123.6 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03014/2.303, allocations: 12.87 MB / 0.7929 GB, free: 117.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.829e-05/2.303, allocations: 17.66 kB / 0.7929 GB, free: 117.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04104/2.344, allocations: 15.08 MB / 0.8077 GB, free: 111.2 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004726/2.349, allocations: 1.162 MB / 0.8088 GB, free: 110.5 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001904/2.351, allocations: 81.31 kB / 0.8089 GB, free: 110.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00583/2.357, allocations: 310.7 kB / 0.8092 GB, free: 110.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001673/2.359, allocations: 258.5 kB / 0.8094 GB, free: 109.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001043/2.36, allocations: 116 kB / 0.8095 GB, free: 109.8 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006765/2.367, allocations: 2.715 MB / 0.8122 GB, free: 107.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.503e-06/2.367, allocations: 0 / 0.8122 GB, free: 107.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009219/2.376, allocations: 1.655 MB / 0.8138 GB, free: 105.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 7 (revolute.phi,revolute.w,constantSpeed.phi,revolute2.phi,revolute2.w,revolute3.phi,revolute3.w) * 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 (334): * Single equations (assignments): 326 * 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: 2 {(1,100.0%) 9,(6,69.4%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04025/2.416, allocations: 15.78 MB / 0.8292 GB, free: 89.45 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02208/2.438, allocations: 9.792 MB / 0.8388 GB, free: 79.69 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.664e-05/2.438, allocations: 4 kB / 0.8388 GB, free: 79.68 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01011/2.449, allocations: 4.294 MB / 0.843 GB, free: 75.37 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007919/2.457, allocations: 0.7037 MB / 0.8437 GB, free: 74.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1275/2.584, allocations: 55.58 MB / 0.8979 GB, free: 15.13 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009479/2.594, allocations: 4.74 MB / 0.9026 GB, free: 10.34 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.01187/2.606, allocations: 2.732 MB / 0.9052 GB, free: 7.602 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00711/2.613, allocations: 2.913 MB / 0.9081 GB, free: 4.688 MB / 442.7 MB Notification: Performance of SimCode: time 1.542e-06/2.613, allocations: 0 / 0.9081 GB, free: 4.688 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5701/3.183, allocations: 122.1 MB / 1.027 GB, free: 44.68 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001602/3.183, allocations: 215.3 kB / 1.027 GB, free: 44.43 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.945/10.13, allocations: 0 / 1.027 GB, free: 44.43 MB / 442.7 MB