Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.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.ForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_MultiBody_Forces_ForceWithTwoMasses",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.01362/0.01362, allocations: 176.1 kB / 15.12 MB, free: 5.984 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.004/2.004, allocations: 194.5 MB / 210.3 MB, free: 8.582 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.002153/0.002153, allocations: 120.6 kB / 255.6 MB, free: 11.2 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.4434/0.4434, allocations: 40.01 MB / 340.8 MB, free: 11.52 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005127/0.0005128, allocations: 16.98 kB / 406.3 MB, free: 51.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1164, allocations: 54.87 MB / 461.1 MB, free: 3.297 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5506/0.667, allocations: 99.86 MB / 0.5479 GB, free: 21.41 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000317/0.6674, allocations: 77.27 kB / 0.5479 GB, free: 21.41 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3454/1.013, allocations: 76.34 MB / 0.6225 GB, free: 3.789 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.925e-06/1.013, allocations: 0 / 0.6225 GB, free: 3.789 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003094/1.013, allocations: 76 kB / 0.6226 GB, free: 3.715 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1315 * Number of variables: 1315 Notification: Performance of Generate backend data structure: time 0.01767/1.031, allocations: 3.843 MB / 0.6263 GB, free: 104 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.95e-05/1.031, allocations: 8.031 kB / 0.6263 GB, free: 96 kB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003513/1.034, allocations: 0.6613 MB / 0.627 GB, free: 15.67 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03445/1.069, allocations: 4.32 MB / 0.6312 GB, free: 11.66 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02025/1.089, allocations: 4.492 MB / 0.6356 GB, free: 7.98 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004553/1.09, allocations: 279.5 kB / 0.6358 GB, free: 7.766 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002383/1.092, allocations: 363.8 kB / 0.6362 GB, free: 7.41 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03085/1.123, allocations: 9.14 MB / 0.6451 GB, free: 13.26 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000367/1.124, allocations: 55.47 kB / 0.6452 GB, free: 13.21 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002084/1.126, allocations: 183.9 kB / 0.6453 GB, free: 13.03 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002344/1.128, allocations: 0.8843 MB / 0.6462 GB, free: 12.14 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02551/1.154, allocations: 7.317 MB / 0.6533 GB, free: 4.82 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0758/1.229, allocations: 44.06 MB / 0.6964 GB, free: 7.199 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01718/1.247, allocations: 3.498 MB / 0.6998 GB, free: 3.555 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02127/1.268, allocations: 7.198 MB / 0.7068 GB, free: 12.09 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.013e-05/1.268, allocations: 47.56 kB / 0.7069 GB, free: 12.03 MB / 490.7 MB Notification: Performance of pre-optimization done (n=150): time 5.37e-06/1.268, allocations: 0 / 0.7069 GB, free: 12.03 MB / 490.7 MB Notification: Performance of matching and sorting (n=184): time 0.503/1.771, allocations: 19.6 MB / 0.726 GB, free: 125 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.818e-05/1.771, allocations: 198.7 kB / 0.7262 GB, free: 124.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01012/1.781, allocations: 3.3 MB / 0.7294 GB, free: 124.5 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004949/1.782, allocations: 50.39 kB / 0.7295 GB, free: 124.4 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003239/1.785, allocations: 2.82 MB / 0.7322 GB, free: 123.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001333/1.787, allocations: 0.7101 MB / 0.7329 GB, free: 122.8 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008332/1.787, allocations: 113.6 kB / 0.733 GB, free: 122.8 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0005003/1.788, allocations: 0.5497 MB / 0.7336 GB, free: 122.4 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006321/1.794, allocations: 2.004 MB / 0.7355 GB, free: 122.4 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008838/1.803, allocations: 5.531 MB / 0.7409 GB, free: 117.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007559/1.811, allocations: 3.265 MB / 0.7441 GB, free: 117.8 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001239/1.811, allocations: 33.75 kB / 0.7441 GB, free: 117.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=758) (initialization): time 0.03177/1.843, allocations: 9.123 MB / 0.753 GB, free: 117 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/1.843, allocations: 60.66 kB / 0.7531 GB, free: 117 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002006/1.843, allocations: 128.6 kB / 0.7532 GB, free: 117 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01/1.853, allocations: 1.595 MB / 0.7548 GB, free: 117 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007656/1.861, allocations: 1.281 MB / 0.756 GB, free: 116.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02485/1.886, allocations: 9.557 MB / 0.7654 GB, free: 113.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006672/1.893, allocations: 305.7 kB / 0.7657 GB, free: 113.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001336/1.894, allocations: 358 kB / 0.766 GB, free: 113.1 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 569 * Number of states: 0 () * Number of discrete variables: 33 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.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 (691): * Single equations (assignments): 687 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005399/1.899, allocations: 1.899 MB / 0.7679 GB, free: 112.2 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009991/1.9, allocations: 329 kB / 0.7682 GB, free: 112 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01697/1.917, allocations: 3.929 MB / 0.772 GB, free: 110.8 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.773e-05/1.917, allocations: 20.8 kB / 0.772 GB, free: 110.8 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.041e-05/1.917, allocations: 7.156 kB / 0.772 GB, free: 110.8 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.242e-05/1.918, allocations: 11.56 kB / 0.772 GB, free: 110.8 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03031/1.948, allocations: 8.121 MB / 0.78 GB, free: 108 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.414e-05/1.948, allocations: 4 kB / 0.78 GB, free: 108 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002401/1.95, allocations: 240.2 kB / 0.7802 GB, free: 108 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008859/1.959, allocations: 1.281 MB / 0.7815 GB, free: 107.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004326/1.96, allocations: 37.25 kB / 0.7815 GB, free: 107.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02156/1.981, allocations: 7.829 MB / 0.7891 GB, free: 104 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.548e-06/1.981, allocations: 3.984 kB / 0.7891 GB, free: 104 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02191/2.003, allocations: 6.32 MB / 0.7953 GB, free: 100.9 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002402/2.006, allocations: 0.6013 MB / 0.7959 GB, free: 100.3 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009699/2.007, allocations: 28 kB / 0.7959 GB, free: 100.3 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002791/2.01, allocations: 95.98 kB / 0.796 GB, free: 100.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005402/2.01, allocations: 119.7 kB / 0.7961 GB, free: 100.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001955/2.01, allocations: 45.25 kB / 0.7962 GB, free: 100.1 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005404/2.016, allocations: 2.296 MB / 0.7984 GB, free: 98.21 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.92e-07/2.016, allocations: 0 / 0.7984 GB, free: 98.21 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007156/2.023, allocations: 0.9687 MB / 0.7994 GB, free: 97.25 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.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 (129): * Single equations (assignments): 125 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02124/2.044, allocations: 7.136 MB / 0.8063 GB, free: 91.11 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01198/2.056, allocations: 4.989 MB / 0.8112 GB, free: 86.72 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/2.056, allocations: 0 / 0.8112 GB, free: 86.72 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003947/2.06, allocations: 1.636 MB / 0.8128 GB, free: 85.26 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003074/2.063, allocations: 356.1 kB / 0.8131 GB, free: 84.95 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4505/2.514, allocations: 118.2 MB / 0.9285 GB, free: 94.81 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006695/2.521, allocations: 3.032 MB / 0.9315 GB, free: 94.03 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.009045/2.53, allocations: 1.812 MB / 0.9333 GB, free: 93.98 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003229/2.533, allocations: 1.643 MB / 0.9349 GB, free: 93.98 MB / 490.7 MB Notification: Performance of SimCode: time 1.192e-06/2.533, allocations: 0 / 0.9349 GB, free: 93.98 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1637/2.697, allocations: 74.27 MB / 1.007 GB, free: 56.03 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002297/2.697, allocations: 198.3 kB / 1.008 GB, free: 55.79 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.223/7.92, allocations: 0 / 1.008 GB, free: 55.79 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat