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.003807/0.003813, allocations: 370.8 kB / 15.96 MB, free: 6.199 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.12/4.12, allocations: 388.9 MB / 405.6 MB, free: 9.641 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.003684/0.003684, allocations: 220.2 kB / 451 MB, free: 145 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.5619/0.5619, allocations: 80.03 MB / 0.5627 GB, free: 19.77 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005008/0.000501, allocations: 11.98 kB / 0.6265 GB, free: 96.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0972/0.09773, allocations: 54.87 MB / 0.6801 GB, free: 41.68 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestFriction): time 0.004226/0.102, allocations: 3.322 MB / 0.6833 GB, free: 38.33 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002684/0.1047, allocations: 1.205 MB / 0.6845 GB, free: 37.12 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000379/0.1052, allocations: 23.88 kB / 0.6845 GB, free: 37.09 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002251/0.1054, allocations: 79.38 kB / 0.6846 GB, free: 37.02 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005815/0.106, allocations: 206.5 kB / 0.6848 GB, free: 36.81 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008123/0.1068, allocations: 259.6 kB / 0.6851 GB, free: 36.56 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009769/0.1078, allocations: 0.9053 MB / 0.6859 GB, free: 35.65 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003084/0.1081, allocations: 136.9 kB / 0.6861 GB, free: 35.52 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005087/0.1087, allocations: 374.6 kB / 0.6864 GB, free: 35.15 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006052/0.1093, allocations: 442.4 kB / 0.6868 GB, free: 34.71 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001362/0.1094, allocations: 40 kB / 0.6869 GB, free: 34.68 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002956/0.1097, allocations: 75.97 kB / 0.687 GB, free: 34.6 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001746/0.1099, allocations: 159.4 kB / 0.6871 GB, free: 34.45 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001396/0.1101, allocations: 153.3 kB / 0.6873 GB, free: 34.29 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007186/0.1108, allocations: 0.6431 MB / 0.6879 GB, free: 33.64 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.1108, allocations: 0 / 0.6879 GB, free: 33.64 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1108, allocations: 0 / 0.6879 GB, free: 33.64 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.638e-06/0.1109, allocations: 0 / 0.6879 GB, free: 33.64 MB / 346.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.003072/0.1139, allocations: 1.009 MB / 0.6889 GB, free: 32.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.921e-05/0.114, allocations: 8.031 kB / 0.6889 GB, free: 32.58 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002402/0.1143, allocations: 83 kB / 0.689 GB, free: 32.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008056/0.1151, allocations: 412.7 kB / 0.6894 GB, free: 32.05 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.034e-05/0.1152, allocations: 45.31 kB / 0.6894 GB, free: 32.01 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001783/0.1154, allocations: 63.91 kB / 0.6895 GB, free: 31.95 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002236/0.1176, allocations: 0.8451 MB / 0.6903 GB, free: 31.07 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.195e-05/0.1177, allocations: 11.94 kB / 0.6903 GB, free: 31.06 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/0.1178, allocations: 24 kB / 0.6903 GB, free: 31.04 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.1178, allocations: 19.95 kB / 0.6903 GB, free: 31.02 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002766/0.1206, allocations: 0.7824 MB / 0.6911 GB, free: 30.24 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008153/0.1288, allocations: 2.648 MB / 0.6937 GB, free: 27.47 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002976/0.1318, allocations: 0.6436 MB / 0.6943 GB, free: 26.79 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001794/0.1336, allocations: 389 kB / 0.6947 GB, free: 26.4 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001051/0.1338, allocations: 15.92 kB / 0.6947 GB, free: 26.38 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/0.1338, allocations: 46.56 kB / 0.6947 GB, free: 26.33 MB / 346.7 MB Notification: Performance of pre-optimization done (n=72): time 6.061e-06/0.1338, allocations: 0 / 0.6947 GB, free: 26.33 MB / 346.7 MB Notification: Performance of matching and sorting (n=76): time 0.01641/0.1503, allocations: 3.73 MB / 0.6984 GB, free: 22.33 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.714e-05/0.1504, allocations: 148.4 kB / 0.6985 GB, free: 22.16 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007919/0.1512, allocations: 417.8 kB / 0.6989 GB, free: 21.73 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001514/0.1513, allocations: 53.69 kB / 0.699 GB, free: 21.68 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002522/0.1516, allocations: 284.3 kB / 0.6992 GB, free: 21.39 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003511/0.152, allocations: 268.4 kB / 0.6995 GB, free: 21.12 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001153/0.1521, allocations: 16 kB / 0.6995 GB, free: 21.11 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.1523, allocations: 378.8 kB / 0.6999 GB, free: 20.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001771/0.1541, allocations: 397.8 kB / 0.7003 GB, free: 20.34 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001873/0.156, allocations: 0.5491 MB / 0.7008 GB, free: 19.74 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001541/0.1575, allocations: 356.9 kB / 0.7011 GB, free: 19.4 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.1576, allocations: 0 / 0.7011 GB, free: 19.4 MB / 346.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.005712/0.1633, allocations: 1.272 MB / 0.7024 GB, free: 18.11 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.937e-05/0.1633, allocations: 12.25 kB / 0.7024 GB, free: 18.1 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.684e-05/0.1634, allocations: 4 kB / 0.7024 GB, free: 18.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002853/0.1662, allocations: 0.7606 MB / 0.7031 GB, free: 17.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/0.1676, allocations: 155.7 kB / 0.7033 GB, free: 17.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003592/0.1712, allocations: 2.686 MB / 0.7059 GB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002178/0.1734, allocations: 195.8 kB / 0.7061 GB, free: 14.19 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001468/0.1736, allocations: 47.91 kB / 0.7061 GB, free: 14.14 MB / 346.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.0005705/0.1742, allocations: 212.2 kB / 0.7063 GB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003189/0.1745, allocations: 67.2 kB / 0.7064 GB, free: 13.86 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003113/0.1748, allocations: 83.91 kB / 0.7065 GB, free: 13.78 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.495e-05/0.1749, allocations: 3.984 kB / 0.7065 GB, free: 13.78 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.264e-06/0.1749, allocations: 4 kB / 0.7065 GB, free: 13.77 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000524/0.1754, allocations: 216.2 kB / 0.7067 GB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003066/0.1757, allocations: 32 kB / 0.7067 GB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002242/0.178, allocations: 175.8 kB / 0.7069 GB, free: 13.34 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007005/0.1787, allocations: 171.5 kB / 0.7071 GB, free: 13.17 MB / 346.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.007149/0.1859, allocations: 1.453 MB / 0.7085 GB, free: 11.7 MB / 346.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.005285/0.1912, allocations: 1.589 MB / 0.71 GB, free: 10.09 MB / 346.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001931/0.1932, allocations: 400.2 kB / 0.7104 GB, free: 9.699 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005853/0.1938, allocations: 291.1 kB / 0.7107 GB, free: 9.41 MB / 346.7 MB Notification: Performance of Backend: time 8.72e-07/0.1938, allocations: 0 / 0.7107 GB, free: 9.41 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004424/0.1982, allocations: 0.7618 MB / 0.7114 GB, free: 8.641 MB / 346.7 MB Notification: Performance of SimCode: time 0.005042/0.2033, allocations: 2.609 MB / 0.714 GB, free: 5.98 MB / 346.7 MB Notification: Performance of Templates: time 0.3161/0.5195, allocations: 13.37 MB / 0.727 GB, free: 45.05 MB / 346.7 MB