Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.TestBraking.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.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002863/0.002869, allocations: 361.2 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.108/4.108, allocations: 388.9 MB / 405.6 MB, free: 47.98 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003563/0.003563, allocations: 236.6 kB / 451 MB, free: 2.449 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.7918/0.7918, allocations: 80.01 MB / 0.5627 GB, free: 5.984 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005692/0.0005694, allocations: 19.92 kB / 0.6265 GB, free: 4.555 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1292/0.1298, allocations: 54.87 MB / 0.6801 GB, free: 13.55 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5055/0.6354, allocations: 82.58 MB / 0.7607 GB, free: 37.67 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000241/0.6357, allocations: 67.97 kB / 0.7608 GB, free: 37.61 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0166/0.6523, allocations: 4.136 MB / 0.7648 GB, free: 33.57 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.6524, allocations: 1.031 kB / 0.7648 GB, free: 33.57 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.898e-05/0.6524, allocations: 4 kB / 0.7648 GB, free: 33.56 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: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.0007863/0.6532, allocations: 489.5 kB / 0.7653 GB, free: 33.04 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.049e-05/0.6533, allocations: 15.88 kB / 0.7653 GB, free: 33.03 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001119/0.6534, allocations: 23.72 kB / 0.7653 GB, free: 33.01 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004183/0.6539, allocations: 223.3 kB / 0.7656 GB, free: 32.75 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.343e-05/0.6539, allocations: 16.44 kB / 0.7656 GB, free: 32.73 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.606e-05/0.654, allocations: 27.47 kB / 0.7656 GB, free: 32.71 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006351/0.6547, allocations: 222.4 kB / 0.7658 GB, free: 32.48 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.29e-05/0.6547, allocations: 0 / 0.7658 GB, free: 32.48 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.16e-05/0.6548, allocations: 15.44 kB / 0.7658 GB, free: 32.46 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.6548, allocations: 4.562 kB / 0.7658 GB, free: 32.46 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004254/0.6552, allocations: 119.8 kB / 0.7659 GB, free: 32.34 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002433/0.6577, allocations: 1.034 MB / 0.767 GB, free: 31.22 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004328/0.6582, allocations: 161.8 kB / 0.7671 GB, free: 31.03 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00013/0.6583, allocations: 43.47 kB / 0.7672 GB, free: 30.98 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.575e-05/0.6584, allocations: 3.984 kB / 0.7672 GB, free: 30.97 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.927e-05/0.6584, allocations: 46.19 kB / 0.7672 GB, free: 30.92 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 4.989e-06/0.6584, allocations: 1.734 kB / 0.7672 GB, free: 30.92 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006619/0.6591, allocations: 141.4 kB / 0.7673 GB, free: 30.78 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.211e-05/0.6592, allocations: 136.5 kB / 0.7675 GB, free: 30.61 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002714/0.6595, allocations: 179 kB / 0.7676 GB, free: 30.43 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.392e-05/0.6595, allocations: 33.14 kB / 0.7677 GB, free: 30.39 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.6597, allocations: 163.9 kB / 0.7678 GB, free: 30.23 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.232e-05/0.6598, allocations: 55.2 kB / 0.7679 GB, free: 30.17 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.754e-05/0.6598, allocations: 4 kB / 0.7679 GB, free: 30.17 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.601e-05/0.6599, allocations: 332.5 kB / 0.7682 GB, free: 29.84 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001641/0.6601, allocations: 43.97 kB / 0.7682 GB, free: 29.79 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002713/0.6604, allocations: 152.8 kB / 0.7684 GB, free: 29.6 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002376/0.6606, allocations: 66 kB / 0.7684 GB, free: 29.54 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/0.6607, allocations: 4 kB / 0.7685 GB, free: 29.54 MB / 394.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007244/0.6614, allocations: 239.9 kB / 0.7687 GB, free: 29.3 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.282e-05/0.6615, allocations: 8 kB / 0.7687 GB, free: 29.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.699e-05/0.6615, allocations: 5.438 kB / 0.7687 GB, free: 29.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.349e-05/0.6615, allocations: 4 kB / 0.7687 GB, free: 29.28 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005172/0.6621, allocations: 66.5 kB / 0.7688 GB, free: 29.22 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.186e-05/0.6621, allocations: 11.94 kB / 0.7688 GB, free: 29.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003226/0.6625, allocations: 23.78 kB / 0.7688 GB, free: 29.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.371e-05/0.6625, allocations: 14.72 kB / 0.7688 GB, free: 29.17 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 31 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002174/0.6627, allocations: 137.7 kB / 0.7689 GB, free: 29.03 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000185/0.6629, allocations: 15.81 kB / 0.769 GB, free: 29.01 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003071/0.6633, allocations: 81.08 kB / 0.769 GB, free: 28.93 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.6633, allocations: 4 kB / 0.769 GB, free: 28.93 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.6633, allocations: 0 / 0.769 GB, free: 28.93 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.098e-05/0.6633, allocations: 9.453 kB / 0.769 GB, free: 28.92 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.6644, allocations: 265.4 kB / 0.7693 GB, free: 28.61 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.054e-06/0.6644, allocations: 0.5 kB / 0.7693 GB, free: 28.61 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005992/0.665, allocations: 50.64 kB / 0.7693 GB, free: 28.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.168e-05/0.6651, allocations: 4 kB / 0.7694 GB, free: 28.56 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.235e-05/0.6651, allocations: 3.984 kB / 0.7694 GB, free: 28.56 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.096e-06/0.6651, allocations: 4 kB / 0.7694 GB, free: 28.55 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.6652, allocations: 0 / 0.7694 GB, free: 28.55 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006368/0.6658, allocations: 487.4 kB / 0.7698 GB, free: 28.06 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.319e-05/0.6659, allocations: 92.92 kB / 0.7699 GB, free: 27.95 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.755e-05/0.666, allocations: 4 kB / 0.7699 GB, free: 27.95 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004725/0.6665, allocations: 10.73 kB / 0.7699 GB, free: 27.94 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.788e-05/0.6665, allocations: 11.28 kB / 0.7699 GB, free: 27.93 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.068e-05/0.6666, allocations: 7.984 kB / 0.7699 GB, free: 27.93 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001805/0.6668, allocations: 130.3 kB / 0.7701 GB, free: 27.8 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.91e-07/0.6668, allocations: 0 / 0.7701 GB, free: 27.8 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001075/0.6679, allocations: 55.84 kB / 0.7701 GB, free: 27.75 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi) * 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 (15): * Single equations (assignments): 15 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001822/0.6681, allocations: 112.3 kB / 0.7702 GB, free: 27.63 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004912/0.6686, allocations: 128 kB / 0.7704 GB, free: 27.51 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.6686, allocations: 0 / 0.7704 GB, free: 27.51 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001397/0.6688, allocations: 43.92 kB / 0.7704 GB, free: 27.46 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001526/0.6703, allocations: 44.62 kB / 0.7704 GB, free: 27.42 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002856/0.6732, allocations: 0.98 MB / 0.7714 GB, free: 26.51 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005162/0.6738, allocations: 0.7519 MB / 0.7721 GB, free: 25.73 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002393/0.674, allocations: 21.14 kB / 0.7721 GB, free: 25.71 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.382e-05/0.6741, allocations: 15.44 kB / 0.7722 GB, free: 25.7 MB / 394.7 MB Notification: Performance of SimCode: time 1.412e-06/0.6741, allocations: 3.844 kB / 0.7722 GB, free: 25.7 MB / 394.7 MB Notification: Performance of Templates: time 0.008859/0.683, allocations: 1.606 MB / 0.7737 GB, free: 24.17 MB / 394.7 MB