Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses2",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.01029/0.01029, allocations: 176.1 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.048/2.048, 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.002022/0.002022, allocations: 124.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.2604/0.2604, allocations: 40.01 MB / 340.8 MB, free: 11.4 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000495/0.0004951, allocations: 13.09 kB / 406.3 MB, free: 51.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1207, allocations: 54.88 MB / 461.1 MB, free: 3.18 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5667/0.6875, allocations: 105.7 MB / 0.5536 GB, free: 21.39 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002806/0.6878, allocations: 75.48 kB / 0.5537 GB, free: 21.39 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5976/1.285, allocations: 135.7 MB / 0.6862 GB, free: 3.875 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.056e-06/1.286, allocations: 0 / 0.6862 GB, free: 3.875 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0005561/1.286, allocations: 124 kB / 0.6863 GB, free: 3.754 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.03611/1.322, allocations: 7.659 MB / 0.6938 GB, free: 12.01 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.836e-05/1.322, allocations: 12.03 kB / 0.6938 GB, free: 12 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006255/1.329, allocations: 1.138 MB / 0.6949 GB, free: 10.85 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05985/1.388, allocations: 7.557 MB / 0.7023 GB, free: 3.27 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03865/1.427, allocations: 9.834 MB / 0.7119 GB, free: 9.352 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007653/1.428, allocations: 488.9 kB / 0.7124 GB, free: 8.871 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003917/1.432, allocations: 0.6519 MB / 0.713 GB, free: 8.219 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4249/1.857, allocations: 16.7 MB / 0.7293 GB, free: 81.74 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007989/1.858, allocations: 99.45 kB / 0.7294 GB, free: 81.74 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003688/1.861, allocations: 311.5 kB / 0.7297 GB, free: 81.74 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004641/1.866, allocations: 1.576 MB / 0.7312 GB, free: 81.72 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04934/1.915, allocations: 13.74 MB / 0.7447 GB, free: 81.67 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1176/2.033, allocations: 74.27 MB / 0.8172 GB, free: 53.07 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03945/2.073, allocations: 7.699 MB / 0.8247 GB, free: 50.76 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04583/2.118, allocations: 18.62 MB / 0.8429 GB, free: 41.05 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.938e-05/2.119, allocations: 70.17 kB / 0.843 GB, free: 41 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=280): time 6.603e-06/2.119, allocations: 0 / 0.843 GB, free: 41 MB / 0.4948 GB Notification: Performance of matching and sorting (n=361): time 0.308/2.427, allocations: 49.41 MB / 0.8912 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002014/2.427, allocations: 273.7 kB / 0.8915 GB, free: 13.39 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01634/2.443, allocations: 5.385 MB / 0.8967 GB, free: 8.949 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.00105/2.444, allocations: 77.7 kB / 0.8968 GB, free: 8.867 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.006503/2.451, allocations: 4.755 MB / 0.9014 GB, free: 4.594 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.003216/2.454, allocations: 1.334 MB / 0.9027 GB, free: 3.414 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001841/2.456, allocations: 184 kB / 0.9029 GB, free: 3.234 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.001084/2.457, allocations: 0.6985 MB / 0.9036 GB, free: 2.641 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02205/2.479, allocations: 4.006 MB / 0.9075 GB, free: 0 / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3804/2.86, allocations: 8.956 MB / 0.9163 GB, free: 92.68 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01573/2.875, allocations: 5.645 MB / 0.9218 GB, free: 92.62 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003341/2.876, allocations: 52.06 kB / 0.9218 GB, free: 92.62 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.06216/2.938, allocations: 16.69 MB / 0.9381 GB, free: 92.03 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001606/2.938, allocations: 82.88 kB / 0.9382 GB, free: 92.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002927/2.939, allocations: 181.5 kB / 0.9384 GB, free: 92.03 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02457/2.963, allocations: 4.171 MB / 0.9424 GB, free: 91.99 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01329/2.977, allocations: 2.033 MB / 0.9444 GB, free: 91.82 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07667/3.053, allocations: 22.91 MB / 0.9668 GB, free: 88.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01746/3.071, allocations: 0.548 MB / 0.9673 GB, free: 88.34 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003291/3.074, allocations: 0.526 MB / 0.9679 GB, free: 88.27 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * Number of states: 0 () * Number of discrete variables: 63 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.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 (1077): * Single equations (assignments): 1072 * Array equations: 3 * 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%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01414/3.088, allocations: 3.124 MB / 0.9709 GB, free: 86.96 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002372/3.091, allocations: 0.5704 MB / 0.9715 GB, free: 86.96 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04802/3.139, allocations: 9.82 MB / 0.9811 GB, free: 83.87 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001049/3.139, allocations: 35.75 kB / 0.9811 GB, free: 83.87 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.153e-05/3.139, allocations: 18.62 kB / 0.9811 GB, free: 83.87 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.729e-05/3.139, allocations: 25.34 kB / 0.9811 GB, free: 83.87 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0672/3.206, allocations: 19.18 MB / 0.9999 GB, free: 77.39 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.127e-05/3.206, allocations: 0 / 0.9999 GB, free: 77.39 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005275/3.212, allocations: 0.5002 MB / 1 GB, free: 77.35 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02335/3.235, allocations: 3.669 MB / 1.004 GB, free: 76.8 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001104/3.236, allocations: 59.41 kB / 1.004 GB, free: 76.77 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04881/3.285, allocations: 19.79 MB / 1.023 GB, free: 63.7 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/3.285, allocations: 3.141 kB / 1.023 GB, free: 63.7 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04652/3.332, allocations: 14.28 MB / 1.037 GB, free: 52.01 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004592/3.336, allocations: 1.11 MB / 1.038 GB, free: 50.99 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002169/3.339, allocations: 60 kB / 1.038 GB, free: 50.93 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006449/3.345, allocations: 239.9 kB / 1.039 GB, free: 50.78 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001418/3.347, allocations: 224.2 kB / 1.039 GB, free: 50.64 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004265/3.347, allocations: 95.2 kB / 1.039 GB, free: 50.55 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01203/3.359, allocations: 3.783 MB / 1.043 GB, free: 47.46 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.72e-07/3.359, allocations: 2.875 kB / 1.043 GB, free: 47.46 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.0165/3.376, allocations: 1.844 MB / 1.044 GB, free: 45.63 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (264): * Single equations (assignments): 259 * Array equations: 3 * 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 {(2,100.0%) 43,(1,100.0%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.06239/3.438, allocations: 15.13 MB / 1.059 GB, free: 33.09 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0234/3.462, allocations: 9.627 MB / 1.069 GB, free: 24.61 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/3.462, allocations: 3.391 kB / 1.069 GB, free: 24.61 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.009436/3.471, allocations: 3.751 MB / 1.072 GB, free: 21.29 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005944/3.477, allocations: 0.7151 MB / 1.073 GB, free: 20.69 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6669/4.144, allocations: 191 MB / 1.26 GB, free: 35.79 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01224/4.156, allocations: 5.005 MB / 1.264 GB, free: 34.93 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.01346/4.17, allocations: 2.787 MB / 1.267 GB, free: 34.74 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008042/4.178, allocations: 3.256 MB / 1.27 GB, free: 34.73 MB / 0.5886 GB Notification: Performance of SimCode: time 1.743e-06/4.178, allocations: 0 / 1.27 GB, free: 34.73 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7093/4.887, allocations: 141.7 MB / 1.409 GB, free: 170.3 MB / 0.5886 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002552/4.888, allocations: 200.5 kB / 1.409 GB, free: 170.1 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.296/13.18, allocations: 0 / 1.409 GB, free: 170.1 MB / 0.5886 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat