Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents.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.AllComponents,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|accelerate.phi|accelerate.w|clutch.phi_rel|clutch.w_rel|damper.phi_rel|damper.w_rel|elastoBacklash.phi_rel|elastoBacklash.w_rel|gear2_1.phi_rel|gear2_1.w_rel|inertia13.phi|inertia13.w|inertia14.phi|inertia14.w|inertia15.phi|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia8.phi|inertia8.w|position.phi|position.w|speed.phi|speed.w|springDamper.phi_rel|springDamper.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|gear2_1.lossyGear.mode|lossyGear.mode",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002659/0.002665, allocations: 352.1 kB / 15.95 MB, free: 6.219 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 3.453/3.453, allocations: 341.5 MB / 358.2 MB, free: 28.73 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.005655/0.005654, allocations: 222.7 kB / 397.9 MB, free: 6.16 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.5059/0.5059, allocations: 76.09 MB / 0.5014 GB, free: 0.8203 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004772/0.0004775, allocations: 11.98 kB / 0.5592 GB, free: 60.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09073/0.09123, allocations: 48.71 MB / 0.6067 GB, free: 11.55 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.AllComponents): time 0.01358/0.1049, allocations: 7.747 MB / 0.6143 GB, free: 3.77 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.009281/0.1142, allocations: 2.918 MB / 0.6172 GB, free: 0.8438 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002026/0.1163, allocations: 35.88 kB / 0.6172 GB, free: 0.8086 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001014/0.1174, allocations: 222.2 kB / 0.6174 GB, free: 0.5898 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004011/0.1214, allocations: 0.6554 MB / 0.618 GB, free: 15.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004043/0.1255, allocations: 0.6864 MB / 0.6187 GB, free: 15.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.006869/0.1324, allocations: 2.764 MB / 0.6214 GB, free: 12.48 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002305/0.1348, allocations: 0.617 MB / 0.622 GB, free: 11.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003281/0.1381, allocations: 1.043 MB / 0.623 GB, free: 10.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003839/0.142, allocations: 1.218 MB / 0.6242 GB, free: 9.562 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001046/0.1431, allocations: 124 kB / 0.6243 GB, free: 9.441 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001997/0.1451, allocations: 327.7 kB / 0.6247 GB, free: 9.121 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00104/0.1462, allocations: 490.2 kB / 0.6251 GB, free: 8.641 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001083/0.1473, allocations: 420.6 kB / 0.6255 GB, free: 8.223 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004574/0.1519, allocations: 2.24 MB / 0.6277 GB, free: 5.977 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.874e-06/0.152, allocations: 0 / 0.6277 GB, free: 5.977 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.267e-06/0.152, allocations: 0 / 0.6277 GB, free: 5.977 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000128/0.1521, allocations: 0 / 0.6277 GB, free: 5.977 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 515 * Number of variables: 515 Notification: Performance of Generate backend data structure: time 0.01064/0.1628, allocations: 2.463 MB / 0.6301 GB, free: 3.453 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.437e-05/0.1629, allocations: 8.031 kB / 0.6301 GB, free: 3.445 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001709/0.1646, allocations: 281 kB / 0.6304 GB, free: 3.168 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003156/0.1678, allocations: 1.009 MB / 0.6314 GB, free: 2.102 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001666/0.1695, allocations: 454.1 kB / 0.6318 GB, free: 1.617 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008706/0.1704, allocations: 223.7 kB / 0.632 GB, free: 1.398 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009026/0.1795, allocations: 2.426 MB / 0.6344 GB, free: 14.89 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001741/0.1797, allocations: 27.7 kB / 0.6344 GB, free: 14.86 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003478/0.1801, allocations: 84 kB / 0.6345 GB, free: 14.78 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.259e-05/0.1801, allocations: 48 kB / 0.6345 GB, free: 14.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01046/0.1906, allocations: 2.492 MB / 0.637 GB, free: 12.24 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02225/0.2129, allocations: 6.37 MB / 0.6432 GB, free: 5.77 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007991/0.221, allocations: 2.322 MB / 0.6455 GB, free: 3.352 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00549/0.2265, allocations: 1.333 MB / 0.6468 GB, free: 2.012 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003234/0.2269, allocations: 30.14 kB / 0.6468 GB, free: 1.984 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.148e-05/0.227, allocations: 68.7 kB / 0.6469 GB, free: 1.906 MB / 314.7 MB Notification: Performance of pre-optimization done (n=259): time 9.107e-06/0.227, allocations: 4 kB / 0.6469 GB, free: 1.902 MB / 314.7 MB Notification: Performance of matching and sorting (n=314): time 0.3372/0.5642, allocations: 13.01 MB / 0.6596 GB, free: 39.97 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/0.5643, allocations: 239.2 kB / 0.6598 GB, free: 39.72 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002363/0.5667, allocations: 1.102 MB / 0.6609 GB, free: 39.3 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006467/0.5674, allocations: 95.14 kB / 0.661 GB, free: 39.23 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006291/0.5681, allocations: 0.6566 MB / 0.6616 GB, free: 38.71 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001495/0.5696, allocations: 1.048 MB / 0.6626 GB, free: 37.89 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003022/0.5699, allocations: 62.61 kB / 0.6627 GB, free: 37.85 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002199/0.5701, allocations: 421.4 kB / 0.6631 GB, free: 37.49 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004224/0.5744, allocations: 1.066 MB / 0.6641 GB, free: 37.13 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004725/0.5792, allocations: 1.469 MB / 0.6656 GB, free: 36.38 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004546/0.5838, allocations: 1.085 MB / 0.6666 GB, free: 35.93 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.167e-05/0.5838, allocations: 6.344 kB / 0.6666 GB, free: 35.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=382) (initialization): time 0.01337/0.5972, allocations: 3.612 MB / 0.6702 GB, free: 34.58 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.727e-05/0.5973, allocations: 11.03 kB / 0.6702 GB, free: 34.58 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.707e-05/0.5974, allocations: 7.375 kB / 0.6702 GB, free: 34.58 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00361/0.601, allocations: 1.029 MB / 0.6712 GB, free: 33.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005075/0.6061, allocations: 0.6675 MB / 0.6718 GB, free: 33.28 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01277/0.6189, allocations: 7.493 MB / 0.6791 GB, free: 25.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003973/0.623, allocations: 275.8 kB / 0.6794 GB, free: 25.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005363/0.6235, allocations: 112 kB / 0.6795 GB, free: 25.07 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * Number of states: 0 () * Number of discrete variables: 38 (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,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,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,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (313): * Single equations (assignments): 308 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {2 22,2 25,1 6,1 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.001318/0.6249, allocations: 457.2 kB / 0.68 GB, free: 24.62 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006708/0.6256, allocations: 201.6 kB / 0.6801 GB, free: 24.42 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002075/0.6277, allocations: 0.6975 MB / 0.6808 GB, free: 23.71 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.216e-05/0.6277, allocations: 15.94 kB / 0.6808 GB, free: 23.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.136e-05/0.6278, allocations: 8 kB / 0.6808 GB, free: 23.69 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001606/0.6294, allocations: 0.5061 MB / 0.6813 GB, free: 23.16 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007029/0.6301, allocations: 72.09 kB / 0.6814 GB, free: 23.09 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004376/0.6345, allocations: 367 kB / 0.6818 GB, free: 22.73 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001245/0.6358, allocations: 353.3 kB / 0.6821 GB, free: 22.39 MB / 314.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01822/0.654, allocations: 4.259 MB / 0.6863 GB, free: 18.16 MB / 314.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01553/0.6696, allocations: 4.828 MB / 0.691 GB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.004748/0.6744, allocations: 1.366 MB / 0.6923 GB, free: 11.9 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001517/0.676, allocations: 0.7448 MB / 0.693 GB, free: 11.15 MB / 314.7 MB Notification: Performance of Backend: time 5.51e-07/0.676, allocations: 0 / 0.693 GB, free: 11.15 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.008393/0.6844, allocations: 2.379 MB / 0.6954 GB, free: 8.762 MB / 314.7 MB Notification: Performance of SimCode: time 0.01193/0.6964, allocations: 6.675 MB / 0.7019 GB, free: 2.047 MB / 314.7 MB Notification: Performance of Templates: time 0.09832/0.7948, allocations: 34.17 MB / 0.7352 GB, free: 16 kB / 346.7 MB