Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.AllComponents.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.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.2_ModelicaTest.Rotational.AllComponents") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002734/0.002734, allocations: 370.7 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.216/4.216, allocations: 388.9 MB / 405.6 MB, free: 9.574 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.005527/0.005527, 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.5082/0.5082, allocations: 80.03 MB / 0.5627 GB, free: 19.77 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004863/0.0004865, allocations: 12.97 kB / 0.6265 GB, free: 96.58 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1007, allocations: 54.86 MB / 0.6801 GB, free: 41.71 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.AllComponents): time 0.01047/0.1112, allocations: 8.277 MB / 0.6882 GB, free: 33.39 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.007564/0.1189, allocations: 2.997 MB / 0.6911 GB, free: 30.39 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002003/0.1209, allocations: 43.81 kB / 0.6911 GB, free: 30.34 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001131/0.1221, allocations: 238.1 kB / 0.6914 GB, free: 30.11 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003519/0.1257, allocations: 0.7077 MB / 0.6921 GB, free: 29.4 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003144/0.1288, allocations: 0.7165 MB / 0.6928 GB, free: 28.68 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.005147/0.134, allocations: 2.993 MB / 0.6957 GB, free: 25.68 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002328/0.1364, allocations: 0.638 MB / 0.6963 GB, free: 25.02 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00238/0.1389, allocations: 1.121 MB / 0.6974 GB, free: 23.89 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002843/0.1417, allocations: 1.327 MB / 0.6987 GB, free: 22.56 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008612/0.1427, allocations: 140 kB / 0.6988 GB, free: 22.43 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001302/0.144, allocations: 235.9 kB / 0.6991 GB, free: 22.2 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006169/0.1446, allocations: 0.5098 MB / 0.6995 GB, free: 21.68 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008441/0.1455, allocations: 448.5 kB / 0.7 GB, free: 21.24 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003469/0.149, allocations: 2.353 MB / 0.7023 GB, free: 18.88 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.149, allocations: 0 / 0.7023 GB, free: 18.88 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.018e-06/0.149, allocations: 0 / 0.7023 GB, free: 18.88 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001198/0.1492, allocations: 3.938 kB / 0.7023 GB, free: 18.88 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: 547 * Number of variables: 547 Notification: Performance of Generate backend data structure: time 0.01444/0.1636, allocations: 2.632 MB / 0.7048 GB, free: 16.18 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.666e-05/0.1637, allocations: 8.031 kB / 0.7049 GB, free: 16.17 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002819/0.1666, allocations: 296.9 kB / 0.7051 GB, free: 15.88 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004696/0.1713, allocations: 1.068 MB / 0.7062 GB, free: 14.75 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002634/0.174, allocations: 0.5039 MB / 0.7067 GB, free: 14.2 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001282/0.1754, allocations: 243.7 kB / 0.7069 GB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01382/0.1893, allocations: 2.639 MB / 0.7095 GB, free: 11.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002412/0.1896, allocations: 31.7 kB / 0.7095 GB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005042/0.1901, allocations: 91.95 kB / 0.7096 GB, free: 11.11 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-05/0.1902, allocations: 55.94 kB / 0.7097 GB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01688/0.2071, allocations: 2.754 MB / 0.7123 GB, free: 8.301 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03169/0.2388, allocations: 6.997 MB / 0.7192 GB, free: 1.191 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3919/0.6308, allocations: 2.561 MB / 0.7217 GB, free: 42.47 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005972/0.6368, allocations: 1.463 MB / 0.7231 GB, free: 42.41 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004654/0.6373, allocations: 120.9 kB / 0.7232 GB, free: 42.32 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.408e-05/0.6374, allocations: 76.8 kB / 0.7233 GB, free: 42.28 MB / 346.7 MB Notification: Performance of pre-optimization done (n=275): time 7.374e-06/0.6374, allocations: 3.969 kB / 0.7233 GB, free: 42.28 MB / 346.7 MB Notification: Performance of matching and sorting (n=333): time 0.05738/0.6948, allocations: 14.59 MB / 0.7375 GB, free: 34.75 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001738/0.695, allocations: 323.2 kB / 0.7379 GB, free: 34.4 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003728/0.6988, allocations: 1.144 MB / 0.739 GB, free: 33.96 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008026/0.6997, allocations: 95.31 kB / 0.7391 GB, free: 33.89 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009486/0.7006, allocations: 0.6991 MB / 0.7397 GB, free: 33.34 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002052/0.7027, allocations: 1.115 MB / 0.7408 GB, free: 32.47 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005868/0.7033, allocations: 65.5 kB / 0.7409 GB, free: 32.42 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003159/0.7037, allocations: 426.6 kB / 0.7413 GB, free: 32.06 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006874/0.7106, allocations: 1.137 MB / 0.7424 GB, free: 31.68 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007531/0.7181, allocations: 1.572 MB / 0.7439 GB, free: 30.89 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006613/0.7248, allocations: 1.168 MB / 0.7451 GB, free: 30.4 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.519e-05/0.7249, allocations: 6.688 kB / 0.7451 GB, free: 30.4 MB / 346.7 MB Notification: Performance of matching and sorting (n=407) (initialization): time 0.01856/0.7435, allocations: 3.581 MB / 0.7486 GB, free: 28.85 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.055e-05/0.7436, allocations: 8 kB / 0.7486 GB, free: 28.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.604e-05/0.7437, allocations: 8.344 kB / 0.7486 GB, free: 28.83 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005339/0.749, allocations: 1.22 MB / 0.7498 GB, free: 27.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007665/0.7567, allocations: 0.7491 MB / 0.7505 GB, free: 27.1 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01476/0.7716, allocations: 7.53 MB / 0.7579 GB, free: 19.24 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004173/0.7758, allocations: 302.5 kB / 0.7582 GB, free: 18.95 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000677/0.7765, allocations: 116 kB / 0.7583 GB, free: 18.83 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (338): * Single equations (assignments): 333 * 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.001649/0.7782, allocations: 477.1 kB / 0.7587 GB, free: 18.36 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008935/0.7791, allocations: 216.8 kB / 0.7589 GB, free: 18.14 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001867/0.781, allocations: 0.6147 MB / 0.7595 GB, free: 17.52 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.332e-05/0.7811, allocations: 19.94 kB / 0.7596 GB, free: 17.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.7811, allocations: 0 / 0.7596 GB, free: 17.5 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001878/0.783, allocations: 0.5332 MB / 0.7601 GB, free: 16.95 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009673/0.784, allocations: 79.98 kB / 0.7602 GB, free: 16.87 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005286/0.7893, allocations: 431.6 kB / 0.7606 GB, free: 16.45 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001454/0.7908, allocations: 373.2 kB / 0.7609 GB, free: 16.08 MB / 346.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02024/0.8111, allocations: 4.811 MB / 0.7656 GB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01769/0.8288, allocations: 5.46 MB / 0.771 GB, free: 5.793 MB / 346.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.005652/0.8345, allocations: 1.552 MB / 0.7725 GB, free: 4.238 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001565/0.8362, allocations: 0.7656 MB / 0.7732 GB, free: 3.469 MB / 346.7 MB Notification: Performance of Backend: time 5.11e-07/0.8362, allocations: 0 / 0.7732 GB, free: 3.469 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.009329/0.8455, allocations: 2.48 MB / 0.7756 GB, free: 0.9688 MB / 346.7 MB Notification: Performance of SimCode: time 0.01567/0.8612, allocations: 7.182 MB / 0.7827 GB, free: 9.746 MB / 362.7 MB Notification: Performance of Templates: time 0.1061/0.9674, allocations: 37.02 MB / 0.8188 GB, free: 4.883 MB / 394.7 MB