Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion.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.TestBearingConversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|bearingFriction.phi|bearingFriction.w|gear2_1.phi_rel|gear2_1.w_rel|gear2_2.phi_rel|gear2_2.w_rel|inertia1.phi|inertia1.w|inertia11.phi|inertia11.w|inertia2.phi|inertia2.w|inertia20.phi|inertia20.w|inertia21.phi|inertia21.w|inertia3.phi|inertia3.w|inertia5.phi|inertia5.w|inertia7.phi|inertia7.w|inertia9.phi|inertia9.w|position.phi|position.w|position1.phi|position1.w|position2.phi|position2.w|position3.phi|position3.w|position4.phi|position4.w|position5.phi|position5.w|slidingMass.s|slidingMass.v|slidingMass1.s|slidingMass1.v|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward|brake.mode|brake.startBackward|brake.startForward|brake1.mode|brake1.startBackward|brake1.startForward|gear2_1.lossyGear.mode|gear2_2.lossyGear.mode|lossyGear.mode|lossyGear1.mode",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Rotational.TestBearingConversion") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.004143/0.004148, allocations: 347.5 kB / 15.95 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 3.764/3.764, allocations: 341.5 MB / 358.2 MB, free: 12.63 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.003581/0.003582, allocations: 229 kB / 397.9 MB, free: 4.973 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.6913/0.6913, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006619/0.0006623, allocations: 8 kB / 0.5592 GB, free: 53.47 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1082, allocations: 48.71 MB / 0.6067 GB, free: 4.648 MB / 362.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBearingConversion): time 0.2838/0.392, allocations: 10.29 MB / 0.6168 GB, free: 87.9 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.01475/0.4068, allocations: 3.896 MB / 0.6206 GB, free: 85.3 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003991/0.4109, allocations: 56.38 kB / 0.6206 GB, free: 85.28 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002338/0.4133, allocations: 329.8 kB / 0.621 GB, free: 85.14 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007234/0.4206, allocations: 0.9439 MB / 0.6219 GB, free: 84.54 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006295/0.4269, allocations: 0.9993 MB / 0.6229 GB, free: 84.04 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.01042/0.4374, allocations: 3.895 MB / 0.6267 GB, free: 82.11 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002894/0.4404, allocations: 0.7806 MB / 0.6274 GB, free: 81.8 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005004/0.4454, allocations: 1.468 MB / 0.6289 GB, free: 81.23 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005724/0.4512, allocations: 1.745 MB / 0.6306 GB, free: 80.54 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001906/0.4532, allocations: 175.6 kB / 0.6307 GB, free: 80.54 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003482/0.4567, allocations: 398 kB / 0.6311 GB, free: 80.48 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001897/0.4586, allocations: 0.701 MB / 0.6318 GB, free: 80.11 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002505/0.4612, allocations: 0.5678 MB / 0.6323 GB, free: 79.81 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008409/0.4696, allocations: 3.185 MB / 0.6355 GB, free: 78.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.105e-06/0.4697, allocations: 1 kB / 0.6355 GB, free: 78.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.4697, allocations: 0.6875 kB / 0.6355 GB, free: 78.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.000195/0.4699, allocations: 2.688 kB / 0.6355 GB, free: 78.34 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: 717 * Number of variables: 717 Notification: Performance of Generate backend data structure: time 0.01438/0.4843, allocations: 3.254 MB / 0.6386 GB, free: 76.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.308e-05/0.4844, allocations: 12.09 kB / 0.6387 GB, free: 76.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002942/0.4874, allocations: 408.8 kB / 0.639 GB, free: 76.08 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004567/0.492, allocations: 1.442 MB / 0.6405 GB, free: 75 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002291/0.4943, allocations: 0.6817 MB / 0.6411 GB, free: 74.51 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001323/0.4957, allocations: 306.3 kB / 0.6414 GB, free: 74.39 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01231/0.508, allocations: 3.408 MB / 0.6447 GB, free: 72.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002422/0.5083, allocations: 48.33 kB / 0.6448 GB, free: 72.3 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005042/0.5088, allocations: 116.7 kB / 0.6449 GB, free: 72.21 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-05/0.5089, allocations: 69.12 kB / 0.645 GB, free: 72.21 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0133/0.5222, allocations: 3.559 MB / 0.6484 GB, free: 70.01 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02829/0.5506, allocations: 9.951 MB / 0.6582 GB, free: 59.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01003/0.5607, allocations: 3.301 MB / 0.6614 GB, free: 56.4 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006479/0.5672, allocations: 1.761 MB / 0.6631 GB, free: 54.61 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005068/0.5678, allocations: 53.52 kB / 0.6631 GB, free: 54.56 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.068e-05/0.5679, allocations: 87.62 kB / 0.6632 GB, free: 54.46 MB / 362.7 MB Notification: Performance of pre-optimization done (n=357): time 7.775e-06/0.5679, allocations: 0 / 0.6632 GB, free: 54.46 MB / 362.7 MB Notification: Performance of matching and sorting (n=419): time 0.0613/0.6292, allocations: 20.86 MB / 0.6836 GB, free: 32.42 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002436/0.6295, allocations: 0.562 MB / 0.6842 GB, free: 31.73 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006308/0.6358, allocations: 1.664 MB / 0.6858 GB, free: 30.07 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001396/0.6373, allocations: 117.7 kB / 0.6859 GB, free: 29.95 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001686/0.639, allocations: 0.9265 MB / 0.6868 GB, free: 29.01 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003125/0.6422, allocations: 1.406 MB / 0.6882 GB, free: 27.59 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001254/0.6435, allocations: 84 kB / 0.6883 GB, free: 27.5 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004928/0.6441, allocations: 467 kB / 0.6887 GB, free: 27.04 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006115/0.6502, allocations: 1.496 MB / 0.6902 GB, free: 25.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006574/0.6568, allocations: 2.252 MB / 0.6924 GB, free: 23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005701/0.6626, allocations: 1.502 MB / 0.6938 GB, free: 21.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.328e-05/0.6627, allocations: 7.938 kB / 0.6938 GB, free: 21.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=536) (initialization): time 0.01902/0.6817, allocations: 5.307 MB / 0.699 GB, free: 16.19 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.65e-05/0.6818, allocations: 19.28 kB / 0.699 GB, free: 16.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.497e-05/0.6818, allocations: 16 kB / 0.699 GB, free: 16.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006527/0.6884, allocations: 1.763 MB / 0.7008 GB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006192/0.6946, allocations: 0.8152 MB / 0.7016 GB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02729/0.722, allocations: 16.42 MB / 0.7176 GB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005932/0.728, allocations: 383.7 kB / 0.718 GB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001171/0.7292, allocations: 164 kB / 0.7181 GB, free: 11.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 84 * Number of states: 0 () * Number of discrete variables: 60 (gear2_2.lossyGear.tau_aPos,gear2_2.lossyGear.startForward,gear2_2.lossyGear.startBackward,gear2_2.lossyGear.locked,$PRE.gear2_2.lossyGear.mode,gear2_2.lossyGear.mode,gear2_2.lossyGear.ideal,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,lossyGear1.tau_aPos,lossyGear1.startForward,lossyGear1.startBackward,lossyGear1.locked,$PRE.lossyGear1.mode,lossyGear1.mode,lossyGear1.ideal,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,brake1.free,$PRE.brake1.startForward,brake1.startForward,$PRE.brake1.startBackward,brake1.startBackward,brake1.locked,$PRE.brake1.mode,brake1.mode,bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,lossyGear.ideal,bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (401): * Single equations (assignments): 391 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 8 {2 22,2 22,2 25,1 6,1 6,1 12,2 24,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.003141/0.7323, allocations: 0.6147 MB / 0.7187 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001417/0.7338, allocations: 288.5 kB / 0.719 GB, free: 10.83 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002485/0.7363, allocations: 0.6539 MB / 0.7196 GB, free: 10.17 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000111/0.7364, allocations: 23.92 kB / 0.7197 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.615e-05/0.7365, allocations: 4 kB / 0.7197 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002932/0.7394, allocations: 0.6964 MB / 0.7203 GB, free: 9.422 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001694/0.7412, allocations: 111.9 kB / 0.7205 GB, free: 9.312 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007129/0.7483, allocations: 443.6 kB / 0.7209 GB, free: 8.879 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002286/0.7507, allocations: 492.6 kB / 0.7213 GB, free: 8.398 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02865/0.7794, allocations: 6.501 MB / 0.7277 GB, free: 1.855 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.02487/0.8043, allocations: 7.131 MB / 0.7347 GB, free: 10.65 MB / 394.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.008234/0.8126, allocations: 2.007 MB / 0.7366 GB, free: 8.645 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002879/0.8155, allocations: 1.118 MB / 0.7377 GB, free: 7.535 MB / 394.7 MB Notification: Performance of Backend: time 9.11e-07/0.8156, allocations: 0 / 0.7377 GB, free: 7.535 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0155/0.8311, allocations: 3.856 MB / 0.7415 GB, free: 3.609 MB / 394.7 MB Notification: Performance of SimCode: time 0.02185/0.853, allocations: 9.525 MB / 0.7508 GB, free: 10.11 MB / 410.7 MB Notification: Performance of Templates: time 0.4251/1.278, allocations: 51.62 MB / 0.8012 GB, free: 101 MB / 410.7 MB