Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.TestFriction.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: 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.1_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.003831/0.003837, allocations: 348 kB / 15.94 MB, free: 6.215 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 4.115/4.115, allocations: 341.5 MB / 358.2 MB, free: 12.62 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003602/0.003602, allocations: 230.1 kB / 397.9 MB, free: 4.965 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.5344/0.5344, allocations: 76.1 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006674/0.0006679, allocations: 12 kB / 0.5592 GB, free: 53.46 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09742/0.09812, allocations: 48.7 MB / 0.6067 GB, free: 4.652 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4154/0.5136, allocations: 80.1 MB / 0.6849 GB, free: 32.62 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002413/0.5139, allocations: 71.97 kB / 0.685 GB, free: 32.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05108/0.565, allocations: 11.54 MB / 0.6963 GB, free: 21.21 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.565, allocations: 0 / 0.6963 GB, free: 21.21 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.178e-05/0.5651, allocations: 20 kB / 0.6963 GB, free: 21.2 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.003258/0.5684, allocations: 1.012 MB / 0.6973 GB, free: 20.14 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.877e-05/0.5685, allocations: 8.031 kB / 0.6973 GB, free: 20.13 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000285/0.5688, allocations: 83.02 kB / 0.6974 GB, free: 20.05 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007696/0.5696, allocations: 408.6 kB / 0.6978 GB, free: 19.61 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.166e-05/0.5696, allocations: 53.25 kB / 0.6978 GB, free: 19.55 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000186/0.5698, allocations: 67.89 kB / 0.6979 GB, free: 19.49 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002218/0.5721, allocations: 0.8336 MB / 0.6987 GB, free: 18.63 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.596e-05/0.5721, allocations: 11.84 kB / 0.6987 GB, free: 18.62 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001057/0.5723, allocations: 24 kB / 0.6987 GB, free: 18.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.671e-05/0.5723, allocations: 16 kB / 0.6987 GB, free: 18.58 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002621/0.5749, allocations: 0.7938 MB / 0.6995 GB, free: 17.79 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006282/0.5813, allocations: 2.601 MB / 0.7021 GB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002072/0.5834, allocations: 0.643 MB / 0.7027 GB, free: 14.4 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001217/0.5846, allocations: 398.5 kB / 0.7031 GB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.974e-05/0.5847, allocations: 12.38 kB / 0.7031 GB, free: 14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.5848, allocations: 42.94 kB / 0.7031 GB, free: 13.95 MB / 362.7 MB Notification: Performance of pre-optimization done (n=72): time 4.308e-06/0.5848, allocations: 0 / 0.7031 GB, free: 13.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=76): time 0.01281/0.5976, allocations: 3.846 MB / 0.7069 GB, free: 9.859 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.523e-05/0.5977, allocations: 140.5 kB / 0.707 GB, free: 9.691 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006637/0.5984, allocations: 425.8 kB / 0.7074 GB, free: 9.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000222/0.5986, allocations: 57.64 kB / 0.7075 GB, free: 9.207 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001993/0.5989, allocations: 284.3 kB / 0.7077 GB, free: 8.922 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002696/0.5991, allocations: 264.5 kB / 0.708 GB, free: 8.66 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.475e-05/0.5992, allocations: 20 kB / 0.708 GB, free: 8.641 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.5994, allocations: 366.7 kB / 0.7084 GB, free: 8.273 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001282/0.6006, allocations: 397.8 kB / 0.7087 GB, free: 7.887 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/0.602, allocations: 0.5569 MB / 0.7093 GB, free: 7.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001164/0.6032, allocations: 349.8 kB / 0.7096 GB, free: 6.934 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.634e-06/0.6032, allocations: 4 kB / 0.7096 GB, free: 6.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004459/0.6077, allocations: 1.378 MB / 0.711 GB, free: 5.559 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.072e-05/0.6078, allocations: 12.12 kB / 0.711 GB, free: 5.547 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.639e-05/0.6078, allocations: 4 kB / 0.711 GB, free: 5.543 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002177/0.61, allocations: 0.8029 MB / 0.7118 GB, free: 4.742 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00112/0.6112, allocations: 159.8 kB / 0.7119 GB, free: 4.586 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002878/0.6141, allocations: 2.682 MB / 0.7145 GB, free: 1.809 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00182/0.6159, allocations: 195.8 kB / 0.7147 GB, free: 1.617 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001505/0.6161, allocations: 47.98 kB / 0.7148 GB, free: 1.57 MB / 362.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.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 87 * 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 6,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0005387/0.6167, allocations: 204.9 kB / 0.715 GB, free: 1.363 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002521/0.6169, allocations: 71.19 kB / 0.715 GB, free: 1.293 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002337/0.6172, allocations: 87.98 kB / 0.7151 GB, free: 1.199 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/0.6172, allocations: 8 kB / 0.7151 GB, free: 1.191 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.208e-05/0.6172, allocations: 3.281 kB / 0.7151 GB, free: 1.191 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.184e-05/0.6172, allocations: 7.984 kB / 0.7151 GB, free: 1.184 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007336/0.6246, allocations: 2.343 MB / 0.7174 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.455e-05/0.6246, allocations: 0 / 0.7174 GB, free: 14.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001213/0.6259, allocations: 123.8 kB / 0.7175 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002379/0.6283, allocations: 0.7601 MB / 0.7183 GB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002619/0.6286, allocations: 38.95 kB / 0.7183 GB, free: 13.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003447/0.632, allocations: 2.634 MB / 0.7209 GB, free: 11.15 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.573e-06/0.6321, allocations: 4.031 kB / 0.7209 GB, free: 11.15 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0062/0.6383, allocations: 1.906 MB / 0.7228 GB, free: 9.234 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006265/0.639, allocations: 228.1 kB / 0.723 GB, free: 8.992 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002219/0.6392, allocations: 28 kB / 0.723 GB, free: 8.965 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001639/0.6409, allocations: 171.8 kB / 0.7232 GB, free: 8.797 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00058/0.6415, allocations: 171.6 kB / 0.7233 GB, free: 8.629 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001325/0.6416, allocations: 39.95 kB / 0.7234 GB, free: 8.59 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005355/0.6422, allocations: 283.1 kB / 0.7236 GB, free: 8.312 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6422, allocations: 4 kB / 0.7236 GB, free: 8.309 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001176/0.6434, allocations: 196 kB / 0.7238 GB, free: 8.117 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (53): * Single equations (assignments): 49 * 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.0003596/0.6437, allocations: 147.1 kB / 0.724 GB, free: 7.965 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003579/0.6473, allocations: 0.958 MB / 0.7249 GB, free: 7.012 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.6474, allocations: 0 / 0.7249 GB, free: 7.012 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002089/0.6495, allocations: 0.5044 MB / 0.7254 GB, free: 6.508 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001481/0.651, allocations: 102.2 kB / 0.7255 GB, free: 6.414 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00872/0.6597, allocations: 2.577 MB / 0.728 GB, free: 3.859 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006862/0.6605, allocations: 0.926 MB / 0.7289 GB, free: 2.906 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005515/0.661, allocations: 64.81 kB / 0.729 GB, free: 2.844 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002319/0.6613, allocations: 39.42 kB / 0.729 GB, free: 2.805 MB / 378.7 MB Notification: Performance of SimCode: time 1.263e-06/0.6613, allocations: 0 / 0.729 GB, free: 2.805 MB / 378.7 MB Notification: Performance of Templates: time 0.03387/0.6952, allocations: 12.83 MB / 0.7416 GB, free: 6.102 MB / 394.7 MB