Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction.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: translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002762/0.002769, allocations: 359.8 kB / 15.95 MB, free: 6.207 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 4.193/4.193, allocations: 388.9 MB / 405.6 MB, free: 10.33 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00364/0.003639, allocations: 232.4 kB / 451 MB, free: 145.1 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5784/0.5784, allocations: 80.02 MB / 0.5627 GB, free: 19.86 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004626/0.0004629, allocations: 8 kB / 0.6265 GB, free: 96.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.106, allocations: 54.87 MB / 0.6801 GB, free: 41.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4632/0.5693, allocations: 86.51 MB / 0.7646 GB, free: 14.85 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000277/0.5697, allocations: 65.84 kB / 0.7646 GB, free: 14.82 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05869/0.6284, allocations: 11.76 MB / 0.7761 GB, free: 4.699 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.326e-06/0.6284, allocations: 3.938 kB / 0.7761 GB, free: 4.695 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.528e-05/0.6285, allocations: 16 kB / 0.7761 GB, free: 4.68 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.003697/0.6322, allocations: 0.9941 MB / 0.7771 GB, free: 3.676 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.122e-05/0.6323, allocations: 8.031 kB / 0.7771 GB, free: 3.668 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003514/0.6326, allocations: 79.06 kB / 0.7772 GB, free: 3.59 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009502/0.6336, allocations: 404.4 kB / 0.7776 GB, free: 3.203 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.317e-05/0.6337, allocations: 45.94 kB / 0.7776 GB, free: 3.18 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002135/0.6339, allocations: 64.25 kB / 0.7777 GB, free: 3.137 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002549/0.6365, allocations: 0.8025 MB / 0.7785 GB, free: 2.527 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.678e-05/0.6366, allocations: 15.53 kB / 0.7785 GB, free: 2.516 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001133/0.6367, allocations: 25.88 kB / 0.7785 GB, free: 2.508 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.396e-05/0.6368, allocations: 12 kB / 0.7785 GB, free: 2.496 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002827/0.6396, allocations: 0.728 MB / 0.7792 GB, free: 1.965 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007542/0.6472, allocations: 2.576 MB / 0.7817 GB, free: 15.67 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002315/0.6496, allocations: 0.6324 MB / 0.7823 GB, free: 15.18 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001509/0.6512, allocations: 385.1 kB / 0.7827 GB, free: 14.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001453/0.6513, allocations: 27.42 kB / 0.7827 GB, free: 14.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.554e-05/0.6514, allocations: 41.94 kB / 0.7828 GB, free: 14.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=78): time 4.569e-06/0.6514, allocations: 0 / 0.7828 GB, free: 14.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=82): time 0.01542/0.6668, allocations: 3.691 MB / 0.7864 GB, free: 11.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001207/0.667, allocations: 148.1 kB / 0.7865 GB, free: 11.26 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006974/0.6677, allocations: 370.4 kB / 0.7869 GB, free: 10.96 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002989/0.668, allocations: 52.25 kB / 0.7869 GB, free: 10.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002784/0.6683, allocations: 263.9 kB / 0.7872 GB, free: 10.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004298/0.6688, allocations: 280 kB / 0.7874 GB, free: 10.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.469e-05/0.6689, allocations: 18.06 kB / 0.7875 GB, free: 10.47 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002286/0.6691, allocations: 378.8 kB / 0.7878 GB, free: 10.12 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001491/0.6706, allocations: 360.4 kB / 0.7882 GB, free: 9.887 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001621/0.6723, allocations: 0.5181 MB / 0.7887 GB, free: 9.457 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001293/0.6736, allocations: 310.3 kB / 0.789 GB, free: 9.266 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.824e-06/0.6737, allocations: 0 / 0.789 GB, free: 9.266 MB / 378.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.005489/0.6792, allocations: 1.233 MB / 0.7902 GB, free: 8.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.218e-05/0.6793, allocations: 7.953 kB / 0.7902 GB, free: 8.332 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.785e-05/0.6794, allocations: 11.98 kB / 0.7902 GB, free: 8.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003482/0.6829, allocations: 0.6111 MB / 0.7908 GB, free: 7.836 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001973/0.6849, allocations: 150.7 kB / 0.7909 GB, free: 7.695 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005963/0.6909, allocations: 2.575 MB / 0.7935 GB, free: 5.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002906/0.6939, allocations: 190.6 kB / 0.7936 GB, free: 5.059 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004126/0.6944, allocations: 43.3 kB / 0.7937 GB, free: 5.023 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.001025/0.6954, allocations: 219 kB / 0.7939 GB, free: 4.848 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004916/0.696, allocations: 63.25 kB / 0.7939 GB, free: 4.785 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00782/0.7038, allocations: 1.145 MB / 0.7951 GB, free: 3.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.49e-05/0.7039, allocations: 12 kB / 0.7951 GB, free: 3.918 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.809e-05/0.704, allocations: 0 / 0.7951 GB, free: 3.918 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-05/0.704, allocations: 7.984 kB / 0.7951 GB, free: 3.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01171/0.7158, allocations: 2.11 MB / 0.7971 GB, free: 2.199 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.22e-05/0.7159, allocations: 4 kB / 0.7971 GB, free: 2.195 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001977/0.7179, allocations: 122.6 kB / 0.7973 GB, free: 2.078 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003149/0.7211, allocations: 0.5746 MB / 0.7978 GB, free: 1.617 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003385/0.7215, allocations: 38.09 kB / 0.7979 GB, free: 1.594 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005015/0.7265, allocations: 2.53 MB / 0.8003 GB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.164e-05/0.7266, allocations: 4.031 kB / 0.8003 GB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009918/0.7365, allocations: 1.722 MB / 0.802 GB, free: 13.79 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001036/0.7376, allocations: 217.3 kB / 0.8022 GB, free: 13.59 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004339/0.7381, allocations: 29.56 kB / 0.8023 GB, free: 13.58 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003021/0.7412, allocations: 175.3 kB / 0.8024 GB, free: 13.42 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001136/0.7424, allocations: 173.7 kB / 0.8026 GB, free: 13.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002741/0.7427, allocations: 39.03 kB / 0.8026 GB, free: 13.23 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007697/0.7435, allocations: 269.5 kB / 0.8029 GB, free: 13.02 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.072e-06/0.7436, allocations: 0 / 0.8029 GB, free: 13.02 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002322/0.7459, allocations: 197 kB / 0.8031 GB, free: 12.85 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007103/0.7467, allocations: 161.4 kB / 0.8032 GB, free: 12.7 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006187/0.7529, allocations: 1.02 MB / 0.8042 GB, free: 11.91 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.183e-05/0.753, allocations: 0 / 0.8042 GB, free: 11.91 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003662/0.7567, allocations: 0.5253 MB / 0.8047 GB, free: 11.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003/0.7597, allocations: 101.2 kB / 0.8048 GB, free: 11.46 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01471/0.7745, allocations: 2.579 MB / 0.8073 GB, free: 8.973 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001059/0.7757, allocations: 0.9182 MB / 0.8082 GB, free: 8.023 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0008204/0.7765, allocations: 56.83 kB / 0.8083 GB, free: 7.969 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003455/0.7769, allocations: 46.59 kB / 0.8083 GB, free: 7.926 MB / 394.7 MB Notification: Performance of SimCode: time 1.403e-06/0.7769, allocations: 3.938 kB / 0.8083 GB, free: 7.922 MB / 394.7 MB Notification: Performance of Templates: time 0.05385/0.8308, allocations: 13.29 MB / 0.8213 GB, free: 10.7 MB / 410.7 MB