Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.TestBearingConversion.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.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.2_ModelicaTest.Rotational.TestBearingConversion") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002746/0.002746, allocations: 371.5 kB / 15.97 MB, free: 6.195 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.214/4.214, allocations: 388.9 MB / 405.6 MB, free: 10.24 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.003558/0.003558, allocations: 240.8 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.6182/0.6182, allocations: 80.02 MB / 0.5627 GB, free: 19.84 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000653/0.0006533, allocations: 13.16 kB / 0.6265 GB, free: 96.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1384, allocations: 54.87 MB / 0.6801 GB, free: 41.67 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.TestBearingConversion): time 0.01765/0.1561, allocations: 10.3 MB / 0.6902 GB, free: 31.32 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01203/0.1682, allocations: 3.822 MB / 0.6939 GB, free: 27.49 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003065/0.1713, allocations: 59.75 kB / 0.6939 GB, free: 27.43 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00191/0.1733, allocations: 325.5 kB / 0.6943 GB, free: 27.11 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005704/0.179, allocations: 0.9403 MB / 0.6952 GB, free: 26.17 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005051/0.1841, allocations: 0.9933 MB / 0.6961 GB, free: 25.18 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.007739/0.1919, allocations: 3.911 MB / 0.7 GB, free: 21.25 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002341/0.1943, allocations: 0.7752 MB / 0.7007 GB, free: 20.44 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003739/0.1981, allocations: 1.479 MB / 0.7022 GB, free: 18.96 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004508/0.2026, allocations: 1.763 MB / 0.7039 GB, free: 17.19 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001573/0.2043, allocations: 180 kB / 0.7041 GB, free: 17.01 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002339/0.2066, allocations: 295.8 kB / 0.7043 GB, free: 16.72 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001385/0.2081, allocations: 0.7045 MB / 0.705 GB, free: 16.02 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001456/0.2096, allocations: 0.5665 MB / 0.7056 GB, free: 15.44 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006288/0.2159, allocations: 3.171 MB / 0.7087 GB, free: 12.26 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.2159, allocations: 0 / 0.7087 GB, free: 12.26 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.506e-06/0.216, allocations: 3.984 kB / 0.7087 GB, free: 12.26 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001755/0.2161, allocations: 0 / 0.7087 GB, free: 12.26 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: 719 * Number of variables: 719 Notification: Performance of Generate backend data structure: time 0.01278/0.2289, allocations: 3.217 MB / 0.7118 GB, free: 8.98 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.229, allocations: 8.031 kB / 0.7118 GB, free: 8.973 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002618/0.2316, allocations: 411.9 kB / 0.7122 GB, free: 8.566 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004304/0.236, allocations: 1.455 MB / 0.7136 GB, free: 7.055 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002207/0.2383, allocations: 0.6782 MB / 0.7143 GB, free: 6.312 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001181/0.2395, allocations: 319.6 kB / 0.7146 GB, free: 6 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01141/0.2509, allocations: 3.454 MB / 0.718 GB, free: 2.438 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002244/0.2512, allocations: 39.64 kB / 0.718 GB, free: 2.398 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004941/0.2517, allocations: 116 kB / 0.7181 GB, free: 2.285 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.806e-05/0.2518, allocations: 68 kB / 0.7182 GB, free: 2.219 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3378/0.5896, allocations: 3.598 MB / 0.7217 GB, free: 42.35 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03895/0.6286, allocations: 10.16 MB / 0.7316 GB, free: 37.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0108/0.6395, allocations: 3.372 MB / 0.7349 GB, free: 35.82 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006684/0.6462, allocations: 1.776 MB / 0.7367 GB, free: 35 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006371/0.6469, allocations: 222.6 kB / 0.7369 GB, free: 34.79 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.116e-05/0.647, allocations: 96.05 kB / 0.737 GB, free: 34.71 MB / 346.7 MB Notification: Performance of pre-optimization done (n=358): time 7.784e-06/0.647, allocations: 2.438 kB / 0.737 GB, free: 34.71 MB / 346.7 MB Notification: Performance of matching and sorting (n=421): time 0.06074/0.7077, allocations: 21.37 MB / 0.7578 GB, free: 18.14 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001675/0.708, allocations: 0.6084 MB / 0.7584 GB, free: 17.4 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002973/0.7109, allocations: 1.635 MB / 0.76 GB, free: 15.76 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007847/0.7117, allocations: 121.7 kB / 0.7601 GB, free: 15.64 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007328/0.7125, allocations: 0.9317 MB / 0.7611 GB, free: 14.7 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001584/0.7141, allocations: 1.405 MB / 0.7624 GB, free: 13.31 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003631/0.7145, allocations: 95.92 kB / 0.7625 GB, free: 13.22 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002224/0.7147, allocations: 467.1 kB / 0.763 GB, free: 12.75 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004974/0.7197, allocations: 1.496 MB / 0.7644 GB, free: 11.25 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005569/0.7253, allocations: 2.256 MB / 0.7666 GB, free: 8.699 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005053/0.7304, allocations: 1.522 MB / 0.7681 GB, free: 7.199 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-05/0.7304, allocations: 8 kB / 0.7681 GB, free: 7.191 MB / 346.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01704/0.7475, allocations: 5.003 MB / 0.773 GB, free: 2.16 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.91e-05/0.7476, allocations: 12 kB / 0.773 GB, free: 2.148 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.685e-05/0.7477, allocations: 23.94 kB / 0.773 GB, free: 2.125 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006963/0.7546, allocations: 1.998 MB / 0.775 GB, free: 104 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006557/0.7612, allocations: 0.8113 MB / 0.7758 GB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03218/0.7935, allocations: 16.48 MB / 0.7919 GB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005629/0.7992, allocations: 384.5 kB / 0.7922 GB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009443/0.8002, allocations: 168 kB / 0.7924 GB, free: 13.38 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 (403): * Single equations (assignments): 393 * 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.002608/0.8028, allocations: 0.6148 MB / 0.793 GB, free: 12.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001377/0.8042, allocations: 280.6 kB / 0.7933 GB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001724/0.8059, allocations: 0.5213 MB / 0.7938 GB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-05/0.806, allocations: 23.92 kB / 0.7938 GB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.082e-05/0.806, allocations: 11.95 kB / 0.7938 GB, free: 11.92 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002549/0.8086, allocations: 0.7043 MB / 0.7945 GB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001091/0.8097, allocations: 100.2 kB / 0.7946 GB, free: 11.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006406/0.8161, allocations: 447.6 kB / 0.795 GB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002056/0.8182, allocations: 0.4966 MB / 0.7955 GB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.02857/0.8468, allocations: 6.667 MB / 0.802 GB, free: 3.543 MB / 378.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.02597/0.8728, allocations: 7.295 MB / 0.8091 GB, free: 12.17 MB / 394.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.008698/0.8816, allocations: 2.039 MB / 0.8111 GB, free: 10.13 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002878/0.8845, allocations: 1.102 MB / 0.8122 GB, free: 9.039 MB / 394.7 MB Notification: Performance of Backend: time 1.132e-06/0.8846, allocations: 0 / 0.8122 GB, free: 9.039 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01578/0.9004, allocations: 3.842 MB / 0.816 GB, free: 5.129 MB / 394.7 MB Notification: Performance of SimCode: time 0.02113/0.9215, allocations: 9.515 MB / 0.8253 GB, free: 11.55 MB / 410.7 MB Notification: Performance of Templates: time 0.1958/1.117, allocations: 52.88 MB / 0.8769 GB, free: 6.789 MB / 458.7 MB