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.009911/0.009911, allocations: 165.2 kB / 15.11 MB, free: 5.984 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.839/1.839, allocations: 170.8 MB / 186.6 MB, free: 1.129 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.002/0.002, allocations: 99.34 kB / 226.2 MB, free: 10.11 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.49/0.49, allocations: 38.05 MB / 303.7 MB, free: 42.5 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004976/0.0004972, allocations: 15.98 kB / 363 MB, free: 5.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1096, allocations: 48.71 MB / 411.7 MB, free: 4.727 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4903/0.5999, allocations: 92.49 MB / 0.4924 GB, free: 11.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002555/0.6002, allocations: 77.78 kB / 0.4924 GB, free: 11.53 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8699/1.47, allocations: 128.5 MB / 0.6179 GB, free: 77.15 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.154e-06/1.47, allocations: 1.062 kB / 0.6179 GB, free: 77.15 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004095/1.471, allocations: 114.4 kB / 0.618 GB, free: 77.15 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: 2208 * Number of variables: 2208 Notification: Performance of Generate backend data structure: time 0.02976/1.5, allocations: 6.685 MB / 0.6245 GB, free: 74.5 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.143e-05/1.5, allocations: 8.406 kB / 0.6245 GB, free: 74.5 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00602/1.506, allocations: 1.099 MB / 0.6256 GB, free: 74.41 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05048/1.557, allocations: 6.447 MB / 0.6319 GB, free: 73.97 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02948/1.587, allocations: 8.598 MB / 0.6403 GB, free: 73.14 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005799/1.587, allocations: 439.9 kB / 0.6407 GB, free: 73.13 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004059/1.591, allocations: 0.5808 MB / 0.6413 GB, free: 73.12 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05159/1.643, allocations: 15.41 MB / 0.6563 GB, free: 69.54 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004462/1.643, allocations: 56.58 kB / 0.6564 GB, free: 69.51 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003055/1.646, allocations: 266.9 kB / 0.6567 GB, free: 69.36 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004084/1.651, allocations: 1.696 MB / 0.6583 GB, free: 69.07 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04811/1.699, allocations: 14.83 MB / 0.6728 GB, free: 64.71 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1226/1.821, allocations: 56.26 MB / 0.7277 GB, free: 15.27 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03058/1.852, allocations: 8.01 MB / 0.7356 GB, free: 7.023 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002877/1.855, allocations: 2.204 MB / 0.7377 GB, free: 4.449 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.968e-05/1.855, allocations: 61.08 kB / 0.7378 GB, free: 4.379 MB / 426.7 MB Notification: Performance of pre-optimization done (n=367): time 9.238e-06/1.855, allocations: 4 kB / 0.7378 GB, free: 4.375 MB / 426.7 MB Notification: Performance of matching and sorting (n=419): time 0.5077/2.363, allocations: 39.66 MB / 0.7765 GB, free: 66.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.288e-05/2.363, allocations: 118.5 kB / 0.7766 GB, free: 66.49 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0109/2.374, allocations: 3.858 MB / 0.7804 GB, free: 66.12 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001178/2.375, allocations: 86.3 kB / 0.7805 GB, free: 66.09 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003624/2.379, allocations: 3.905 MB / 0.7843 GB, free: 64.28 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00282/2.382, allocations: 1.489 MB / 0.7857 GB, free: 63.38 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001702/2.383, allocations: 150.7 kB / 0.7859 GB, free: 63.32 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007367/2.384, allocations: 0.6351 MB / 0.7865 GB, free: 62.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01002/2.394, allocations: 3.888 MB / 0.7903 GB, free: 61.63 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01293/2.407, allocations: 7.667 MB / 0.7978 GB, free: 55.43 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01448/2.422, allocations: 5.438 MB / 0.8031 GB, free: 53.59 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001612/2.422, allocations: 43.34 kB / 0.8031 GB, free: 53.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=1017) (initialization): time 0.05883/2.481, allocations: 14.06 MB / 0.8169 GB, free: 49.24 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000152/2.481, allocations: 64.44 kB / 0.8169 GB, free: 49.24 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000266/2.481, allocations: 130 kB / 0.8171 GB, free: 49.24 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01779/2.499, allocations: 2.636 MB / 0.8196 GB, free: 48.88 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0141/2.513, allocations: 1.942 MB / 0.8215 GB, free: 48.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0308/2.544, allocations: 14.07 MB / 0.8353 GB, free: 42.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01039/2.555, allocations: 484.5 kB / 0.8357 GB, free: 42.02 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002708/2.557, allocations: 434.4 kB / 0.8361 GB, free: 41.96 MB / 426.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.009902/2.567, allocations: 2.91 MB / 0.839 GB, free: 40.69 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001717/2.569, allocations: 465 kB / 0.8394 GB, free: 40.44 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03363/2.603, allocations: 10.43 MB / 0.8496 GB, free: 34.25 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001575/2.603, allocations: 57.02 kB / 0.8497 GB, free: 34.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.525e-05/2.603, allocations: 15.89 kB / 0.8497 GB, free: 34.19 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001359/2.603, allocations: 14.44 kB / 0.8497 GB, free: 34.19 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06061/2.664, allocations: 21.05 MB / 0.8703 GB, free: 17.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.552e-05/2.664, allocations: 12 kB / 0.8703 GB, free: 17.08 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007254/2.671, allocations: 0.793 MB / 0.871 GB, free: 16.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01265/2.684, allocations: 2.404 MB / 0.8734 GB, free: 14.94 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009272/2.685, allocations: 81.69 kB / 0.8735 GB, free: 14.87 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02673/2.712, allocations: 12.83 MB / 0.886 GB, free: 2.734 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-05/2.712, allocations: 19.89 kB / 0.886 GB, free: 2.715 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3782/3.09, allocations: 16.23 MB / 0.9019 GB, free: 72.74 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005186/3.095, allocations: 1.155 MB / 0.903 GB, free: 72.65 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002136/3.097, allocations: 78.58 kB / 0.9031 GB, free: 72.65 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006389/3.104, allocations: 293.5 kB / 0.9034 GB, free: 72.65 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001861/3.106, allocations: 265.8 kB / 0.9036 GB, free: 72.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006572/3.106, allocations: 112.4 kB / 0.9037 GB, free: 72.64 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.008434/3.115, allocations: 2.711 MB / 0.9064 GB, free: 72.46 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.42e-07/3.115, allocations: 0 / 0.9064 GB, free: 72.46 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0114/3.126, allocations: 1.648 MB / 0.908 GB, free: 72.46 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.04507/3.171, allocations: 19.46 MB / 0.927 GB, free: 67.12 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02516/3.196, allocations: 9.707 MB / 0.9365 GB, free: 66.77 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.115e-05/3.197, allocations: 5.688 kB / 0.9365 GB, free: 66.77 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01215/3.209, allocations: 4.247 MB / 0.9406 GB, free: 66.49 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0066/3.215, allocations: 0.6321 MB / 0.9412 GB, free: 66.47 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1716/3.387, allocations: 144.4 MB / 1.082 GB, free: 9.441 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01125/3.398, allocations: 4.742 MB / 1.087 GB, free: 7.887 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01248/3.411, allocations: 2.735 MB / 1.09 GB, free: 7.703 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008025/3.419, allocations: 2.904 MB / 1.092 GB, free: 5.312 MB / 0.4948 GB Notification: Performance of SimCode: time 1.042e-06/3.419, allocations: 0 / 1.092 GB, free: 5.312 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6066/4.026, allocations: 121.9 MB / 1.211 GB, free: 108.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000201/4.026, allocations: 192 kB / 1.212 GB, free: 108.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.568/10.59, allocations: 0 / 1.212 GB, free: 108.1 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.Revolute2_res.mat does not exist to compare? outputFormat=mat