Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.Revolute2.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.Revolute2,fileNamePrefix="ModelicaTest_3_2_2_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.2+maint.om/package.mo): time 0.01622/0.01622, allocations: 175.7 kB / 15.12 MB, free: 5.93 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.242/2.242, allocations: 194.5 MB / 210.3 MB, free: 7.613 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.003105/0.003104, allocations: 120.6 kB / 255.6 MB, free: 10.23 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.2495/0.2495, allocations: 40.01 MB / 340.8 MB, free: 11.4 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004694/0.0004693, allocations: 14.88 kB / 406.3 MB, free: 51.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1017, allocations: 54.87 MB / 461.1 MB, free: 3.219 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5203/0.622, allocations: 99.29 MB / 0.5473 GB, free: 21.72 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/0.6223, allocations: 80.75 kB / 0.5474 GB, free: 21.72 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.549/1.171, allocations: 128.5 MB / 0.6729 GB, free: 1.625 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.587e-06/1.171, allocations: 3.938 kB / 0.6729 GB, free: 1.621 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0004633/1.172, allocations: 120 kB / 0.673 GB, free: 1.504 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2209 * Number of variables: 2209 Notification: Performance of Generate backend data structure: time 0.03245/1.204, allocations: 6.68 MB / 0.6795 GB, free: 10.74 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.278e-05/1.204, allocations: 8.031 kB / 0.6795 GB, free: 10.73 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0062/1.211, allocations: 1.1 MB / 0.6806 GB, free: 9.617 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06602/1.277, allocations: 6.45 MB / 0.6869 GB, free: 3.148 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03852/1.315, allocations: 8.592 MB / 0.6953 GB, free: 10.5 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008044/1.316, allocations: 447.4 kB / 0.6957 GB, free: 10.06 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004268/1.32, allocations: 0.5817 MB / 0.6963 GB, free: 9.477 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05586/1.376, allocations: 15.42 MB / 0.7113 GB, free: 9.34 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004989/1.377, allocations: 59.48 kB / 0.7114 GB, free: 9.281 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003713/1.381, allocations: 267.8 kB / 0.7117 GB, free: 9.02 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004921/1.386, allocations: 1.687 MB / 0.7133 GB, free: 7.332 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4019/1.788, allocations: 14.83 MB / 0.7278 GB, free: 94.88 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1231/1.911, allocations: 56.25 MB / 0.7827 GB, free: 73.34 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0296/1.94, allocations: 8.005 MB / 0.7905 GB, free: 70.29 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002719/1.943, allocations: 2.207 MB / 0.7927 GB, free: 68.24 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.999e-05/1.943, allocations: 68.55 kB / 0.7928 GB, free: 68.17 MB / 490.7 MB Notification: Performance of pre-optimization done (n=367): time 8.085e-06/1.943, allocations: 0.6562 kB / 0.7928 GB, free: 68.17 MB / 490.7 MB Notification: Performance of matching and sorting (n=419): time 0.1796/2.123, allocations: 39.68 MB / 0.8315 GB, free: 55.12 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.622e-05/2.123, allocations: 119.8 kB / 0.8316 GB, free: 54.99 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009135/2.132, allocations: 3.853 MB / 0.8354 GB, free: 51.83 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00115/2.133, allocations: 85.7 kB / 0.8355 GB, free: 51.74 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003379/2.137, allocations: 3.904 MB / 0.8393 GB, free: 48.46 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002586/2.139, allocations: 1.494 MB / 0.8407 GB, free: 47.14 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001386/2.141, allocations: 151.8 kB / 0.8409 GB, free: 46.99 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0006592/2.142, allocations: 0.6411 MB / 0.8415 GB, free: 46.45 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009788/2.151, allocations: 3.888 MB / 0.8453 GB, free: 43.17 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01269/2.164, allocations: 7.673 MB / 0.8528 GB, free: 34.57 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01282/2.177, allocations: 5.428 MB / 0.8581 GB, free: 29.95 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001341/2.177, allocations: 40 kB / 0.8581 GB, free: 29.91 MB / 490.7 MB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.04356/2.221, allocations: 14.07 MB / 0.8719 GB, free: 18.23 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001035/2.221, allocations: 60.78 kB / 0.8719 GB, free: 18.17 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002059/2.221, allocations: 135.5 kB / 0.8721 GB, free: 18.04 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.014/2.235, allocations: 2.633 MB / 0.8746 GB, free: 16.28 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01428/2.25, allocations: 1.944 MB / 0.8765 GB, free: 14.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0317/2.281, allocations: 14.07 MB / 0.8903 GB, free: 2.59 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009487/2.291, allocations: 479.9 kB / 0.8907 GB, free: 2.223 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002183/2.293, allocations: 425.8 kB / 0.8911 GB, free: 1.824 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 594 * 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 (920): * Single equations (assignments): 912 * 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.0105/2.304, allocations: 2.939 MB / 0.894 GB, free: 15.37 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001666/2.305, allocations: 466 kB / 0.8945 GB, free: 14.91 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03827/2.344, allocations: 10.43 MB / 0.9046 GB, free: 5.402 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000147/2.344, allocations: 67.66 kB / 0.9047 GB, free: 5.34 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.28e-05/2.344, allocations: 8 kB / 0.9047 GB, free: 5.332 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001148/2.344, allocations: 19.92 kB / 0.9047 GB, free: 5.312 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4463/2.79, allocations: 21.04 MB / 0.9253 GB, free: 101.8 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.647e-05/2.79, allocations: 15.67 kB / 0.9253 GB, free: 101.8 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007376/2.798, allocations: 0.7829 MB / 0.9261 GB, free: 101.8 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01305/2.811, allocations: 2.413 MB / 0.9284 GB, free: 101.8 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001189/2.812, allocations: 78.92 kB / 0.9285 GB, free: 101.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02971/2.842, allocations: 12.81 MB / 0.941 GB, free: 99.28 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.486e-05/2.842, allocations: 16.73 kB / 0.941 GB, free: 99.28 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04084/2.883, allocations: 16.24 MB / 0.9569 GB, free: 96.66 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004562/2.887, allocations: 1.16 MB / 0.958 GB, free: 96.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001973/2.889, allocations: 82.02 kB / 0.9581 GB, free: 96.56 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005991/2.895, allocations: 289.9 kB / 0.9584 GB, free: 96.56 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001764/2.897, allocations: 267.9 kB / 0.9586 GB, free: 96.55 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000808/2.898, allocations: 112.9 kB / 0.9587 GB, free: 96.55 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.007032/2.905, allocations: 2.708 MB / 0.9614 GB, free: 96.37 MB / 0.4948 GB Notification: Performance of sort global known variables: time 7.42e-07/2.905, allocations: 0 / 0.9614 GB, free: 96.37 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01055/2.916, allocations: 1.649 MB / 0.963 GB, free: 96.37 MB / 0.4948 GB 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.04674/2.963, allocations: 19.45 MB / 0.982 GB, free: 86.66 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.03172/2.994, allocations: 9.725 MB / 0.9915 GB, free: 83.68 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.577e-05/2.994, allocations: 0 / 0.9915 GB, free: 83.68 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01246/3.007, allocations: 4.247 MB / 0.9956 GB, free: 82.12 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006023/3.013, allocations: 0.6398 MB / 0.9963 GB, free: 81.86 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5048/3.518, allocations: 144.4 MB / 1.137 GB, free: 111.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0109/3.529, allocations: 4.743 MB / 1.142 GB, free: 111 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01187/3.541, allocations: 2.736 MB / 1.145 GB, free: 111 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007896/3.549, allocations: 2.907 MB / 1.147 GB, free: 111 MB / 0.5261 GB Notification: Performance of SimCode: time 1.663e-06/3.549, allocations: 0 / 1.147 GB, free: 111 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3093/3.858, allocations: 121.7 MB / 1.266 GB, free: 36.34 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001928/3.858, allocations: 196.1 kB / 1.266 GB, free: 36.09 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.459/10.32, allocations: 4 kB / 1.266 GB, free: 36.09 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat