Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.Torque.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.Torque,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Forces_Torque",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.009854/0.009854, allocations: 165.5 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.64/1.64, allocations: 170.8 MB / 186.6 MB, free: 1.125 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.002087/0.002086, allocations: 106.5 kB / 226.2 MB, free: 10.1 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.4947/0.4947, allocations: 38.06 MB / 303.7 MB, free: 42.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005017/0.0005017, allocations: 12 kB / 363 MB, free: 5.496 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1146, allocations: 48.71 MB / 411.7 MB, free: 4.711 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4574/0.5721, allocations: 94.68 MB / 0.4945 GB, free: 9.289 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002903/0.5725, allocations: 79.42 kB / 0.4946 GB, free: 9.246 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9066/1.479, allocations: 131.7 MB / 0.6232 GB, free: 71.73 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.056e-06/1.479, allocations: 0 / 0.6232 GB, free: 71.73 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004977/1.48, allocations: 127.8 kB / 0.6233 GB, free: 71.73 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: 2384 * Number of variables: 2384 Notification: Performance of Generate backend data structure: time 0.03359/1.513, allocations: 7.179 MB / 0.6303 GB, free: 68.88 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.843e-05/1.513, allocations: 9 kB / 0.6304 GB, free: 68.88 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006616/1.52, allocations: 1.19 MB / 0.6315 GB, free: 68.78 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05411/1.574, allocations: 7.134 MB / 0.6385 GB, free: 68.3 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02675/1.601, allocations: 7.459 MB / 0.6458 GB, free: 67.4 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005685/1.602, allocations: 0.4984 MB / 0.6463 GB, free: 67.38 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003818/1.605, allocations: 0.6634 MB / 0.6469 GB, free: 67.37 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04844/1.654, allocations: 16.19 MB / 0.6627 GB, free: 60.45 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004529/1.654, allocations: 98.92 kB / 0.6628 GB, free: 60.4 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003037/1.657, allocations: 328 kB / 0.6631 GB, free: 60.22 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003223/1.661, allocations: 1.541 MB / 0.6646 GB, free: 59.93 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03998/1.701, allocations: 13.13 MB / 0.6774 GB, free: 55.78 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1126/1.813, allocations: 72.94 MB / 0.7487 GB, free: 7.176 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03814/1.852, allocations: 6.509 MB / 0.755 GB, free: 0.5078 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3732/2.225, allocations: 9.261 MB / 0.7641 GB, free: 81.28 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.664e-05/2.225, allocations: 69.09 kB / 0.7641 GB, free: 81.24 MB / 442.7 MB Notification: Performance of pre-optimization done (n=269): time 7.163e-06/2.225, allocations: 3.938 kB / 0.7642 GB, free: 81.24 MB / 442.7 MB Notification: Performance of matching and sorting (n=311): time 0.1687/2.394, allocations: 30.09 MB / 0.7935 GB, free: 75.51 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001447/2.394, allocations: 242.2 kB / 0.7938 GB, free: 75.25 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.04118/2.435, allocations: 6.172 MB / 0.7998 GB, free: 74.74 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001125/2.436, allocations: 76.23 kB / 0.7999 GB, free: 74.71 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.006426/2.443, allocations: 4.822 MB / 0.8046 GB, free: 71.16 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002714/2.445, allocations: 1.183 MB / 0.8057 GB, free: 70.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001798/2.447, allocations: 174.9 kB / 0.8059 GB, free: 70.16 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0009752/2.448, allocations: 0.6853 MB / 0.8066 GB, free: 69.69 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01356/2.462, allocations: 3.571 MB / 0.8101 GB, free: 68.49 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01863/2.481, allocations: 8.848 MB / 0.8187 GB, free: 60.23 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01743/2.498, allocations: 5.5 MB / 0.8241 GB, free: 58.35 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001853/2.498, allocations: 53.16 kB / 0.8241 GB, free: 58.35 MB / 442.7 MB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.04558/2.544, allocations: 13.68 MB / 0.8375 GB, free: 53.69 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001353/2.544, allocations: 92.81 kB / 0.8376 GB, free: 53.68 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002588/2.544, allocations: 188.4 kB / 0.8377 GB, free: 53.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007075/2.552, allocations: 1.701 MB / 0.8394 GB, free: 53.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01391/2.565, allocations: 2.133 MB / 0.8415 GB, free: 53.15 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02202/2.588, allocations: 11.66 MB / 0.8529 GB, free: 46.98 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01109/2.599, allocations: 0.537 MB / 0.8534 GB, free: 46.81 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001796/2.601, allocations: 0.5373 MB / 0.8539 GB, free: 46.74 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 850 * Number of states: 0 () * Number of discrete variables: 60 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.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 (1104): * Single equations (assignments): 1099 * 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%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008592/2.609, allocations: 3.234 MB / 0.8571 GB, free: 45.24 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001789/2.611, allocations: 0.5894 MB / 0.8577 GB, free: 44.91 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01958/2.631, allocations: 6.75 MB / 0.8642 GB, free: 42.02 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.398e-05/2.631, allocations: 32 kB / 0.8643 GB, free: 41.99 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.771e-05/2.631, allocations: 9.938 kB / 0.8643 GB, free: 41.98 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.114e-05/2.631, allocations: 19.52 kB / 0.8643 GB, free: 41.98 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05229/2.683, allocations: 15.18 MB / 0.8791 GB, free: 29.74 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.649e-05/2.683, allocations: 8 kB / 0.8791 GB, free: 29.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008832/2.692, allocations: 0.5584 MB / 0.8797 GB, free: 29.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008502/2.701, allocations: 1.423 MB / 0.8811 GB, free: 28.31 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009081/2.702, allocations: 56 kB / 0.8811 GB, free: 28.26 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02097/2.723, allocations: 10.82 MB / 0.8917 GB, free: 18.61 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/2.723, allocations: 7.938 kB / 0.8917 GB, free: 18.6 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0277/2.75, allocations: 11.83 MB / 0.9033 GB, free: 8.09 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006489/2.757, allocations: 1.151 MB / 0.9044 GB, free: 7.016 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003238/2.76, allocations: 55.28 kB / 0.9044 GB, free: 6.965 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008574/2.769, allocations: 209.8 kB / 0.9046 GB, free: 6.832 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001787/2.771, allocations: 194.2 kB / 0.9048 GB, free: 6.707 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008482/2.772, allocations: 83.38 kB / 0.9049 GB, free: 6.629 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01721/2.789, allocations: 4.415 MB / 0.9092 GB, free: 3.016 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.483e-06/2.789, allocations: 4 kB / 0.9092 GB, free: 3.012 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01771/2.807, allocations: 1.651 MB / 0.9108 GB, free: 1.371 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.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 (254): * Single equations (assignments): 249 * 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 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.389/3.196, allocations: 13.35 MB / 0.9239 GB, free: 83.84 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02139/3.217, allocations: 8.8 MB / 0.9325 GB, free: 83.56 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.938e-06/3.217, allocations: 2.906 kB / 0.9325 GB, free: 83.56 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008986/3.226, allocations: 3.38 MB / 0.9358 GB, free: 83.29 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006299/3.232, allocations: 0.705 MB / 0.9364 GB, free: 83.26 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5549/3.787, allocations: 194.1 MB / 1.126 GB, free: 167.4 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01555/3.803, allocations: 5.022 MB / 1.131 GB, free: 166.6 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.01542/3.819, allocations: 2.976 MB / 1.134 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008925/3.828, allocations: 3.223 MB / 1.137 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of SimCode: time 1.132e-06/3.828, allocations: 0 / 1.137 GB, free: 166.5 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3281/4.156, allocations: 132.4 MB / 1.266 GB, free: 76.57 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002832/4.156, allocations: 192.4 kB / 1.266 GB, free: 76.32 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.185/12.34, allocations: 0 / 1.266 GB, free: 76.32 MB / 0.5261 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.Torque_res.mat does not exist to compare? outputFormat=mat