Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.RelativeSensor.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.Sensors.RelativeSensor,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Sensors_RelativeSensor",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.01437/0.01437, allocations: 165.5 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.784/1.784, allocations: 170.8 MB / 186.6 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.002044/0.002043, allocations: 111.3 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.4651/0.4651, allocations: 38.06 MB / 303.7 MB, free: 42.46 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004944/0.0004944, allocations: 16 kB / 363 MB, free: 5.488 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1109, allocations: 48.7 MB / 411.7 MB, free: 4.711 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4882/0.5992, allocations: 98.8 MB / 0.4985 GB, free: 5.262 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003278/0.5996, allocations: 77.59 kB / 0.4986 GB, free: 5.223 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.275/1.874, allocations: 248.1 MB / 0.7408 GB, free: 5.332 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.626e-06/1.874, allocations: 0 / 0.7408 GB, free: 5.332 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001104/1.875, allocations: 375.9 kB / 0.7412 GB, free: 4.965 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: 5960 * Number of variables: 5960 Notification: Performance of Generate backend data structure: time 0.7682/2.644, allocations: 16.16 MB / 0.757 GB, free: 21.68 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.743e-05/2.644, allocations: 8.625 kB / 0.757 GB, free: 21.68 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01644/2.66, allocations: 3.065 MB / 0.76 GB, free: 21.49 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06006/2.72, allocations: 8.284 MB / 0.7681 GB, free: 20.46 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.045/2.765, allocations: 12.45 MB / 0.7802 GB, free: 19.08 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002618/2.768, allocations: 1.497 MB / 0.7817 GB, free: 19.04 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01033/2.778, allocations: 1.967 MB / 0.7836 GB, free: 19.03 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1517/2.93, allocations: 42.65 MB / 0.8252 GB, free: 10.54 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001732/2.932, allocations: 149.2 kB / 0.8254 GB, free: 10.52 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009073/2.941, allocations: 0.8835 MB / 0.8263 GB, free: 9.91 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004923/2.946, allocations: 2.377 MB / 0.8286 GB, free: 9.516 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1255/3.071, allocations: 34.47 MB / 0.8622 GB, free: 14.05 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6655/3.737, allocations: 146.7 MB / 1.006 GB, free: 18.46 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.1345/3.872, allocations: 22.51 MB / 1.027 GB, free: 16.07 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06221/3.934, allocations: 27.34 MB / 1.054 GB, free: 11.16 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.086e-05/3.934, allocations: 72.69 kB / 1.054 GB, free: 11.12 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=372): time 8.776e-06/3.934, allocations: 2.781 kB / 1.054 GB, free: 11.12 MB / 0.4949 GB Notification: Performance of matching and sorting (n=486): time 2.622/6.556, allocations: 300.3 MB / 1.347 GB, free: 102.6 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001432/6.556, allocations: 277.9 kB / 1.348 GB, free: 102.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02732/6.583, allocations: 9.039 MB / 1.357 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0028/6.586, allocations: 103.3 kB / 1.357 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.01114/6.597, allocations: 10.81 MB / 1.367 GB, free: 94.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.007476/6.605, allocations: 1.888 MB / 1.369 GB, free: 93.76 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007074/6.612, allocations: 338.9 kB / 1.369 GB, free: 93.76 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.003444/6.615, allocations: 1.036 MB / 1.37 GB, free: 93.41 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.05611/6.672, allocations: 15.92 MB / 1.386 GB, free: 87.03 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0475/6.719, allocations: 26.49 MB / 1.412 GB, free: 66.12 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.04398/6.763, allocations: 19.93 MB / 1.431 GB, free: 57.65 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004755/6.764, allocations: 107.9 kB / 1.431 GB, free: 57.65 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2206) (initialization): time 0.1233/6.887, allocations: 42.09 MB / 1.473 GB, free: 34.11 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002772/6.887, allocations: 168 kB / 1.473 GB, free: 33.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0007407/6.888, allocations: 381.4 kB / 1.473 GB, free: 33.58 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002734/6.891, allocations: 0.8695 MB / 1.474 GB, free: 32.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03958/6.931, allocations: 5.287 MB / 1.479 GB, free: 28.66 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4075/7.338, allocations: 5.76 MB / 1.485 GB, free: 88.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03116/7.369, allocations: 2.158 MB / 1.487 GB, free: 88.11 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.006262/7.376, allocations: 1.02 MB / 1.488 GB, free: 88.11 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1714 * Number of states: 0 () * Number of discrete variables: 45 (relativeSensor.arrowColor[3],relativeSensor.arrowColor[2],relativeSensor.arrowColor[1],relative_b1.arrowColor[3],relative_b1.arrowColor[2],relative_b1.arrowColor[1],relative_b2.arrowColor[3],relative_b2.arrowColor[2],relative_b2.arrowColor[1],relative_a2.arrowColor[3],relative_a2.arrowColor[2],relative_a2.arrowColor[1],relative_a1.arrowColor[3],relative_a1.arrowColor[2],relative_a1.arrowColor[1],BodyBox2.color[3],BodyBox2.color[2],BodyBox2.color[1],BodyBox2.body.sphereColor[3],BodyBox2.body.sphereColor[2],BodyBox2.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2150): * Single equations (assignments): 2140 * Array equations: 8 * 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%) 11,(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.02567/7.401, allocations: 7.84 MB / 1.495 GB, free: 87.79 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004517/7.406, allocations: 0.8683 MB / 1.496 GB, free: 87.79 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.08166/7.488, allocations: 30.25 MB / 1.526 GB, free: 87.54 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002442/7.488, allocations: 92.77 kB / 1.526 GB, free: 87.54 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.912e-05/7.488, allocations: 4.438 kB / 1.526 GB, free: 87.54 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001457/7.488, allocations: 25.83 kB / 1.526 GB, free: 87.54 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1606/7.649, allocations: 72.44 MB / 1.597 GB, free: 48.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.114e-05/7.649, allocations: 2.562 kB / 1.597 GB, free: 48.23 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.02361/7.672, allocations: 2.117 MB / 1.599 GB, free: 48.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001664/7.674, allocations: 315.5 kB / 1.599 GB, free: 48.12 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002351/7.677, allocations: 85.64 kB / 1.599 GB, free: 48.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006377/7.683, allocations: 4.404 MB / 1.603 GB, free: 44.81 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/7.683, allocations: 0 / 1.603 GB, free: 44.81 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1113/7.794, allocations: 50.78 MB / 1.653 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01404/7.808, allocations: 3.954 MB / 1.657 GB, free: 12.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005371/7.814, allocations: 73.95 kB / 1.657 GB, free: 12.21 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.02079/7.835, allocations: 1.635 MB / 1.659 GB, free: 11.34 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003976/7.839, allocations: 250.9 kB / 1.659 GB, free: 11.19 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002515/7.841, allocations: 133.2 kB / 1.659 GB, free: 11.07 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01827/7.859, allocations: 6.246 MB / 1.665 GB, free: 5.93 MB / 0.5105 GB Notification: Performance of sort global known variables: time 9.22e-07/7.86, allocations: 0 / 1.665 GB, free: 5.93 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02637/7.886, allocations: 4.296 MB / 1.669 GB, free: 1.703 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,revolute1.phi,revolute1.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 (444): * Single equations (assignments): 434 * Array equations: 8 * 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%) 8,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.5187/8.405, allocations: 51.69 MB / 1.72 GB, free: 85.28 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.07436/8.479, allocations: 35.14 MB / 1.754 GB, free: 71.34 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.111e-05/8.479, allocations: 0.625 kB / 1.754 GB, free: 71.34 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.03167/8.511, allocations: 14.98 MB / 1.769 GB, free: 64.44 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01246/8.523, allocations: 1.332 MB / 1.77 GB, free: 63.96 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.299/9.823, allocations: 432.6 MB / 2.192 GB, free: 120.3 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0321/9.855, allocations: 11.35 MB / 2.204 GB, free: 116.7 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.03783/9.893, allocations: 7.394 MB / 2.211 GB, free: 116.6 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02595/9.919, allocations: 7.669 MB / 2.218 GB, free: 110.1 MB / 0.6355 GB Notification: Performance of SimCode: time 1.613e-06/9.919, allocations: 1.281 kB / 2.218 GB, free: 110.1 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.441/11.36, allocations: 272.6 MB / 2.484 GB, free: 182.6 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002386/11.36, allocations: 203.4 kB / 2.485 GB, free: 182.4 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.85/23.21, allocations: 7.5 kB / 2.485 GB, free: 182.4 MB / 0.6355 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Sensors.RelativeSensor_res.mat does not exist to compare? outputFormat=mat