Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.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.Forces.ForceWithTwoMasses2,fileNamePrefix="ModelicaTest_3_2_1_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.1+maint.om/package.mo): time 0.01365/0.01365, allocations: 165 kB / 15.11 MB, free: 5.934 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.75/1.75, allocations: 170.8 MB / 186.6 MB, free: 1.121 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.001981/0.00198, allocations: 111 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.453/0.453, allocations: 38.06 MB / 303.7 MB, free: 42.35 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004764/0.0004764, allocations: 8 kB / 363 MB, free: 5.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1125, allocations: 48.71 MB / 411.7 MB, free: 4.727 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4544/0.5669, allocations: 98.91 MB / 0.4986 GB, free: 5.094 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/0.5672, allocations: 76.41 kB / 0.4987 GB, free: 5.055 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9342/1.501, allocations: 135.6 MB / 0.6311 GB, free: 73.14 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.327e-06/1.502, allocations: 5.344 kB / 0.6311 GB, free: 73.14 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009533/1.503, allocations: 134.9 kB / 0.6312 GB, free: 73.13 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: 2291 * Number of variables: 2291 Notification: Performance of Generate backend data structure: time 0.05156/1.554, allocations: 7.641 MB / 0.6387 GB, free: 70.21 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.995e-05/1.554, allocations: 11.66 kB / 0.6387 GB, free: 70.21 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00554/1.56, allocations: 1.138 MB / 0.6398 GB, free: 70.12 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05851/1.618, allocations: 7.555 MB / 0.6472 GB, free: 69.64 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03468/1.653, allocations: 9.829 MB / 0.6568 GB, free: 68.59 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007074/1.654, allocations: 489.9 kB / 0.6573 GB, free: 68.57 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004145/1.658, allocations: 0.6515 MB / 0.6579 GB, free: 68.56 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05549/1.713, allocations: 16.7 MB / 0.6742 GB, free: 60.27 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007827/1.714, allocations: 99.06 kB / 0.6743 GB, free: 60.22 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003581/1.718, allocations: 314.2 kB / 0.6746 GB, free: 60.05 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003904/1.722, allocations: 1.577 MB / 0.6762 GB, free: 59.76 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04759/1.77, allocations: 13.73 MB / 0.6896 GB, free: 53.95 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4877/2.257, allocations: 74.23 MB / 0.7621 GB, free: 38.58 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04185/2.299, allocations: 7.692 MB / 0.7696 GB, free: 37.89 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04567/2.345, allocations: 18.62 MB / 0.7878 GB, free: 33.56 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.426e-05/2.345, allocations: 69.31 kB / 0.7878 GB, free: 33.52 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 6.903e-06/2.345, allocations: 0 / 0.7878 GB, free: 33.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=361): time 0.3132/2.658, allocations: 49.42 MB / 0.8361 GB, free: 25.95 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/2.659, allocations: 281.3 kB / 0.8364 GB, free: 25.66 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01367/2.672, allocations: 5.383 MB / 0.8416 GB, free: 23.87 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001057/2.673, allocations: 83.86 kB / 0.8417 GB, free: 23.8 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004766/2.678, allocations: 4.757 MB / 0.8463 GB, free: 20.14 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002506/2.681, allocations: 1.326 MB / 0.8476 GB, free: 19.16 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00176/2.682, allocations: 179.8 kB / 0.8478 GB, free: 19.02 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0009735/2.683, allocations: 0.6938 MB / 0.8485 GB, free: 18.54 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01421/2.698, allocations: 3.782 MB / 0.8522 GB, free: 17.27 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.04216/2.74, allocations: 8.964 MB / 0.8609 GB, free: 9.043 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03043/2.77, allocations: 5.622 MB / 0.8664 GB, free: 4.707 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002363/2.771, allocations: 52 kB / 0.8665 GB, free: 4.656 MB / 442.7 MB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.07614/2.847, allocations: 16.95 MB / 0.883 GB, free: 8.145 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001805/2.847, allocations: 84 kB / 0.8831 GB, free: 8.062 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003844/2.848, allocations: 180 kB / 0.8833 GB, free: 7.887 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02615/2.874, allocations: 4.17 MB / 0.8873 GB, free: 5.027 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01439/2.888, allocations: 2.028 MB / 0.8893 GB, free: 3.262 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0669/2.955, allocations: 22.97 MB / 0.9118 GB, free: 13.82 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0117/2.967, allocations: 0.5509 MB / 0.9123 GB, free: 13.27 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002473/2.969, allocations: 0.5243 MB / 0.9128 GB, free: 12.75 MB / 490.7 MB 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.01104/2.98, allocations: 3.119 MB / 0.9159 GB, free: 9.629 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002593/2.983, allocations: 0.5708 MB / 0.9164 GB, free: 9.051 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04998/3.033, allocations: 9.822 MB / 0.926 GB, free: 15.17 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.568e-05/3.033, allocations: 36 kB / 0.926 GB, free: 15.14 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.403e-05/3.033, allocations: 20 kB / 0.9261 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.951e-05/3.033, allocations: 15.94 kB / 0.9261 GB, free: 15.1 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0833/3.117, allocations: 19.19 MB / 0.9448 GB, free: 11.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.125e-05/3.117, allocations: 4 kB / 0.9448 GB, free: 11.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005563/3.122, allocations: 0.4953 MB / 0.9453 GB, free: 11.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02553/3.148, allocations: 3.677 MB / 0.9489 GB, free: 7.617 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001128/3.149, allocations: 61.16 kB / 0.949 GB, free: 7.559 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.422/3.571, allocations: 19.78 MB / 0.9683 GB, free: 145.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.541e-06/3.571, allocations: 3.688 kB / 0.9683 GB, free: 145.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06125/3.633, allocations: 14.27 MB / 0.9822 GB, free: 145.1 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004547/3.637, allocations: 1.113 MB / 0.9833 GB, free: 145 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002026/3.639, allocations: 57.56 kB / 0.9834 GB, free: 145 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006369/3.646, allocations: 238.8 kB / 0.9836 GB, free: 145 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001532/3.647, allocations: 230.5 kB / 0.9838 GB, free: 145 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000465/3.648, allocations: 90.03 kB / 0.9839 GB, free: 145 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01205/3.66, allocations: 3.787 MB / 0.9876 GB, free: 144.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.51e-07/3.66, allocations: 0 / 0.9876 GB, free: 144.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01292/3.673, allocations: 1.84 MB / 0.9894 GB, free: 144.8 MB / 0.5105 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.05083/3.724, allocations: 15.12 MB / 1.004 GB, free: 140.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0233/3.747, allocations: 9.636 MB / 1.014 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 8.676e-06/3.747, allocations: 0 / 1.014 GB, free: 137.3 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.008913/3.756, allocations: 3.744 MB / 1.017 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005997/3.762, allocations: 0.7157 MB / 1.018 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5776/4.34, allocations: 191 MB / 1.204 GB, free: 100.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01347/4.353, allocations: 5.004 MB / 1.209 GB, free: 99.36 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.01425/4.367, allocations: 2.786 MB / 1.212 GB, free: 99.3 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007768/4.375, allocations: 3.254 MB / 1.215 GB, free: 99.29 MB / 0.5105 GB Notification: Performance of SimCode: time 1.442e-06/4.375, allocations: 0 / 1.215 GB, free: 99.29 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6755/5.051, allocations: 141.7 MB / 1.354 GB, free: 126.2 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001941/5.051, allocations: 203 kB / 1.354 GB, free: 125.9 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.316/13.37, allocations: 4 kB / 1.354 GB, free: 125.9 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2_res.mat does not exist to compare? outputFormat=mat