Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion.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.Rotational.TestBearingConversion,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Rotational_TestBearingConversion",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.01453/0.01453, allocations: 168.2 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.899/1.899, allocations: 170.8 MB / 186.6 MB, free: 1.129 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.001909/0.001908, allocations: 115.3 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.5342/0.5342, allocations: 38.06 MB / 303.7 MB, free: 42.41 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004727/0.0004728, allocations: 8 kB / 363 MB, free: 5.523 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1139, allocations: 48.71 MB / 411.7 MB, free: 4.734 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5287/0.6426, allocations: 90.08 MB / 0.49 GB, free: 13.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002677/0.643, allocations: 66.28 kB / 0.4901 GB, free: 13.54 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3146/0.9576, allocations: 63.86 MB / 0.5524 GB, free: 2.969 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.926e-06/0.9576, allocations: 0 / 0.5524 GB, free: 2.969 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002077/0.9579, allocations: 63.98 kB / 0.5525 GB, free: 2.906 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: 717 * Number of variables: 717 Notification: Performance of Generate backend data structure: time 0.01449/0.9724, allocations: 3.158 MB / 0.5556 GB, free: 15.68 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.939e-05/0.9724, allocations: 12.03 kB / 0.5556 GB, free: 15.67 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001908/0.9744, allocations: 392.3 kB / 0.556 GB, free: 15.28 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00303/0.9774, allocations: 411.9 kB / 0.5563 GB, free: 14.88 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00485/0.9823, allocations: 1.311 MB / 0.5576 GB, free: 13.51 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001577/0.9839, allocations: 0.5844 MB / 0.5582 GB, free: 12.86 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001492/0.9855, allocations: 319.5 kB / 0.5585 GB, free: 12.55 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01421/0.9997, allocations: 3.386 MB / 0.5618 GB, free: 9.051 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000323/1, allocations: 43.55 kB / 0.5619 GB, free: 9.008 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009245/1.001, allocations: 116 kB / 0.562 GB, free: 8.895 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.494e-05/1.001, allocations: 68 kB / 0.562 GB, free: 8.828 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01455/1.016, allocations: 3.559 MB / 0.5655 GB, free: 5.27 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02995/1.046, allocations: 9.626 MB / 0.5749 GB, free: 11.42 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01116/1.057, allocations: 3.134 MB / 0.578 GB, free: 8.117 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000593/1.058, allocations: 70.17 kB / 0.578 GB, free: 8.051 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001071/1.058, allocations: 75.62 kB / 0.5781 GB, free: 7.969 MB / 426.7 MB Notification: Performance of pre-optimization done (n=359): time 7.715e-06/1.058, allocations: 0 / 0.5781 GB, free: 7.969 MB / 426.7 MB Notification: Performance of matching and sorting (n=421): time 0.3616/1.419, allocations: 21.03 MB / 0.5986 GB, free: 86.67 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002193/1.42, allocations: 0.558 MB / 0.5992 GB, free: 86.04 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003776/1.423, allocations: 1.38 MB / 0.6005 GB, free: 85.88 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001111/1.425, allocations: 121.4 kB / 0.6007 GB, free: 85.85 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001008/1.426, allocations: 0.919 MB / 0.6016 GB, free: 85.55 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002286/1.428, allocations: 1.417 MB / 0.6029 GB, free: 84.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009324/1.429, allocations: 87.88 kB / 0.603 GB, free: 84.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000312/1.429, allocations: 463.3 kB / 0.6035 GB, free: 84.49 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006223/1.435, allocations: 1.482 MB / 0.6049 GB, free: 84.47 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006942/1.442, allocations: 2.212 MB / 0.6071 GB, free: 83.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005884/1.448, allocations: 1.492 MB / 0.6085 GB, free: 83.72 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.291e-05/1.448, allocations: 6.375 kB / 0.6085 GB, free: 83.72 MB / 426.7 MB Notification: Performance of matching and sorting (n=536) (initialization): time 0.01926/1.468, allocations: 5.18 MB / 0.6136 GB, free: 83.37 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.627e-05/1.468, allocations: 13.03 kB / 0.6136 GB, free: 83.37 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.134e-05/1.468, allocations: 19.16 kB / 0.6136 GB, free: 83.37 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00737/1.475, allocations: 2.007 MB / 0.6156 GB, free: 83.29 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006144/1.481, allocations: 0.8151 MB / 0.6164 GB, free: 83.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02856/1.51, allocations: 16.68 MB / 0.6327 GB, free: 71.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00574/1.516, allocations: 384 kB / 0.633 GB, free: 71.81 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001185/1.517, allocations: 191.9 kB / 0.6332 GB, free: 71.77 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 60 (gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,$PRE.gear2_2.lossyGear.mode,gear2_2.lossyGear.mode,gear2_2.lossyGear.ideal,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,$PRE.gear2_1.lossyGear.mode,gear2_1.lossyGear.mode,gear2_1.lossyGear.ideal,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,$PRE.lossyGear1.mode,lossyGear1.mode,lossyGear1.ideal,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (401): * Single equations (assignments): 391 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 8 {2 22,2 22,2 25,2 24,1 6,1 6,1 12,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.00283/1.52, allocations: 0.6181 MB / 0.6338 GB, free: 71.37 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001366/1.521, allocations: 285 kB / 0.6341 GB, free: 71.23 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002221/1.524, allocations: 0.6378 MB / 0.6347 GB, free: 70.86 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.629e-05/1.524, allocations: 44.31 kB / 0.6348 GB, free: 70.86 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.737e-05/1.524, allocations: 8.188 kB / 0.6348 GB, free: 70.86 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.427e-05/1.524, allocations: 27.34 kB / 0.6348 GB, free: 70.86 MB / 426.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03753/1.561, allocations: 10.55 MB / 0.6451 GB, free: 65.98 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001217/1.562, allocations: 11.53 kB / 0.6451 GB, free: 65.97 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01024/1.572, allocations: 0.7285 MB / 0.6458 GB, free: 65.91 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01065/1.583, allocations: 1.872 MB / 0.6476 GB, free: 65.39 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001369/1.584, allocations: 135 kB / 0.6478 GB, free: 65.33 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04062/1.625, allocations: 16.15 MB / 0.6635 GB, free: 52.31 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.11e-05/1.625, allocations: 18.66 kB / 0.6636 GB, free: 52.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03915/1.664, allocations: 8.491 MB / 0.6719 GB, free: 47.58 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004005/1.668, allocations: 0.7079 MB / 0.6725 GB, free: 47.17 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001547/1.67, allocations: 110.4 kB / 0.6727 GB, free: 47.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008199/1.678, allocations: 349.8 kB / 0.673 GB, free: 47.04 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003288/1.681, allocations: 0.5998 MB / 0.6736 GB, free: 46.92 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007909/1.682, allocations: 170.2 kB / 0.6737 GB, free: 46.89 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00359/1.686, allocations: 1.039 MB / 0.6747 GB, free: 46.51 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.242e-06/1.686, allocations: 0 / 0.6747 GB, free: 46.51 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00946/1.695, allocations: 1.022 MB / 0.6757 GB, free: 46.36 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 40 (slidingMass1.s,slidingMass1.v,slidingMass.s,slidingMass.v,inertia21.phi,inertia21.w,linearSpeedDependentTorque.phi,inertia20.w,position4.phi,position4.w,position5.phi,position5.w,position2.phi,position2.w,position3.phi,position3.w,gear2_2.phi_rel,gear2_2.w_rel,inertia11.phi,inertia11.w,position.phi,position.w,position1.phi,position1.w,gear2_1.phi_rel,gear2_1.w_rel,inertia9.phi,inertia9.w,inertia7.phi,inertia7.w,inertia5.phi,inertia5.w,inertia2.phi,inertia2.w,brake1.phi,inertia3.w,inertia.phi,inertia.w,inertia1.w,bearingFriction1.phi) * Number of discrete variables: 38 (gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,gear2_2.lossyGear.mode,gear2_1.lossyGear.tau_aPos,gear2_1.lossyGear.startForward,gear2_1.lossyGear.startBackward,gear2_1.lossyGear.locked,gear2_1.lossyGear.mode,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,lossyGear1.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,brake1.free,brake1.startForward,brake1.startBackward,brake1.locked,brake1.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 16 (bearingFriction1.mode,bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake1.mode,brake1.startForward,brake1.startBackward,brake.mode,brake.startForward,brake.startBackward,lossyGear.mode,lossyGear1.mode,gear2_1.lossyGear.mode,gear2_2.lossyGear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (299): * Single equations (assignments): 289 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 8 {2 21,2 21,2 23,2 23,1 5,1 5,1 9,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.02885/1.724, allocations: 11.59 MB / 0.6871 GB, free: 38.82 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01505/1.739, allocations: 5.004 MB / 0.692 GB, free: 36.65 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.507e-05/1.739, allocations: 0 / 0.692 GB, free: 36.65 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01275/1.752, allocations: 3.879 MB / 0.6957 GB, free: 34.28 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004713/1.757, allocations: 372.8 kB / 0.6961 GB, free: 33.98 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06456/1.821, allocations: 34.93 MB / 0.7302 GB, free: 15.83 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002924/1.824, allocations: 1.902 MB / 0.7321 GB, free: 14.33 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003537/1.828, allocations: 453.6 kB / 0.7325 GB, free: 13.98 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004309/1.832, allocations: 1.139 MB / 0.7336 GB, free: 12.96 MB / 442.7 MB Notification: Performance of SimCode: time 1.232e-06/1.832, allocations: 2.953 kB / 0.7336 GB, free: 12.96 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.593/2.425, allocations: 73.9 MB / 0.8058 GB, free: 91.8 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001737/2.425, allocations: 202.4 kB / 0.806 GB, free: 91.57 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.041/9.466, allocations: 0 / 0.806 GB, free: 91.57 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion_res.mat does not exist to compare? outputFormat=mat